Intercepting / Programatically Showing Windows Shutdown Dialog

I found this rather strange code snippet:

http://www.nirsoft.net/vb/shutdownwin.html

It shows how to programatically show Windows shutdown dialog.

I wonder if this works under Windows Vista / Windows 7 (it works under XP, just tested).

Of course, this would make it possible to intercept it too, for apps like iShut to show up instead, when choosing Start > Shutdown... :P

#529709

I've done a quick test under Windows 7 and it did not work. I should say my test was really quick & dirty but it seems that it is not available under Windows 7.

#529814