Managed way to log out?

  • Thread starter Thread starter Frank Rizzo
  • Start date Start date
F

Frank Rizzo

Is there a managed way to code a logout? I have it currently using
ExitWindowsEx winapi, but I'd like to switch to managed.

Thanks
 
| Is there a managed way to code a logout? I have it currently using
| ExitWindowsEx winapi, but I'd like to switch to managed.
|
| Thanks

Are you asking whether there is an existing class in the Framework that
calls the API through PInvoke, then the answer is no. You'll have to
'PInvoke' ExitWindowsEx yourself.

Willy.
 
Hello Frank,

There is no other way except WMI - invoke Win32Shutdown with value = "0"
(http://groups.google.com/group/micr...read/thread/e16067f69b04d1ae/756bf0db337c8fc1)

btw, what's wrong with unmanaged one?

FR> Is there a managed way to code a logout? I have it currently using
FR> ExitWindowsEx winapi, but I'd like to switch to managed.
FR>
FR> Thanks
FR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top