Carries out on demand the full set of power-up tests automatically performed by the toolkit when first powered up (i.e. when the DLL is first attached to the process).
Public Declare Function PKI_PowerUpTests Lib "diCrPKI.dll"
(ByVal nOptions As Long) As Long
nRet = PKI_PowerUpTests(nOptions)
long __stdcall PKI_PowerUpTests(long nOptions);
If successful, returns zero; otherwise it returns a nonzero error code.
This is an optional function. Unlike the tests carried out on actual power-up, this function does not cause the DLL to quit. If errors do occur, an error event will be recorded in the Application event log for NT+ operating systems or in an error log file on W9x systems. For more information on error logging after a self-test error, see Self Tests. Users are warned not to use the toolkit if an error has occurred after using this optional test. In such an event, please contact us.
Dim nRet As Long
nRet = PKI_PowerUpTests(0)
Debug.Print "PKI_PowerUpTests returns " & nRet