WTSQueryUserToken returning FALSE

前端 未结 2 1077
小蘑菇
小蘑菇 2020-12-06 15:18

I\'m making a interactive service on Windows 7, on visual studio 2015, that is able to initialize an application UI but the WTSQueryUserToken method is retuning false.

2条回答
  •  甜味超标
    2020-12-06 15:31

    You can either set Act as part of the operating system in Local security policy, or you can also set the privileges programmatically using LsaAddAccountRights.

提交回复
热议问题