CryptoSys PKI Toolkit Manual

PKI_Version

Retrieves the release version number.

VB6/VBA Syntax

Public Declare Function PKI_Version Lib "diCrPKI.dll" (ByVal nReserved1 As Long, ByVal nReserved2 As Long) As Long

nRet = PKI_Version(0, 0)

Parameters

nReserved1
[in] Long reserved - ignored in version 2.8 and above.
nReserved2
[in] Long reserved - ignored in version 2.8 and above.

C/C++ Syntax

long _stdcall PKI_Version(void *reserved1, void *reserved2);

Returns (VB6/C)

Long: If successful, the return value is the value of (100 x Major Version) + (10 x Minor Version) + (Release Number). For example, if the major version number is 2, the minor version is 7, and the release number is 3, then the return value will be 273. [Changed in Version 2.7 to include release number]. If this function fails, it means the toolkit is not installed or the library cannot be found.

.NET Equivalent

General.Version Method

Remarks

As of version 2.8, the arguments nReserved1 and nReserved2 are no longer passed "ByRef" and are ignored.

Example

Dim nRet As Long

nRet = PKI_Version(0, 0)
Debug.Print "PKI_Version returns " & nRet

See Also

PKI_LicenceType PKI_CompileTime

[Contents] [Index]

[HOME]   [NEXT: PWD_Prompt...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.