Download Data-Sharing API User Manual - Pro
Transcript
Chapter 8 – Operation UINT32* AssignAppHandleList Lists the handles for each variable provided by the Data-Sharing API application. When a variable value is updated, it uses the variable handle defined here. CONNECTHANDLE* RetAdapterHandleList Lists the handles for each variable returned by the Data-Sharing API. The corresponding variable handle is used when the Data-Sharing API application makes a read or write request to the shared variable. Return : bool Comments : Uses the Data-Sharing API to make connections to the defined list of variables in the server target machine. A connection handle is returned for each variable that successfully connects. Otherwise, an invalid handle (-1) is returned. The caller is responsible for allocating and releasing the buffer for the connection handle list. Name : DisconnectFromVars bool DisconnectFromVars ( UINT16 NumOfHandles, CONNECTHANDLE* AppHandleList ) Parameters : UINT16 NumOfHandles Defines the number of connection handles to remove CONNECTHANDLE* AdapterHandleList The handle list returned when ConnectToVars is used to establish variable connections. 8–12 Return : bool Comments : Removes all the variable connections in this list of handles. Data-Sharing API User Manual