Category Asynchronous mode, Object ProEngineer

Function ProEngineerDisconnect


Description
Disconnects the Creo Parametric TOOLKIT program from a Creo Parametric process to which it had previously connected using ProEngineerConnect().
Synopsis
#include <ProCore.h>
ProErrorProEngineerDisconnect(
ProProcessHandle* p_handle
/* (In)
The pointer to a process handle returned by ProEngineerConnect(). The handle itself will be invalidated as a result of the call.
*/
unsigned int timeout_sec
/* (In)
The time, in seconds, to wait for Creo Parametric to respond to the disconnect request.
*/
)
Returns
PRO_TK_NO_ERRORThe disconnect request succeeded.
PRO_TK_BAD_INPUTSThe argument p_handle is NULL, or points to an invalid process handle.
OtherAn error occurred and the disconnect request failed.
See Also
ProEngineerConnect

Manual References:

  1. Core: Asynchronous Mode: Simple Asynchronous Mode
  2. Core: Asynchronous Mode: Simple Asynchronous Mode

Sample Code References:

  1. pt_async ( TestAsync.c )