For questions about how to use Windows Terminal Services (WTS) API functions (named WTS*), declared in wtsapi32.h / wtsapi32.lib.
Windows Terminal Services (WTS) API functions (named WTS*
), declared in wtsapi32.h
/ wtsapi32.lib
, provide a mechanism for querying and manipulating Windows Remote Desktop sessions. Since the underlying WTS session mechanism is also used for local sessions, these APIs can also be used to inquire about and modify local Windows GUI sessions, including those used for Fast User Switching. See also Microsoft's documentation