HWND GetSysModalWindow( )
This function returns the handle of a system-modal window, if one is present.
This function has no parameters.
The return value identifies the system-modal window, if one is present. If no such window is present, the return value is NULL.