CryptoSys PKI Pro Manual

PKI_ModuleInfo

Get additional information about the core DLL module.

VBA/VB6 Syntax

Public Declare Function PKI_ModuleInfo Lib "diCrPKI.dll" (ByVal strName As String, ByVal nStrLen As Long, ByVal nOptions As Long) As Long

nRet = PKI_ModuleInfo(strName, nStrLen, 0)

C/C++ Syntax

long __stdcall PKI_ModuleInfo(char *szOutput, long nOutChars, long nOptions);

Parameters

szOutput
[out] Buffer to receive output string.
nOutChars
[in] Maximum length of output string in bytes.
nOptions
[in] option flags: not used in this release. Specify zero.

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 pkiModuleInfo (Optional nOptions As Long = 0) As String

.NET Equivalent

General.ModuleInfo Method

Example (VBA core function)

Dim nLen As Long
Dim strModuleInfo As String

nLen = PKI_ModuleInfo("", 0, 0)
If nLen > 0 Then
    strModuleInfo = String(nLen, " ")
    nLen = PKI_ModuleInfo(strModuleInfo, nLen, 0)
    strModuleInfo = Left(strModuleInfo, nLen)
    Debug.Print "PKI_ModuleInfo returns " & nLen & " [" & strModuleInfo & "]"
Else
    Debug.Print "Error " & nLen & " with PKI_ModuleInfo"
End If
PKI_ModuleInfo returns 26 [Licensed Developer Edition]

Example (VBA wrapper function)

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

[Contents] [Index]

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

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