Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "WTSShutdownSystem" in [All]

wtsapi32

.
Summary
The WTSShutdownSystem function shuts down (and optionally restarts) the specified terminal server.
.

public static extern int WTSShutdownSystem(IntPtr ServerHandle, long ShutdownFlags);

.

  Private Shared Function WTSShutdownSystem(ByVal hServer As IntPtr, ByVal ShutdownFlags As Long) As Integer

.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtsshutdownsystem.asp

.

public static extern int WTSShutdownSystem(IntPtr ServerHandle, long ShutdownFlags);

.

    WTSShutdownSystem(new IntPtr(0), WTS_WSD_REBOOT);

.
Documentation
[WTSShutdownSystem] on MSDN

 
Access PInvoke.net directly from VS: