Engine.RegisterUIMessageCallback
- Updated2025-07-21
- 1 minute(s) read
Engine.RegisterUIMessageCallback
Syntax
Engine.RegisterUIMessageCallback( callbackFuncAddr)
Purpose
Remarks
Registers a C function as the user interface message event callback.
You can use a C function as the Event callback, instead of using ActiveX events or polling. Ensure the Engine.UIMessagePollingEnabled property is False or TestStand does not call the callback.
The callback function must use the following C function prototype:
void __cdecl UIMessageCallback(struct IDispatch *UIMessageDisp);
The UIMessageDisp parameter is the IDispatch pointer to a UIMessage object. Because this pointer is passed to the callback as a parameter, do not release it when you finish using it.
Parameters
callbackFuncAddr As Long
[In] Specifies the address of the callback function.