CryptoSys PKI Pro Manual

PKI_ErrorCode

Returns the error code of the first error that occurred when calling the last function.

VBA/VB6 Syntax

Public Declare Function PKI_ErrorCode Lib "diCrPKI.dll" () As Long

nRet = PKI_ErrorCode()

C/C++ Syntax

long __stdcall PKI_ErrorCode(void);

Parameters

None.

Returns (VBA/C)

Returns the error code for the first error that occurred when calling the last function, or zero if no error occurred. This may be different from the error code returned by the function itself if more than one error occurred during the call to the function.

VBA Wrapper Syntax

Public Function pkiErrorCode() As Long

.NET Equivalent

General.ErrorCode Method

Python Equivalent

static Gen.error_code()

Remarks

The value returned is always a non-negative integer.

For example, a call to CMS_MakeEnvData with one invalid X.509 certificate out of three would return 2 indicating two successful recipients. A call to PKI_ErrorCode() will indicate the error code for the invalid certificate. PKI_LastError() should have a more detailed error message.

Example

   Dim nErrCode as Long
   nErrCode = PKI_ErrorCode()

See Also

PKI_LastError PKI_ErrorLookup Error codes

[Contents] [Index]

[PREV: PKI_CompileTime...]   [Contents]   [Index]   
   [NEXT: PKI_ErrorLookup...]

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