CryptoSys API Library Manual

Return Values

All the core VB6/C functions in this API return a 32-bit signed integer value, that is a Long in VB6/VBA and a long in C/C++, but an Integer in VB.NET and an int in C#. The wrapper functions provided in the .NET and ActiveX interfaces behave differently (and more conveniently) - please refer to the detailed documentation on those interfaces.

Functions either

  1. return zero to indicate success or a non-zero error code; or
  2. return a positive value to indicate, say, a required length or CRC value, or a negative error code.

The exception is the set of _Init functions which return a non-zero context handle on success or zero if an error has occurred. Always check the return value before continuing. Use the _InitError function to find out the code for the error that has occurred. The value itself of the context handle is unimportant, but do not change its value.

[Contents] [Index]

[PREV: Hexadecimal versus Bytes...]   [Contents]   [Index]   
   [NEXT: Using with Classic Visual Basic and VBA...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.