CryptoSys API Library Manual

API_PowerUpTests

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).

VB6/VBA Syntax

Public Declare Function API_PowerUpTests Lib "diCryptoSys.dll" (ByVal nOptions As Long) As Long

nRet = API_PowerUpTests(nOptions)

Parameters

nOptions
[in] Long option flags: not used in this release. Specify zero.

C/C++ Syntax

long _stdcall API_PowerUpTests(long nOptions);

Returns (VB6/C)

Long: If successful, the return value is 0; otherwise it returns a non-zero error code.

.NET Equivalent

General.PowerUpTests Method ()

Remarks

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.

Example

    Dim nRet As Long
    
    nRet = API_PowerUpTests(0)
    Debug.Print "API_PowerUpTests returns " & nRet

See Also

[Back to Top]

[HOME]   [NEXT: API_Version...]

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.