PreviousDTI Programmer's Guide (v10) Next

PvDisconnect()

Chapter contents

Attempts to disconnect the connection established earlier by PvConnectServer function.

Header file: CONNECT.H
Requires: W3DBAV75.DLL or higher version

Syntax

BTI_SINT PvDisconnect( 
	BTI_LONG         hConnection); 

Arguments

In
hConnection
Connection handle to be disconnected.Connection handles are obtained with the PvConnectServer() function.

Return Values

P_OK
The operation was successful.
P_E_INVALID_HANDLE
Invalid connection handle.
P_E_FAIL
Failed to disconnect to the named server.

Example

BTI_SINT status = 0; 
status = PvDisconnect(m_hConn); 

See Also

PvStart()
PvConnectServer()
PvGetMkdeClientsData()
PvGetMkdeCommStat()
PvGetMkdeUsage()
PvGetOpenFilesData()
PvFreeOpenFilesData()
PvDisconnectMkdeClient()
PvDisconnectSQLConnection()
PvStop()


Chapter contents
Book contents

Prev topic: PvDeleteLicense()
Next topic: PvDisconnectMkdeClient()