Actual behavior
The friendly overload for AdjustTokenPrivileges() requires a pointer to TOKEN_PRIVILEGES for NewState, but uses Span<byte> for PreviousState.
internal static unsafe winmdroot.Foundation.BOOL AdjustTokenPrivileges(SafeHandle TokenHandle, winmdroot.Foundation.BOOL DisableAllPrivileges, winmdroot.Security.TOKEN_PRIVILEGES* NewState, Span<byte> PreviousState, out uint ReturnLength)
{
}
Expected behavior
Consistent parameters for each type. Ideally in winmdroot.Security.TOKEN_PRIVILEGES NewState/out winmdroot.Security.TOKEN_PRIVILEGES* PreviousState.
Repro steps
N/A
NativeMethods.txt content:
-
NativeMethods.json content (if present):
N/A
-
Any of your own code that should be shared?
N/A
Context
- CsWin32 version: 0.3.253
- Win32Metadata version (if explicitly set by project): N/A
- Target Framework: net472
LangVersion (if explicitly set by project): N/A
Actual behavior
The friendly overload for
AdjustTokenPrivileges()requires a pointer toTOKEN_PRIVILEGESforNewState, but usesSpan<byte>forPreviousState.Expected behavior
Consistent parameters for each type. Ideally
in winmdroot.Security.TOKEN_PRIVILEGES NewState/out winmdroot.Security.TOKEN_PRIVILEGES* PreviousState.Repro steps
N/A
NativeMethods.txtcontent:NativeMethods.jsoncontent (if present):N/A
Any of your own code that should be shared?
N/A
Context
LangVersion(if explicitly set by project): N/A