<p>I want to be able to intercept the shutdown event in C# for Windows Vista.  Due to the advanced security features with Vista, any applications that are running after the shutdown command is called are halted and displayed in a list, prompting the user to do something with them.</p>

<p>Does anybody know how to overcome this and what events I need to be using in Vista.</p>

<p>Thanks.</p>

```
```
System.Environment.HasShutdownStarted
```
```