Exemple #1
0
 public static extern NTStatus BCryptExportKey(
     SafeKeyHandle hKey,
     SafeKeyHandle hExportKey,
     [MarshalAs(UnmanagedType.LPWStr)] string pszBlobType,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] byte[] pbOutput,
     int cbOutput,
     out int pcbResult,
     BCryptExportKeyFlags dwFlags = BCryptExportKeyFlags.None);
Exemple #2
0
 public static extern NTSTATUS BCryptExportKey(
     SafeKeyHandle hKey,
     SafeKeyHandle hExportKey,
     [MarshalAs(UnmanagedType.LPWStr)] string pszBlobType,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] byte[] pbOutput,
     int cbOutput,
     out int pcbResult,
     BCryptExportKeyFlags dwFlags = BCryptExportKeyFlags.None);