Returns the error code of the first error that occurred when calling the last function.
Public Declare Function PKI_ErrorCode Lib "diCrPKI.dll" () As Long
nRet = PKI_ErrorCode()
long __stdcall PKI_ErrorCode(void);
None.
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.
Public Function pkiErrorCode
() As Long
static Gen.error_code()
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.
Dim nErrCode as Long
nErrCode = PKI_ErrorCode()
PKI_LastError PKI_ErrorLookup Error codes