CryptoSys API Library Manual

API_CompileTime

Retrieves the date and time the core library executable was last compiled.

VBA/VB6 Syntax

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

nRet = API_CompileTime(strCompiledOn, nStrLen)

C/C++ Syntax

long __stdcall API_CompileTime(char *szOutput, long nMaxChars);

Parameters

szOutput
[out] to receive the date and time string.
nMaxChars
[in] specifying the maximum number of characters to be received.

Returns (VBA/C)

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

VBA Wrapper Syntax

Public Function apiCompileTime() As String

.NET Equivalent

General.CompileTime Method

C++ (STL) Equivalent

static std::string crsysapi::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 of the output string. C/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 = API_CompileTime(strCompiledOn, Len(strCompiledOn))
strCompiledOn = Left(strCompiledOn, nLen)
Debug.Print "API_CompileTime returns " & nLen & " [" & strCompiledOn & "]"

Example (VBA wrapper function)

Debug.Print "CompileTime=" & apiCompileTime()

See Also

API_Version

[Contents] [Index]

[PREV: AES256_UpdateHex...]   [Contents]   [Index]   
   [NEXT: API_ErrorCode...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.