NCryptSetProperty (ncrypt)
Last changed: -217.115.65.20

.
Summary
TODO - a short description

C# Signature:

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);

VB Signature:

Declare Function NCryptSetProperty Lib "ncrypt.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation