|
-
March 30th, 2006, 08:56 AM
#1
[RESOLVED] call GetTokenInformation cause error
Code as follow:
HANDLE hToken;
if(!OpenThreadToken(GetCurrentThread(), TOKEN_QUERY, TRUE, &hToken))
{
if(!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &hToken))
{
return kcy_err;
}
}
//didn't return,above two function are success
DWORD dwUserSize = 0;
GetTokenInformation(hToken, TokenUser, NULL, 0, &dwUserSize);
//GetTokenInformation return FALSE,call GetLastError get error code is 122,what's the mean?
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
|