ERROR_NO_TOKEN

Hi,
We are getting this error from call to OpenThreadToken() :
ERROR_NO_TOKEN

Searching through web I found that We should call OpenProcessToken() when we
get this error.

However, there is no information on when we get this error. It looks that on
some machine it works and on some it does not. So does it realted to some
Group Policy.

Thanks

A

This is really a user mode issue and thus not entirely appropriate. In
addition, Google did a fine job on this one:

http://blogs.msdn.com/junfeng/archive/2004/03/16/90279.aspx

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Ashish J” wrote in message news:xxxxx@ntdev…
Hi,
We are getting this error from call to OpenThreadToken() :
ERROR_NO_TOKEN
Searching through web I found that We should call OpenProcessToken() when we
get this error.
However, there is no information on when we get this error. It looks that on
some machine it works and on some it does not. So does it realted to some
Group Policy.

Thanks
A

Maybe this is because the thread is not in impersonation mode?


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

“Ashish J” wrote in message news:xxxxx@ntdev…
Hi,
We are getting this error from call to OpenThreadToken() :
ERROR_NO_TOKEN
Searching through web I found that We should call OpenProcessToken() when we get this error.
However, there is no information on when we get this error. It looks that on some machine it works and on some it does not. So does it realted to some Group Policy.

Thanks
A