Sample Install Program
/* fill service information */
strcpy(service_info.Description, “Dummy DL Module”); service_info.Type = CSSM_SERVICE_DL; service_info.Flags = 0; service_info.NumberOfSubServices = 1; service_info.SUBSVR.DlSubServiceList = &sub_service; service_info.Reserved = NULL;
/* fill module information */ module_info.Version = dl_version; module_info.CompatibleCSSMVersion = cssm_version; strcpy(module_info.Description, “HP Dummy DL Module”); strcpy(module_info.Vendor, “HP example”); module_info.Flags = CSSM_MODULE_EXPORTABLE; module_info.ServiceMask = CSSM_SERVICE_DL; module_info.NumberOfServices = 1; module_info.ServiceList = &service_info; module_info.Reserved = NULL;
/* Install the module */
if ( CSSM_ModuleInstall( “HP Dummy Data Storage Module”, DL_LIB,
DEST_PATH,
&my_addin_guid, &module_info, NULL,
NULL) )
{
error_ptr = CSSM_GetError();
Appendix A | 79 |