c++ - WTSConnectSession -
i trying use function connect specific user session. have tried , function fails either error_access_denied 5 (0x5) access denied or error_ctx_winstation_access_denied 7045 (0x1b85) requested session access denied. hard-coding session id in , password
wtsconnectsession(2, 1 ,text("test1"),false); is there better way start user session use function. trying implement fast user switching , last piece in puzzle logon user session. thank you.
are sure connecting username (specified targetlogonid parameter) in "remote desktop users" group?
you can check using
net localgroup "remote desktop users" another option enable security auditing , analyzing security event log. tells exact root cause of error_ctx_winstation_access_denied
Comments
Post a Comment