skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: CSSM_ModuleLoadCSSM_ModuleLoad
go to next page: cssm_ReleaseAttachFunctionscssm_ReleaseAttachFunctions
end of book navigation links


CSSM_ModuleUnload
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

CSSM_ModuleUnload - Deregister event notification callbacks (CDSA)

SYNOPSIS  

# include <cssm.h>

CSSM_RETURN CSSMAPI CSSM_ModuleUnload(const CSSM_GUID *ModuleGuid,CSSM_API_ModuleEventHandler AppNotifyCallback,void* AppNotifyCallbackCtx)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

ModuleGuid (input)
 The GUID of the module selected for unloading.
AppNotifyCallback (input/optional)
 The event notification function to be deregistered.The function must have been provided by the caller in CSSM_ModuleLoad().
AppNotifyCallbackCtx (input/optional)
 The event notification context that was providedin the corresponding call to CSSM_ModuleLoad().


return to top DESCRIPTION  

The function deregisters event notification callbacks forthe caller identified by ModuleGuid. The CSSM_ModuleUnload() function is the analog call to CSSM_ModuleLoad(). If all callbacks registered with CSSM are removed,then CSSM unloads the service module that was loaded by calls to CSSM_ModuleLoad(). Calls to CSSM_ModuleUnload() that are not matched with a previous call to CSSM_ModuleLoad() result in an error.

The CSSM uses the three input parameters ModuleGuid, AppNotifyCallback, and AppNotifyCallbackCtx touniquely identify registered callbacks.

This function should be invoked after all necessary callsto CSSM_ModuleDetach() have been performed.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.
CSSMERR_CSSM_ADDIN_UNLOAD_FAILEDCSSMERR_CSSM_EMM_UNLOAD_FAILEDCSSMERR_CSSM_EVENT_NOTIFICATION_CALLBACK_NOT_FOUND


return to top SEE ALSO  

Intel CDSA Application Developer's Guide
go to previous page: CSSM_ModuleLoadCSSM_ModuleLoad
go to next page: cssm_ReleaseAttachFunctionscssm_ReleaseAttachFunctions