大网数据广告活动
账户与安全

CryptCATCDFEnumMembersByCDFTagEx function

· 52CE 我爱测

Enumerates the individual file members in the CatalogFiles section of a catalog definition file (CDF).

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

The CryptCATCDFEnumMembersByCDFTagEx function enumerates the individual file members in the CatalogFiles section of a catalog definition file (CDF). CryptCATCDFEnumMembersByCDFTagEx is called by MakeCat.

Note:
This function has no associated header file or import library. To call this function, you must create a user-defined header file and use the LoadLibrary and GetProcAddress functions to dynamically link to Mssign32.dll.

Syntax

LPWSTR WINAPI CryptCATCDFEnumMembersByCDFTagEx(
  _In_    CRYPTCATCDF                  *pCDF,
  _Inout_ LPWSTR                       pwszPrevCDFTag,
  _In_    PFN_CDF_PARSE_ERROR_CALLBACK pfnParseError,
  _In_    CRYPTCATMEMBER               **ppMember,
  _In_    BOOL                         fContinueOnError,
  _In_    LPVOID                       pvReserved
);

Parameters

pCDF [in]

A pointer to a CRYPTCATCDF structure.

pwszPrevCDFTag [in, out]

A pointer to a null-terminated string that identifies the catalog file member.

pfnParseError [in]

A pointer to a user-defined function to handle file parse errors.

ppMember [in]

A pointer to a CRYPTCATMEMBER structure that contains the file member information.

fContinueOnError [in]

A value that specifies whether to keep in memory a reference to the last enumerated member.

pvReserved [in]

This parameter is reserved; do not use it.

Return value

Upon success, this function returns a pointer to a null-terminated string that identifies a file member in the CatalogFiles section of a CDF. The CryptCATCDFEnumMembersByCDFTagEx function returns a NULL pointer if it fails.

Remarks

You typically call this function in a loop to enumerate all of the catalog file members in a CDF. Before entering the loop, set pwszPrevCDFTag to NULL. The function returns a pointer to the first member. Set pwszPrevCDFTag to the return value of the function for subsequent iterations of the loop.

Examples

The following example shows the correct sequence of assignments for the pwszPrevCDFTag parameter (pwszMemberTag).

    CRYPTCATMEMBER      *pMember;
    LPWSTR              pwszMemberTag;
    CRYPTCATCDF         *pCDF;

    pCDF = CryptCATCDFOpen(L'myCDF', NULL);
    

    pMember = NULL;
    pwszMemberTag = NULL;

    while (pwszMemberTag = CryptCATCDFEnumMembersByCDFTagEx(pCDF,
                                                            pwszMemberTag,
                                                            NULL,
                                                            &pMember,
                                                            FALSE,
                                                            NULL))
    {
        //do something with pwszMemberTag and pMember
    }

    CryptCATCDFClose(pCDF);

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
DLL Wintrust.dll

See also

MakeCat

CRYPTCATCDF

CRYPTCATMEMBER

GetProcAddress

LoadLibrary

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。