-
Couldn't load subscription status.
- Fork 113
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Actual behavior
The latest update removes these three operator overloads from the PSID class:
public static implicit operator IntPtr(PSID value) => new IntPtr(value.Value);
public static explicit operator PSID(IntPtr value) => new PSID((void*)value.ToPointer());
public static explicit operator PSID(UIntPtr value) => new PSID((void*)value.ToPointer());It's now a lot harder to construct a SecurityIdentifier object from a PSID.
Expected behavior
PSID pSid = GetPSIDFromSomewhere();
SecurityIdentifier sid = new(pSid);Repro steps
-
NativeMethods.txtcontent:
N/A -
NativeMethods.jsoncontent (if present):
N/A -
Any of your own code that should be shared?
Context
- CsWin32 version: 0.3.228
- Win32Metadata version (if explicitly set by project): N/A
- Target Framework: net472
LangVersion(if explicitly set by project): N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working