General Definition:
[DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]
static extern int NCryptSetProperty(
IntPtr hObject,
[MarshalAs(UnmanagedType.LPWStr)] string szProperty,
IntPtr pbInputByteArray,
int cbInput,
int flags);
When the input is a 4 byte DWORD; you may also use this:
[DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]
internal static extern int NCryptSetProperty(IntPtr hObject,
[MarshalAs(UnmanagedType.LPWStr)] string szProperty,
ref int pbInput,
int cbInput,
int flags);
Declare Function NCryptSetProperty Lib "ncrypt.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
Please add some!