|
-
January 13th, 2009, 06:45 AM
#1
Access Is Denied in WTSQueryUserToken and Windows 2003 Ent SP1
Hello,
I have a service that needs to get the current user's token. I do this by using the HandlerEx along with the WTS notifications that occur during any Logon/Logoff/Lock/etc.. to get the SessionId and call WTSQueryUserToken with that SessionId. This code works fine on the XP Sp1 and Sp2 operating systems, but for some reason, whenever I call it with Windows 2003 enterprise SP1, the code fails to run, returning an error of Access Is Denied.
I looked it up and saw that Access Is Denied means that I either don't have the Local System user or the SE_TCB_NAME privilege enabled. I have both of them enabled, and it still doesn't work.
I'm really lost, can anyone please help?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|