CryptSIPAddProvider function

The CryptSIPAddProvider function registers functions that are exported by a given DLL file that implements a Subject Interface Package (SIP).

Syntax

BOOL CryptSIPAddProvider(
  IN SIP_ADD_NEWPROVIDER *psNewProv
);

Parameters

psNewProv

A pointer to a SIP_ADD_NEWPROVIDER structure that specifies the DLL file and function names to register.

Return Value

The return value is TRUE if the function succeeds; FALSE if the function fails. If the function fails, call the GetLastError function to determine the reason for failure.

Remarks

Typically, you call this function as part of an in-process COM server registration. The CryptSIPAddProvider function persists the appropriate Registry entries for the SIP provider functions.

When you have finished using the added SIP provider, remove it by calling the CryptSIPRemoveProvider function.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header mssip.h
Library Crypt32.lib
DLL Crypt32.dll

See Also

CryptSIPRemoveProvider