Add functions (mostly undocumented ones) to user32 (XP)

The additions were extracted from a .def file produced by gendef on XP SP3.
Some functions were moved around to preserve alphabetic order.
Trailing spaces were removed.
diff --git a/mingw-w64-crt/lib32/user32.def b/mingw-w64-crt/lib32/user32.def
old mode 100644
new mode 100755
index cc84505..f28deb5
--- a/mingw-w64-crt/lib32/user32.def
+++ b/mingw-w64-crt/lib32/user32.def
@@ -3,6 +3,8 @@
 ActivateKeyboardLayout@8
 AdjustWindowRect@12
 AdjustWindowRectEx@16
+AlignRects@16
+AllowForegroundActivation@0
 AllowSetForegroundWindow@4
 AnimateWindow@12
 AnyPopup@0
@@ -19,7 +21,9 @@
 BroadcastSystemMessageExA@24
 BroadcastSystemMessageExW@24
 BroadcastSystemMessageW@20
+BuildReasonArray@12
 CalcChildScroll@8
+CalcMenuBar@20
 CallMsgFilter@8
 CallMsgFilterA@8
 CallMsgFilterW@8
@@ -30,9 +34,9 @@
 CascadeWindows@20
 ChangeClipboardChain@8
 ChangeDisplaySettingsA@8
-ChangeDisplaySettingsW@8
 ChangeDisplaySettingsExA@20
 ChangeDisplaySettingsExW@20
+ChangeDisplaySettingsW@8
 ChangeMenuA@20
 ChangeMenuW@20
 CharLowerA@4
@@ -59,6 +63,8 @@
 CheckRadioButton@16
 ChildWindowFromPoint@12
 ChildWindowFromPointEx@16
+CliImmSetHotKey@16
+ClientThreadSetup@0
 ClientToScreen@8
 ClipCursor@4
 CloseClipboard@0
@@ -80,6 +86,7 @@
 CreateDesktopA@24
 CreateDesktopW@24
 CreateDialogIndirectParamA@20
+CreateDialogIndirectParamAorW@24
 CreateDialogIndirectParamW@20
 CreateDialogParamA@20
 CreateDialogParamW@20
@@ -91,10 +98,13 @@
 CreateMDIWindowW@40
 CreateMenu@0
 CreatePopupMenu@0
+CreateSystemThreads@8
 CreateWindowExA@48
 CreateWindowExW@48
 CreateWindowStationA@16
 CreateWindowStationW@16
+CsrBroadcastSystemMessageExW@24
+CtxInitUser32@0
 DdeAbandonTransaction@12
 DdeAccessData@8
 DdeAddData@16
@@ -145,13 +155,18 @@
 DestroyCursor@4
 DestroyIcon@4
 DestroyMenu@4
+DestroyReasons@4
 DestroyWindow@4
+DeviceEventWorker@20
 DialogBoxIndirectParamA@20
+DialogBoxIndirectParamAorW@24
 DialogBoxIndirectParamW@20
 DialogBoxParamA@20
 DialogBoxParamW@20
+DisableProcessWindowsGhosting@0
 DispatchMessageA@4
 DispatchMessageW@4
+DisplayExitWindowsWarnings@4
 DlgDirListA@20
 DlgDirListComboBoxA@20
 DlgDirListComboBoxW@20
@@ -164,6 +179,8 @@
 DragObject@20
 DrawAnimatedRects@16
 DrawCaption@16
+DrawCaptionTempA@28
+DrawCaptionTempW@28
 DrawEdge@16
 DrawFocusRect@8
 DrawFrame@16
@@ -171,6 +188,7 @@
 DrawIcon@16
 DrawIconEx@36
 DrawMenuBar@4
+DrawMenuBarTemp@20
 DrawStateA@40
 DrawStateW@40
 DrawTextA@20
@@ -187,6 +205,7 @@
 EndMenu@0
 EndPaint@8
 EndTask@12
+EnterReaderModeHelper@4
 EnumChildWindows@12
 EnumClipboardFormats@4
 EnumDesktopWindows@12
@@ -221,9 +240,11 @@
 FreeDDElParam@8
 GetActiveWindow@0
 GetAltTabInfo@20
-GetAltTabInfoA@20	
-GetAltTabInfoW@20	
+GetAltTabInfoA@20
+GetAltTabInfoW@20
 GetAncestor@8
+GetAppCompatFlags2@4
+GetAppCompatFlags@4
 GetAsyncKeyState@4
 GetCapture@0
 GetCaretBlinkTime@0
@@ -247,6 +268,7 @@
 GetClipboardViewer@0
 GetComboBoxInfo@8
 GetCursor@0
+GetCursorFrameInfo@20
 GetCursorInfo@4
 GetCursorPos@4
 GetDC@4
@@ -269,6 +291,7 @@
 GetIconInfo@8
 GetInputDesktop@0
 GetInputState@0
+GetInternalWindowPos@12
 GetKBCodePage@0
 GetKeyNameTextA@12
 GetKeyNameTextW@12
@@ -312,13 +335,16 @@
 GetPriorityClipboardFormat@8
 GetProcessDefaultLayout@4
 GetProcessWindowStation@0
+GetProgmanWindow@0
 GetPropA@8
 GetPropW@8
+GetQueueStatus@4
 GetRawInputBuffer@12
 GetRawInputData@20
 GetRawInputDeviceInfoA@16
 GetRawInputDeviceInfoW@16
 GetRawInputDeviceList@12
+GetReasonTitleFromReasonCode@12
 GetRegisteredRawInputDevices@12
 GetQueueStatus@4
 GetScrollBarInfo@12
@@ -333,6 +359,7 @@
 GetSystemMetrics@4
 GetTabbedTextExtentA@20
 GetTabbedTextExtentW@20
+GetTaskmanWindow@0
 GetThreadDesktop@4
 GetTitleBarInfo@8
 GetTopWindow@4
@@ -342,6 +369,7 @@
 GetUserObjectInformationA@20
 GetUserObjectInformationW@20
 GetUserObjectSecurity@20
+GetWinStationInfo@4
 GetWindow@8
 GetWindowContextHelpId@4
 GetWindowDC@4
@@ -354,6 +382,7 @@
 GetWindowPlacement@8
 GetWindowRect@8
 GetWindowRgn@8
+GetWindowRgnBox@8
 GetWindowTextA@12
 GetWindowTextLengthA@4
 GetWindowTextLengthW@4
@@ -368,6 +397,8 @@
 InSendMessage@0
 InSendMessageEx@4
 InflateRect@12
+InitializeLpkHooks@4
+InitializeWin32EntryTable@4
 InsertMenuA@20
 InsertMenuItemA@16
 InsertMenuItemW@16
@@ -397,9 +428,11 @@
 IsMenu@4
 IsRectEmpty@4
 IsTouchWindow@8
+IsServerSideWindow@4
 IsWinEventHookInstalled@4
 IsWindow@4
 IsWindowEnabled@4
+IsWindowInDestroy@4
 IsWindowUnicode@4
 IsWindowVisible@4
 IsZoomed@4
@@ -418,18 +451,24 @@
 LoadImageA@24
 LoadImageW@24
 LoadKeyboardLayoutA@8
+LoadKeyboardLayoutEx@12
 LoadKeyboardLayoutW@8
+LoadLocalFonts@0
 LoadMenuA@8
 LoadMenuIndirectA@4
 LoadMenuIndirectW@4
 LoadMenuW@8
+LoadRemoteFonts@0
 LoadStringA@16
 LoadStringW@16
 LockSetForegroundWindow@4
+LockWindowStation@4
 LockWindowUpdate@4
 LockWorkStation@0
 LookupIconIdFromDirectory@8
 LookupIconIdFromDirectoryEx@20
+MBToWCSEx@24
+MB_GetString@4
 MapDialogRect@8
 MapVirtualKeyA@8
 MapVirtualKeyExA@12
@@ -437,12 +476,16 @@
 MapVirtualKeyW@8
 MapWindowPoints@16
 MenuItemFromPoint@16
+MenuWindowProcA@20
+MenuWindowProcW@20
 MessageBeep@4
 MessageBoxA@16
 MessageBoxExA@20
 MessageBoxExW@20
 MessageBoxIndirectA@4
 MessageBoxIndirectW@4
+MessageBoxTimeoutA@24
+MessageBoxTimeoutW@24
 MessageBoxW@16
 ModifyMenuA@20
 ModifyMenuW@20
@@ -468,6 +511,7 @@
 OpenWindowStationW@12
 PackDDElParam@12
 PaintDesktop@4
+PaintMenuBar@24
 PeekMessageA@20
 PeekMessageW@20
 PostMessageA@16
@@ -476,12 +520,22 @@
 PostThreadMessageA@16
 PostThreadMessageW@16
 PrintWindow@12
+PrivateExtractIconExA@20
+PrivateExtractIconExW@20
 PrivateExtractIconsA@32
 PrivateExtractIconsW@32
+PrivateSetDbgTag@8
+PrivateSetRipFlags@8
 PtInRect@12
+QuerySendMessage@4
+QueryUserCounters@20
 RealChildWindowFromPoint@12
+RealGetWindowClass@12
 RealGetWindowClassA@12
 RealGetWindowClassW@12
+ReasonCodeNeedsBugID@4
+ReasonCodeNeedsComment@4
+RecordShutdownReason@4
 RedrawWindow@16
 RegisterClassA@4
 RegisterClassExA@4
@@ -493,8 +547,15 @@
 RegisterDeviceNotificationW@12
 RegisterHotKey@16
 RegisterPowerSettingNotification@12
+RegisterLogonProcess@8
+RegisterMessagePumpHook@4
 RegisterRawInputDevices@12
 RegisterTouchWindow@8
+RegisterServicesProcess@4
+RegisterShellHookWindow@4
+RegisterSystemThread@8
+RegisterTasklist@4
+RegisterUserApiHook@8
 RegisterWindowMessageA@4
 RegisterWindowMessageW@4
 ReleaseCapture@0
@@ -503,6 +564,7 @@
 RemovePropA@8
 RemovePropW@8
 ReplyMessage@4
+ResolveDesktopForWOW@4
 ReuseDDElParam@20
 ScreenToClient@8
 ScrollChildren@12
@@ -529,7 +591,9 @@
 SetClassWord@12
 SetClipboardData@8
 SetClipboardViewer@4
+SetConsoleReserveKeys@8
 SetCursor@4
+SetCursorContents@8
 SetCursorPos@8
 SetDebugErrorLevel@4
 SetDeskWallpaper@4
@@ -540,9 +604,11 @@
 SetFocus@4
 SetForegroundWindow@4
 SetGestureConfig@20
+SetInternalWindowPos@16
 SetKeyboardState@4
 SetLastErrorEx@8
 SetLayeredWindowAttributes@16
+SetLogonNotifyWindow@4
 SetMenu@8
 SetMenuContextHelpId@8
 SetMenuDefaultItem@12
@@ -555,6 +621,7 @@
 SetParent@8
 SetProcessDefaultLayout@4
 SetProcessWindowStation@4
+SetProgmanWindow@4
 SetPropA@12
 SetPropW@12
 SetRect@20
@@ -563,10 +630,13 @@
 SetScrollPos@16
 SetScrollRange@20
 SetShellWindow@4
+SetShellWindowEx@8
 SetSysColors@12
+SetSysColorsTemp@12
 SetSystemCursor@8
 SetSystemMenu@8
 SetSystemTimer@16
+SetTaskmanWindow@4
 SetThreadDesktop@4
 SetTimer@16
 SetUserObjectInformationA@16
@@ -579,6 +649,7 @@
 SetWindowPlacement@8
 SetWindowPos@28
 SetWindowRgn@12
+SetWindowStationUser@16
 SetWindowTextA@8
 SetWindowTextW@8
 SetWindowWord@12
@@ -590,8 +661,10 @@
 ShowCursor@4
 ShowOwnedPopups@8
 ShowScrollBar@12
+ShowStartGlass@4
 ShowWindow@8
 ShowWindowAsync@8
+SoftModalMessageBox@4
 SubtractRect@12
 SwapMouseButton@4
 SwitchDesktop@4
@@ -614,11 +687,13 @@
 TranslateAcceleratorW@12
 TranslateMDISysAccel@8
 TranslateMessage@4
+TranslateMessageEx@8
 UnhookWinEvent@4
 UnhookWindowsHook@8
 UnhookWindowsHookEx@4
 UnionRect@12
 UnloadKeyboardLayout@4
+UnlockWindowStation@4
 UnpackDDElParam@16
 UnregisterClassA@8
 UnregisterClassW@8
@@ -626,18 +701,32 @@
 UnregisterHotKey@8
 UnregisterPowerSettingNotification@4
 UnregisterTouchWindow@4
+UnregisterMessagePumpHook@0
+UnregisterUserApiHook@0
 UpdateLayeredWindow@36
 UpdateLayeredWindowIndirect@8
+UpdatePerUserSystemParameters@8
 UpdateWindow@4
+User32InitializeImmEntryTable@4
+UserClientDllInitialize@12
 UserHandleGrantAccess@12
+UserLpkPSMTextOut@24
+UserLpkTabbedTextOut@48
+UserRealizePalette@4
+UserRegisterWowHandlers@8
+VRipOutput@0
+VTagOutput@0
 ValidateRect@8
 ValidateRgn@8
 VkKeyScanA@4
 VkKeyScanExA@8
 VkKeyScanExW@8
 VkKeyScanW@4
+WCSToMBEx@24
+WINNLSGetIMEHotkey@4
 WaitForInputIdle@8
 WaitMessage@0
+Win32PoolAllocationStats@24
 WinHelpA@16
 WinHelpW@16
 WindowFromDC@4