Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Exemple #1
0
 public static extern bool CryptEncodeObjectEx
 (
     [param: In, MarshalAs(UnmanagedType.U4)] EncodingType dwCertEncodingType,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr lpszStructType,
     [param: In, MarshalAs(UnmanagedType.Struct)] ref CERT_PUBLIC_KEY_INFO pvStructInfo,
     [param: In, MarshalAs(UnmanagedType.U4)] uint dwFlags,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr pEncodePara,
     [param: Out] out LocalBufferSafeHandle pvEncoded,
     [param: In, Out, MarshalAs(UnmanagedType.U4)] ref uint pcbEncoded
 );
Exemple #2
0
 public static extern unsafe bool CryptDecodeObjectEx
 (
     [param: In, MarshalAs(UnmanagedType.U4)] EncodingType dwCertEncodingType,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr lpszStructType,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr pbEncoded,
     [param: In, MarshalAs(UnmanagedType.U4)] uint cbEncoded,
     [param: In, MarshalAs(UnmanagedType.U4)] CryptDecodeFlags dwFlags,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr pDecodePara,
     [param: Out] out LocalBufferSafeHandle pvStructInfo,
     [param: In, Out, MarshalAs(UnmanagedType.U4)] ref uint pcbStructInfo
 );