reference:plugins:plugin_sdk:batch_mode_functions:getfunctionwindowex

GetFunctionWindowEx(
     LPVFSFUNCDATA:lpVFSData,
     DWORD:dwFlags
)
→ HWND

Arguments

lpVFSData

dwFlags

[in] Flags. Valid flags are:

GFWE_ALLOWANYLISTERConsider any lister as a candidate. (Implies GFWE_ALLOWFOREGROUNDLISTER.)
GFWE_ALLOWFOREGROUNDLISTERConsider the foreground lister as a candidate.
GFWE_ALLOWDESKTOPIf all else fails, return the Windows desktop instead of NULL.

Return value

Returns the window handle, or NULL if no suitable window was found (unless GFWE_ALLOWDESKTOP is specified).

Description

The GetFunctionWindowEx function is an extended version of GetFunctionWindow that lets you control which windows are considered as candidates.