How to convert WindowsIdentity.Token that is IntPtr type to string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

How to convert value of WindowsIdentity.Token that is IntPtr type to string
type?

Thanks
 
I tried out.
But I recieved "null" as returned value to string.
string myString =
System.Runtime.InteropServices.Marshal.PtrToStringAuto(myIntPtr);

After this line, myString is null.

WindowsIdentity.Token is correct value, but returned string is null.

Thanks
 
MilanB said:
Hello

How to convert value of WindowsIdentity.Token that is IntPtr type to
string
type?

Thanks

Why would you do this? The IntPtr is NOT pointing to a string, actualy it
points to nothing it is a HANDLE.

Willy.
 
Thanks Willy

Someone wanted from me to convert this pointer to string. I suposed that it
can not be done, but was not sure 100%.

Thanks again
 
Back
Top