> I've tried your 2 solutions. The one which is the more appopriate in my
case is
> the one from you, Commando (I like the EWX_POWEROFF flag :) ) !
>
> The only trouble I ran into is that I don't know what should hToken be...
I took
> a look at MSDN... Now, I declare it as PHANDLE, but it must be an other
thing to
> do like : "hToken = ...();".

hToken is a HANDLE;

OpenProcessToken() returns the token.

Here's the complete source code example...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/shu
tdown_7z8u.asp

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to