Engine.RegisterUIMessageCallbackEx
- Updated2025-07-21
- 1 minute(s) read
Engine.RegisterUIMessageCallbackEx
Syntax
Engine.RegisterUIMessageCallbackEx( callbackFuncAddr)
Purpose
Registers a C function as the user interface message event callback.
Remarks
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 Variant
[In] Specifies the address of the callback function. The type of the variant must match the pointer size for the current platform, for example VT_UI4 for 32-bit TestStand and VT_UI8 for 64-bit TestStand.