title: How to receive event when network is connected and also when user logs in
body: <p>I have a service that runs and I'd like to receive notification when:</p>
  
  <p>a) the network is connected. </p>
  
  <p>b) when a user logs in to the machine.</p>
  
  <p>How can I do this? (C# .NET 2.0)</p>