CryptoSys PKI Toolkit Manual

PKI_ErrorCode

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

VB6/VBA Syntax

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

nRet = PKI_ErrorCode()

Parameters

None.

C/C++ Syntax

long _stdcall PKI_ErrorCode(void);

Returns (VB6/C)

Long: 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.

.NET Equivalent

General.ErrorCode Method

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]

[HOME]   [NEXT: PKI_ErrorLookup...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.