T
2022-11-19 07:55:40 UTC
Hi All,
Windows 11-pro 22H2
https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea
WTSSendMessageA states:
[in] hServer
A handle to an RD Session Host server. Specify
a handle opened by the WTSOpenServer function,
or specify WTS_CURRENT_SERVER_HANDLE to indicate
the RD Session Host server on which your application
is running.
If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
how to I get my "handle to an RD Session Host server"?
Many thanks,
-T
Windows 11-pro 22H2
https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea
WTSSendMessageA states:
[in] hServer
A handle to an RD Session Host server. Specify
a handle opened by the WTSOpenServer function,
or specify WTS_CURRENT_SERVER_HANDLE to indicate
the RD Session Host server on which your application
is running.
If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
how to I get my "handle to an RD Session Host server"?
Many thanks,
-T