CSSM_SetError

Purpose

This function sets the current error information for the current thread to error and GUID.

Format

CSSM_RETURN CSSMAPI CSSM_SetError (CSSM_GUID_PTR GUID, uint32 error)

Parameters

Input
GUID
Pointer to the GUID of the module.
error
An error number. It should fall within one of the valid CSSM, CL, TP, DL, KRSP, or CSP error ranges.

Return Value

CSSM_OK if error was successfully set. A return value of CSSM_FAIL indicates that the error number passed is not within a valid range, the GUID passed is invalid. No error information is available.

Related Information

CSSM_InitError
CSSM_DestroyError
CSSM_ClearError
CSSM_GetError