Getting handle to user' s token  
Author Message
tiger





PostPosted: Sat Jun 02 04:13:54 CDT 2007 Top

Dotnet >> Getting handle to user' s token Hi,

In my program I need the handle to the current user's token to perform
some operations in native code. I am trying to get the handle using
WindowsIdentity.GetCurrent().Token and pass it to my native dll.

Does this method return a handle to the user's token? Or is there some
other way to get it? Or is it better to do this in native code.

Thanks,
RB

DotNet228  
 
 
Dominick





PostPosted: Sat Jun 02 04:13:54 CDT 2007 Top

Dotnet >> Getting handle to user' s token Thats the handle. You should be able to use that.


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

> Hi,
>
> In my program I need the handle to the current user's token to perform
> some operations in native code. I am trying to get the handle using
> WindowsIdentity.GetCurrent().Token and pass it to my native dll.
>
> Does this method return a handle to the user's token? Or is there some
> other way to get it? Or is it better to do this in native code.
>
> Thanks,
> R