API Documentation > Miscellaneous > Object ProTerm > Function ProTermFuncSet
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>
ProTermFuncSet
(
ProTerminationAction term_function
/* (In)
A pointer to the user's function, or NULL
*/
)
Returns
The function was successful.
The function failed.
Sample Code References
User Guide References
Was this helpful?