Пример #1
0
 public static unsafe extern bool CryptMsgGetParam
 (
     [param: In] CryptMsgSafeHandle hCryptMsg,
     [param: In, MarshalAs(UnmanagedType.U4)] CryptMsgParamType dwParamType,
     [param: In, MarshalAs(UnmanagedType.U4)] uint dwIndex,
     [param: In] LocalBufferSafeHandle pvData,
     [param: In, Out, MarshalAs(UnmanagedType.U4)] ref uint pcbData
 );
Пример #2
0
        public static LocalBufferSafeHandle Alloc(IntPtr size)
        {
            var instance = new LocalBufferSafeHandle(true);

            var handle = LocalAlloc(0, size);

            instance.SetHandle(handle);
            return(instance);
        }
Пример #3
0
 public static extern unsafe bool CryptDecodeObjectEx
 (
     [param: In, MarshalAs(UnmanagedType.U4)] EncodingType dwCertEncodingType,
     [param: In, MarshalAs(UnmanagedType.LPStr)] string lpszStructType,
     [param: In] void *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
 );