CryptCATOpen function (mscat.h)
[The CryptCATOpen function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
The CryptCATOpen function opens a catalog and returns a context handle to the open catalog.
Syntax
HANDLE CryptCATOpen(
[in] LPWSTR pwszFileName,
[in] DWORD fdwOpenFlags,
[in] HCRYPTPROV hProv,
[in] DWORD dwPublicVersion,
[in] DWORD dwEncodingType
);
Parameters
[in] pwszFileName
A pointer to a null-terminated string for the catalog file name.
[in] fdwOpenFlags
Zero, to open an existing catalog file, or a bitwise combination of one or more of the following values.
[in] hProv
A handle to a cryptographic service provider (CSP).
[in] dwPublicVersion
Version of the file. This can be one of the following values.
Value | Meaning |
---|---|
|
Version 1 file format. |
|
Version 2 file format.
Windows 8 and Windows Server 2012: Support for this value begins. |
[in] dwEncodingType
Encoding type used for the file. If this value is 0, then the encoding type is set to PKCS_7_ASN_ENCODING | X509_ASN_ENCODING.
Return value
Upon success, this function returns a handle to the open catalog. When you have finished using the handle, close it by calling the CryptCATClose function. The CryptCATOpen function returns INVALID_HANDLE_VALUE if it fails.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | mscat.h |
Library | Wintrust.lib |
DLL | Wintrust.dll |