This function sets the current error information for the current thread to error and GUID.
CSSM_RETURN CSSMAPI CSSM_SetError (CSSM_GUID_PTR GUID, uint32 error)
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.
CSSM_InitError
CSSM_DestroyError
CSSM_ClearError
CSSM_GetError