Category Asynchronous mode, Object ProTerm

Function ProTermFuncSet


Description
Binds the user function to be called when Creo Parametric terminates normally (using Exit). To unbind the function, pass a null pointer.

NOTES:

  • The function is only valid while a Creo Parametric session spawned through ProEngineerStart() is running.
  • When it is outside the event loop, the application should unbind the notification function to avoid blocking Creo Parametric upon exit.
  • If the application calls ProEngineerEnd, term_function will not be called.
Synopsis
#include <ProCore.h>
ProErrorProTermFuncSet(
ProTerminationAction term_function
/* (In)
A pointer to the user's function, or NULL
*/
)
Returns
PRO_TK_NO_ERRORThe function was successful.
PRO_TK_GENERAL_ERRORThe function failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Asynchronous Mode: Full Asynchronous Mode
  3. Core: Asynchronous Mode: Full Asynchronous Mode

Sample Code References:

  1. pt_async ( TestAsync.c )