CryptoSys PKI Pro Manual

PKI_CompileTime

Retrieves the date and time the toolkit executable was last compiled.

VBA/VB6 Syntax

Public Declare Function PKI_CompileTime Lib "diCrPKI.dll" (ByVal strCompiledOn As String, ByVal nStrLen As Long) As Long

nRet = PKI_CompileTime(strCompiledOn, nStrLen)

C/C++ Syntax

long __stdcall PKI_CompileTime(char *szOutput, long nOutChars);

Parameters

szOutput
[out] to receive the date and time string.
nOutChars
[in] specifying the maximum length of the string to be copied.

Returns (VBA/C)

If successful, the return value is the number of characters in or required for the output string; otherwise it returns a negative error code.

VBA Wrapper Syntax

Public Function pkiCompileTime() As String

.NET Equivalent

General.CompileTime Method

C++ (STL) Equivalent

static std::string dipki::Gen::CompileTime ()

Python Equivalent

static Gen.compile_time()

Remarks

For the "raw" VBA/C function, the user must allocate an output string buffer szOutput of the required length. Specify a zero nOutChars or an empty string for szOutput to find the required length. ANSI C users must add one to this value when allocating memory.

Example (VBA core function)

Dim nLen As Long
Dim strCompiledOn As String

strCompiledOn = String(255, " ")
nLen = PKI_CompileTime(strCompiledOn, Len(strCompiledOn))
strCompiledOn = Left(strCompiledOn, nLen)
Debug.Print "PKI_CompileTime returns " & nLen & " [" & strCompiledOn & "]"

Example (VBA wrapper function)

Debug.Print pkiCompileTime()
Debug.Print pkiModuleInfo()
Debug.Print pkiModuleName()
Debug.Print pkiPlatform()

See Also

PKI_Version

[Contents] [Index]

[PREV: PFX_VerifySig...]   [Contents]   [Index]   
   [NEXT: PKI_ErrorCode...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.