コード例 #1
0
 public static extern bool CryptQueryObject(CryptQueryObjectType dwObjectType,
                                            IntPtr pvObject,
                                            CertQueryContentFlags dwExpectedContentTypeFlags,
                                            CertQueryFormatFlags dwExpectedFormatTypeFlags,
                                            int dwFlags,
                                            out int pdwMsgAndCertEncodingType,
                                            out int pdwContentType,
                                            out int pdwFormatType,
                                            ref IntPtr phCertStore,
                                            ref IntPtr phMsg,
                                            ref IntPtr ppvContext);
コード例 #2
0
 public static extern bool CryptQueryObject
 (
     [param: In, MarshalAs(UnmanagedType.U4)] CryptQueryObjectType dwObjectType,
     [param: In, Out, MarshalAs(UnmanagedType.Struct)] ref CRYPTOAPI_BLOB pvObject,
     [param: In, MarshalAs(UnmanagedType.U4)] CryptQueryContentFlagType dwExpectedContentTypeFlags,
     [param: In, MarshalAs(UnmanagedType.U4)] CryptQueryFormatFlagType dwExpectedFormatTypeFlags,
     [param: In, MarshalAs(UnmanagedType.U4)] CryptQueryObjectFlags dwFlags,
     [param: Out, MarshalAs(UnmanagedType.U4)] out EncodingType pdwMsgAndCertEncodingType,
     [param: Out, MarshalAs(UnmanagedType.U4)] out CryptQueryContentType pdwContentType,
     [param: Out, MarshalAs(UnmanagedType.U4)] out CryptQueryFormatType pdwFormatType,
     [param: In, MarshalAs(UnmanagedType.SysInt)]  IntPtr phCertStore,
     [param: Out] out CryptMsgSafeHandle phMsg,
     [param: In, MarshalAs(UnmanagedType.SysInt)] IntPtr ppvContext
 );