Sample Add-in Module Code
* |
|
*/ |
void _MyAddIn_Init(hInstance, loading) shl_t hInstance;
int loading;
{
if (loading) {
}
else { dl_DeregisterServices();
}
}
* Name: dl_GetCSSMFunctionPointer
CSSM_RETURN dl_GetCSSMFunctionPointer (FunctionName,
FunctionPtr)
char *FunctionName; void **FunctionPtr;
{
void *tmp;
shl_findsym(&g_cssmHandle, FunctionName, TYPE_PROCEDURE, (void *) &tmp); *FunctionPtr = tmp;
if (*FunctionPtr) return CSSM_OK;
92 | Appendix C |