I tried out.
But I recieved "null" as returned value to string.
string myString =
System.Runtime.InteropServices.Marshal.PtrToString Auto(myIntPtr);
After this line, myString is null.
WindowsIdentity.Token is correct value, but returned string is null.
Thanks
"Lebesgue" wrote:
public static string PtrToStringAuto(IntPtr ptr)
string myString =
System.Runtime.InteropServices.Marshal.PtrToString Auto(myIntPtr);