PFN_CDF_PARSE_ERROR_CALLBACK callback function (mscat.h)
The PFN_CDF_PARSE_ERROR_CALLBACK function is called for Catalog Definition Function errors while parsing a catalog definition file (CDF).
Syntax
PFN_CDF_PARSE_ERROR_CALLBACK PfnCdfParseErrorCallback;
void PfnCdfParseErrorCallback(
[in] DWORD dwErrorArea,
[in] DWORD dwLocalError,
[in] WCHAR *pwszLine
)
{...}
Parameters
[in] dwErrorArea
A value that indicates in which area of the CDF the error occurred.
[in] dwLocalError
A value that indicates the type of error.
[in] pwszLine
A pointer to a null-terminated string that contains the CDF line in which the error occurred.
Return value
None
Remarks
The dwErrorArea parameter can have the following possible values.
Value | Description |
---|---|
CRYPTCAT_E_AREA_HEADER | The header section of the CDF |
CRYPTCAT_E_AREA_MEMBER | A member file entry in the CatalogFiles section of the CDF |
CRYPTCAT_E_AREA_ATTRIBUTE | An attribute entry in the CDF |
The dwLocalError parameter can have the following possible values.
Value | Description |
---|---|
CRYPTCAT_E_CDF_UNSUPPORTED | The function does not support the attribute. |
CRYPTCAT_E_CDF_DUPLICATE | The file member already exists. |
CRYPTCAT_E_CDF_TAGNOTFOUND | The CatalogHeader or Name tag is missing. |
CRYPTCAT_E_CDF_MEMBER_FILE_PATH | The member file name or path is missing. |
CRYPTCAT_E_CDF_MEMBER_INDIRECTDATA | The function failed to create a hash of the member subject. |
CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND | The function failed to find the member file. |
CRYPTCAT_E_CDF_BAD_GUID_CONV | The function failed to convert the subject string to a GUID. |
CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES | The attribute line is missing one or more elements of its composition including type, object identifier (OID) or name, or value. |
CRYPTCAT_E_CDF_ATTR_TYPECOMBO | The attribute contains an invalid OID, or the combination of type, name or OID, and value is not valid. |
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 |