You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing null as hServer argument to WTSQuerySessionInformation it throws a System.ArgumentNullException despite the native WinApi docs stating that NULL (the macro WTS_CURRENT_SERVER_HANDLE expands to (HANDLE)NULL) is allowed to set the current machine as server.
Expected behavior
WTSQuerySessionInformation to succeed even with null as hServer.
Actual behavior
When passing
null
ashServer
argument toWTSQuerySessionInformation
it throws aSystem.ArgumentNullException
despite the native WinApi docs stating that NULL (the macroWTS_CURRENT_SERVER_HANDLE
expands to(HANDLE)NULL
) is allowed to set the current machine as server.Expected behavior
WTSQuerySessionInformation
to succeed even withnull
ashServer
.Repro steps
NativeMethods.txt
content:Context
0.2.138-beta
net7.0-windows10.0.17763.0
LangVersion
:latest
The text was updated successfully, but these errors were encountered: