User manual

SPI API reference
34 © 2007-2010 Analytica GmbH
SPICloseDevice
SPICloseDevice — Closes an open network connection to an AnaGate SPI device.
Syntax
#include <AnaGateDllSPI.h>
int SPICloseDevice(int hHandle);
Parameter
hHandle Valid access handle.
Return value
Returns Null if successful, or an error value otherwise (Appendix A, Return Codes).
Description
Closes an open network connection to an AnaGate SPI device. The hHandle parameter is a return value
of a succesfull call to the function SPIOpenDevice.
Important
It is recommended to close the connection, because all internally allocated system resources
are freed again and the connected AnaGate device is signalled that the active connection is
not longer in use and can be used again for new connect requests.
See also
SPIOpenDevice