isc_service_detach()

From InterBase

Go Up to API Function Reference


Terminates the attachment to the InterBase Services Manager.

Syntax

 ISC_STATUS isc_service_detach(
 ISC_STATUS *status_vector,
 isc_svc_handle *svc_handle);
Parameter Type Description

status_vector

ISC_STATUS *

Pointer to the error status vector

svc_handle

isc_svc_handle *

Pointer to a long value containing the handle of the service structure.

Description

After you have performed all tasks and retrieved all information needed from the Services Manager, you should use this function to detach.

There are components in the InterBase Express™ package for Delphi and C++Builder that provide a visual interface to the Services Manager. See the Developer's Guide.

Example

See Detaching from a Services Manager with isc_service_detach( ) for an example using C/C++ code.

Return value

isc_service_detach() returns the second element of the status vector. Zero indicates success. A nonzero value indicates an error. For InterBase errors, the first element of the status vector is set to 1, and the second element is set to an InterBase error code.

To check for an InterBase error, examine the first two elements of the status vector directly. For more information about examining the status vector, see Handling Error Conditions.

See Also

Advance To: