CryptoSys API Library Manual


Gets the platform the core DLL was compiled for.

VBA/VB6 Syntax

Public Declare Function API_Platform Lib "diCryptoSys.dll" (ByVal strOutput As String, ByVal nOutChars As Long) As Long

nRet = API_Platform(strOutput, nOutChars)

C/C++ Syntax

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


[out] to receive output, either "Win32" or "X64".
[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 apiPlatform() As String

.NET Equivalent

General.Platform Method

Python Equivalent

static Gen.core_platform()


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 wrapper function)

Debug.Print apiCompileTime()
Debug.Print apiModuleInfo()
Debug.Print apiModuleName()
Debug.Print apiPlatform()

See Also


[Contents] [Index]

[PREV: API_ModuleName...]   [Contents]   [Index]   
   [NEXT: API_PowerUpTests...]

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