GetFunctionWindow(
LPVOID:lpFuncData
)
→ HWND
The GetFunctionWindow function lets you retrieve the parent window handle for a batch-mode function. You can use this as the parent window to display your own dialogs if required.
If this function returns NULL you should not display any dialogs if possible.