A - 4 – INFICON CMS5000 Monitoring System User Manual
Page 256

A - 4
IP
N 07
4-
50
8-
P1
C
CMS5000 Operating Manual
/******************************************************************************
* Function Return Codes
* If function return is 0: No Error
* If function return is negative: CMS5000 error
* If function return is positive: Windows Error
*
******************************************************************************/
#define RTN_NO_ERROR 0
#define RTN_CONNECTION_TIMED_OUT -1
#define RTN_CMD_INVALID_COMMAND_ARG -2
#define RTN_CMD_INVALID_METHOD_NAME -3
#define RTN_METHOD_NOT_FOUND -4
#define RTN_METHOD_ALLREADY_RUNNING -5
#define RTN_COM_ERROR -6
#define RTN_ERROR -9
/******************************************************************************
* CMS5000_Connect
*
* Connects to a CMS5000. Each Successful Connect must be paired with a Disconnect.
*
* Parameters
* CMS5000 : [OUT] Handle to a CMS5000
* CMS5000_ip_address : [ IN] IP address of CMS5000 you wish to connect to
*
* Returns
* See Function Return Codes
*
* Example
* CMS5000_Connect( &CMS5000_handle, _T("10.210.50.101") );
*
******************************************************************************/
CMS5000API int CMS5000_Connect (CMS5000_HANDLE* CMS5000, const wchar_t*
CMS5000_ip_address);
/******************************************************************************
* CMS5000_Disconnect
*
* Disconnects with CMS5000 and free's up associated rescources.
* Each Successful Connect must be paired with a Disconnect.
*
* Parameters
* CMS5000 : [ IN] Handle to a CMS5000
*
* Returns
* See Function Return Codes.
*
* Example
* CMS5000_Disconnect( CMS5000_handle );
*
******************************************************************************/