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.
> 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