CryptoSys PKI Pro Manual

PKI_Platform

Gets the platform the core DLL was compiled for.

VBA/VB6 Syntax

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

nRet = PKI_Platform(strOutput, nOutChars)

C/C++ Syntax

long __stdcall PKI_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 pkiPlatform() As String

.NET Equivalent

General.Platform Method

C++ (STL) Equivalent

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

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 pkiCompileTime()
Debug.Print pkiModuleInfo()
Debug.Print pkiModuleName()
Debug.Print pkiPlatform()

See Also

PKI_ModuleName

[Contents] [Index]

[PREV: PKI_ModuleName...]   [Contents]   [Index]   
   [NEXT: PKI_PowerUpTests...]

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