2020-12-22 21:13:59 -05:00
## Vanara.PInvoke.WTSApi32
PInvoke API (methods, structures and constants) imported from Windows WTSApi32.dll.
- Includes methods from wtsapi32.dll
- Current NuGet release: [![Nuget ](https://img.shields.io/nuget/v/Vanara.PInvoke.WTSApi32?logo=nuget&style=flat-square )![Nuget ](https://img.shields.io/nuget/dt/Vanara.PInvoke.WTSApi32?label=%20&style=flat-square )](https://www.nuget.org/packages/Vanara.PInvoke.WTSApi32)
2020-12-24 13:00:18 -05:00
### Methods - 100% API coverage (44 of 44 functions)
2020-12-22 21:13:59 -05:00
Native Method | Header | Managed Method
--- | --- | ---
[WTSCloseServer ](https://www.google.com/search?num=5&q=WTSCloseServer+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSCloseServer ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSCloseServer )
[WTSConnectSession ](https://www.google.com/search?num=5&q=WTSConnectSessionA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSConnectSession ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSConnectSession )
[WTSCreateListener ](https://www.google.com/search?num=5&q=WTSCreateListenerA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSCreateListener ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSCreateListener )
[WTSDisconnectSession ](https://www.google.com/search?num=5&q=WTSDisconnectSession+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSDisconnectSession ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSDisconnectSession )
[WTSEnableChildSessions ](https://www.google.com/search?num=5&q=WTSEnableChildSessions+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnableChildSessions ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnableChildSessions )
[WTSEnumerateListeners ](https://www.google.com/search?num=5&q=WTSEnumerateListenersA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateListeners ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateListeners )
[WTSEnumerateProcesses ](https://www.google.com/search?num=5&q=WTSEnumerateProcessesA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateProcesses ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateProcesses )
[WTSEnumerateProcessesEx ](https://www.google.com/search?num=5&q=WTSEnumerateProcessesExA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateProcessesEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateProcessesEx )
[WTSEnumerateServers ](https://www.google.com/search?num=5&q=WTSEnumerateServersA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateServers ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateServers )
[WTSEnumerateSessions ](https://www.google.com/search?num=5&q=WTSEnumerateSessionsA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateSessions ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateSessions )
[WTSEnumerateSessionsEx ](https://www.google.com/search?num=5&q=WTSEnumerateSessionsExA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSEnumerateSessionsEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSEnumerateSessionsEx )
[WTSFreeMemory ](https://www.google.com/search?num=5&q=WTSFreeMemory+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSFreeMemory ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSFreeMemory )
[WTSFreeMemoryEx ](https://www.google.com/search?num=5&q=WTSFreeMemoryExA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSFreeMemoryEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSFreeMemoryEx )
[WTSGetChildSessionId ](https://www.google.com/search?num=5&q=WTSGetChildSessionId+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSGetChildSessionId ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSGetChildSessionId )
[WTSGetListenerSecurity ](https://www.google.com/search?num=5&q=WTSGetListenerSecurityA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSGetListenerSecurity ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSGetListenerSecurity )
[WTSIsChildSessionsEnabled ](https://www.google.com/search?num=5&q=WTSIsChildSessionsEnabled+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSIsChildSessionsEnabled ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSIsChildSessionsEnabled )
[WTSLogoffSession ](https://www.google.com/search?num=5&q=WTSLogoffSession+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSLogoffSession ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSLogoffSession )
[WTSOpenServer ](https://www.google.com/search?num=5&q=WTSOpenServerA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSOpenServer ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSOpenServer )
[WTSOpenServerEx ](https://www.google.com/search?num=5&q=WTSOpenServerExA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSOpenServerEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSOpenServerEx )
[WTSQueryListenerConfig ](https://www.google.com/search?num=5&q=WTSQueryListenerConfigA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSQueryListenerConfig ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSQueryListenerConfig )
[WTSQuerySessionInformation ](https://www.google.com/search?num=5&q=WTSQuerySessionInformationA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSQuerySessionInformation ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSQuerySessionInformation )
[WTSQueryUserConfig ](https://www.google.com/search?num=5&q=WTSQueryUserConfigA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSQueryUserConfig ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSQueryUserConfig )
[WTSQueryUserToken ](https://www.google.com/search?num=5&q=WTSQueryUserToken+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSQueryUserToken ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSQueryUserToken )
[WTSRegisterSessionNotification ](https://www.google.com/search?num=5&q=WTSRegisterSessionNotification+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSRegisterSessionNotification ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSRegisterSessionNotification )
[WTSRegisterSessionNotificationEx ](https://www.google.com/search?num=5&q=WTSRegisterSessionNotificationEx+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSRegisterSessionNotificationEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSRegisterSessionNotificationEx )
[WTSSendMessage ](https://www.google.com/search?num=5&q=WTSSendMessageA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSSendMessage ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSSendMessage )
[WTSSetListenerSecurity ](https://www.google.com/search?num=5&q=WTSSetListenerSecurityA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSSetListenerSecurity ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSSetListenerSecurity )
2020-12-24 13:00:18 -05:00
[WTSSetRenderHint ](https://www.google.com/search?num=5&q=WTSSetRenderHint+site%3Adocs.microsoft.com ) | wtshintapi.h | [Vanara.PInvoke.WTSApi32.WTSSetRenderHint ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSSetRenderHint )
2020-12-22 21:13:59 -05:00
[WTSSetUserConfig ](https://www.google.com/search?num=5&q=WTSSetUserConfigA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSSetUserConfig ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSSetUserConfig )
[WTSShutdownSystem ](https://www.google.com/search?num=5&q=WTSShutdownSystem+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSShutdownSystem ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSShutdownSystem )
[WTSStartRemoteControlSession ](https://www.google.com/search?num=5&q=WTSStartRemoteControlSessionA+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSStartRemoteControlSession ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSStartRemoteControlSession )
[WTSStopRemoteControlSession ](https://www.google.com/search?num=5&q=WTSStopRemoteControlSession+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSStopRemoteControlSession ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSStopRemoteControlSession )
[WTSTerminateProcess ](https://www.google.com/search?num=5&q=WTSTerminateProcess+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSTerminateProcess ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSTerminateProcess )
[WTSUnRegisterSessionNotification ](https://www.google.com/search?num=5&q=WTSUnRegisterSessionNotification+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSUnRegisterSessionNotification ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSUnRegisterSessionNotification )
[WTSUnRegisterSessionNotificationEx ](https://www.google.com/search?num=5&q=WTSUnRegisterSessionNotificationEx+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSUnRegisterSessionNotificationEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSUnRegisterSessionNotificationEx )
[WTSVirtualChannelClose ](https://www.google.com/search?num=5&q=WTSVirtualChannelClose+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelClose ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelClose )
[WTSVirtualChannelOpen ](https://www.google.com/search?num=5&q=WTSVirtualChannelOpen+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelOpen ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelOpen )
[WTSVirtualChannelOpenEx ](https://www.google.com/search?num=5&q=WTSVirtualChannelOpenEx+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelOpenEx ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelOpenEx )
[WTSVirtualChannelPurgeInput ](https://www.google.com/search?num=5&q=WTSVirtualChannelPurgeInput+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelPurgeInput ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelPurgeInput )
[WTSVirtualChannelPurgeOutput ](https://www.google.com/search?num=5&q=WTSVirtualChannelPurgeOutput+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelPurgeOutput ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelPurgeOutput )
[WTSVirtualChannelQuery ](https://www.google.com/search?num=5&q=WTSVirtualChannelQuery+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelQuery ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelQuery )
[WTSVirtualChannelRead ](https://www.google.com/search?num=5&q=WTSVirtualChannelRead+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelRead ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelRead )
[WTSVirtualChannelWrite ](https://www.google.com/search?num=5&q=WTSVirtualChannelWrite+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSVirtualChannelWrite ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSVirtualChannelWrite )
[WTSWaitSystemEvent ](https://www.google.com/search?num=5&q=WTSWaitSystemEvent+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSWaitSystemEvent ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSWaitSystemEvent )
### Structures
Native Structure | Header | Managed Structure
--- | --- | ---
[HVIRTUALCHANNEL ](https://www.google.com/search?num=5&q=HVIRTUALCHANNEL+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.WTSApi32.HVIRTUALCHANNEL ](https://github.com/dahall/Vanara/search?l=C%23&q=HVIRTUALCHANNEL )
[HWTSSERVER ](https://www.google.com/search?num=5&q=HWTSSERVER+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.WTSApi32.HWTSSERVER ](https://github.com/dahall/Vanara/search?l=C%23&q=HWTSSERVER )
[WTS_CLIENT_ADDRESS ](https://www.google.com/search?num=5&q=WTS_CLIENT_ADDRESS+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_CLIENT_ADDRESS ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_CLIENT_ADDRESS )
[WTS_CLIENT_DISPLAY ](https://www.google.com/search?num=5&q=WTS_CLIENT_DISPLAY+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_CLIENT_DISPLAY ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_CLIENT_DISPLAY )
[WTS_PROCESS_INFO ](https://www.google.com/search?num=5&q=WTS_PROCESS_INFO+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_PROCESS_INFO ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_PROCESS_INFO )
[WTS_PROCESS_INFO_EX ](https://www.google.com/search?num=5&q=WTS_PROCESS_INFO_EX+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_PROCESS_INFO_EX ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_PROCESS_INFO_EX )
[WTS_SERVER_INFO ](https://www.google.com/search?num=5&q=WTS_SERVER_INFO+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_SERVER_INFO ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_SERVER_INFO )
[WTS_SESSION_ADDRESS ](https://www.google.com/search?num=5&q=WTS_SESSION_ADDRESS+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_SESSION_ADDRESS ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_SESSION_ADDRESS )
[WTS_SESSION_INFO ](https://www.google.com/search?num=5&q=WTS_SESSION_INFO+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_SESSION_INFO ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_SESSION_INFO )
[WTS_SESSION_INFO_1 ](https://www.google.com/search?num=5&q=WTS_SESSION_INFO_1+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTS_SESSION_INFO_1 ](https://github.com/dahall/Vanara/search?l=C%23&q=WTS_SESSION_INFO_1 )
[WTSCLIENT ](https://www.google.com/search?num=5&q=WTSCLIENT+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSCLIENT ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSCLIENT )
[WTSCONFIGINFO ](https://www.google.com/search?num=5&q=WTSCONFIGINFO+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSCONFIGINFO ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSCONFIGINFO )
[WTSINFO ](https://www.google.com/search?num=5&q=WTSINFO+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSINFO ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSINFO )
[WTSINFOEX ](https://www.google.com/search?num=5&q=WTSINFOEX+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSINFOEX ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSINFOEX )
[WTSINFOEX_LEVEL ](https://www.google.com/search?num=5&q=WTSINFOEX_LEVEL+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSINFOEX_LEVEL ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSINFOEX_LEVEL )
[WTSINFOEX_LEVEL1 ](https://www.google.com/search?num=5&q=WTSINFOEX_LEVEL1+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSINFOEX_LEVEL1 ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSINFOEX_LEVEL1 )
[WTSLISTENERCONFIG ](https://www.google.com/search?num=5&q=WTSLISTENERCONFIG+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSLISTENERCONFIG ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSLISTENERCONFIG )
[WTSLISTENERNAME ](https://www.google.com/search?num=5&q=WTSLISTENERNAME+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSLISTENERNAME ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSLISTENERNAME )
[WTSUSERCONFIG ](https://www.google.com/search?num=5&q=WTSUSERCONFIG+site%3Adocs.microsoft.com ) | wtsapi32.h | [Vanara.PInvoke.WTSApi32.WTSUSERCONFIG ](https://github.com/dahall/Vanara/search?l=C%23&q=WTSUSERCONFIG )
2020-12-24 13:00:18 -05:00
### Classes
Native Class | Header | Managed Class
--- | --- | ---
[SafeHVIRTUALCHANNEL ](https://www.google.com/search?num=5&q=SafeHVIRTUALCHANNEL+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.WTSApi32.SafeHVIRTUALCHANNEL ](https://github.com/dahall/Vanara/search?l=C%23&q=SafeHVIRTUALCHANNEL )
[SafeHWTSSERVER ](https://www.google.com/search?num=5&q=SafeHWTSSERVER+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.WTSApi32.SafeHWTSSERVER ](https://github.com/dahall/Vanara/search?l=C%23&q=SafeHWTSSERVER )
[SafeWTSMemoryHandle ](https://www.google.com/search?num=5&q=SafeWTSMemoryHandle+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.WTSApi32.SafeWTSMemoryHandle ](https://github.com/dahall/Vanara/search?l=C%23&q=SafeWTSMemoryHandle )