CryptoSys API Library Manual

API_Platform

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

Parameters

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

.NET Equivalent

General.Platform Method

Python Equivalent

static Gen.core_platform()

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

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

See Also

API_ModuleName

[Contents] [Index]

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

Copyright © 2001-23 D.I. Management Services Pty Ltd. All rights reserved. Generated 2023-05-27T11:37:34Z.