CryptCATPutMemberInfo function

[The CryptCATPutMemberInfo function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

The CryptCATPutMemberInfo function allocates memory for a catalog member and adds it to the catalog.

Syntax


CRYPTCATMEMBER* WINAPI CryptCATPutMemberInfo(
  _In_     HANDLE hCatalog,
  _In_opt_ LPWSTR pwszFileName,
  _In_     LPWSTR pwszReferenceTag,
  _In_     GUID   *pgSubjectType,
  _In_     DWORD  dwCertVersion,
  _In_     DWORD  cbSIPIndirectData,
  _In_     BYTE   *pbSIPIndirectData
);

Parameters

hCatalog [in]

A handle to the catalog obtained from the CryptCATOpen or CryptCATHandleFromStore function.

pwszFileName [in, optional]

A pointer to a null-terminated string for the catalog file name.

pwszReferenceTag [in]

A pointer to a null-terminated string that contains the name of the member.

pgSubjectType [in]

A GUID for the subject type of the member.

dwCertVersion [in]

A value that specifies the certificate version.

cbSIPIndirectData [in]

A value that specifies the number of bytes in the pbSIPIndirectData buffer.

pbSIPIndirectData [in]

A pointer to a memory buffer for subject interface package (SIP)-indirect data.

Return value

A pointer to a CRYPTCATMEMBER structure that contains the assigned member. The caller must not free this pointer or any of its members.

If this function returns NULL, additional error information can be obtained by calling the GetLastError function. GetLastError will return one of the following error codes.

Return codeDescription
ERROR_INVALID_PARAMETER

One or more of the parameters are not valid.

ERROR_NOT_ENOUGH_MEMORY

The operating system ran out of memory during the operation.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mscat.h

Library

Wintrust.lib

DLL

Wintrust.dll

 

 

Show: