[python-win32] Getting a users token

Tim Roberts timr at probo.com
Sat Oct 25 01:19:07 CEST 2008


Matt Herbert (matherbe) wrote:
> Anybody know how to get a token for the current user? I'm thinking
> something similar to win32api.GetUserName, but instead it would return
> the token??
>   

I suspect you want OpenProcessToken or OpenThreadToken, assuming your
process is running as the current user.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list