Win32-specific functions to get active window information