Rerminates the VB API and releases all system resources used by the VB API.
Syntax
EsbTerm (hInst) ByVal hInst As Long
Parameter | Description |
---|---|
hInst | VB API instance handle. |
Notes
This function should normally be called after all other VB API calls have been completed, immediately prior to terminating your program.
Because this function terminates use of the VB API, any VB API functions (other than EsbInit()) called after this function has been executed will return an error.
Return Value
None.
Access
This function requires no special access.
Example
Declare Function EsbTerm Lib "ESBAPIN" (ByVal hInst As Long) As Long Sub ESB_Term () Dim sts As Long '***************************** ' Terminate the VB API '***************************** sts = EsbTerm (hInst) End Sub
See Also