[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 13 Aug 2010 16:36:38 +0000 (16:36 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 13 Aug 2010 16:36:38 +0000 (16:36 +0000)
- Add an MSVC compatible definition file for user32.
- Temporarily add the user32 import library (until RosBE ships with one).
- Group user32 wine stubs into user32_stubs.c
- Add user32 to build.

svn path=/branches/cmake-bringup/; revision=48534

dll/win32/CMakeLists.txt
dll/win32/user32/CMakeLists.txt [new file with mode: 0644]
dll/win32/user32/libuser32.a [new file with mode: 0644]
dll/win32/user32/user32.def [new file with mode: 0644]
dll/win32/user32/user32_stubs.c [new file with mode: 0644]

index 4569555..05fc78f 100644 (file)
@@ -1,6 +1,6 @@
 
 add_subdirectory(advapi32)
-#add_subdirectory(gdi32)
+add_subdirectory(gdi32)
 add_subdirectory(kernel32)
 #add_subdirectory(msvcrt)
-#add_subdirectory(user32)
+add_subdirectory(user32)
diff --git a/dll/win32/user32/CMakeLists.txt b/dll/win32/user32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..15d7319
--- /dev/null
@@ -0,0 +1,45 @@
+
+SET(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
+
+add_definitions(-DUNICODE -D_UNICODE)
+add_definitions(-D_DLL -D__USE_CRTIMP)
+
+include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
+include_directories(include)
+
+get_directory_property(defines COMPILE_DEFINITIONS)
+get_directory_property(includes INCLUDE_DIRECTORIES)
+
+foreach(arg ${defines})
+  set(result_defs "${result_defs} -D${arg}")
+endforeach(arg ${defines})
+
+foreach(arg ${includes})
+  set(result_incs "-I${arg} ${result_incs}")
+endforeach(arg ${includes})
+
+SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${result_defs} ${result_incs} -i <SOURCE> -O coff -o <OBJECT>")
+
+file(GLOB_RECURSE SOURCE *.c)
+
+add_library(user32 SHARED
+    ${SOURCE}
+    ${CMAKE_CURRENT_SOURCE_DIR}/user32.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/user32_user32.h.gch)
+
+set_target_properties(user32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+
+target_link_libraries(user32
+    ${CMAKE_CURRENT_SOURCE_DIR}/user32.def
+    ${REACTOS_SOURCE_DIR}/lib/3rdparty/libwine/libwine.a
+    ${REACTOS_SOURCE_DIR}/dll/win32/gdi32/libgdi32.a
+    ${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
+    imm32
+    win32ksys
+    pseh
+    ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
+    ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
+                      
+add_pch(user32 ${CMAKE_CURRENT_SOURCE_DIR}/include/user32.h ${SOURCE})
+add_dependencies(user32 psdk)
diff --git a/dll/win32/user32/libuser32.a b/dll/win32/user32/libuser32.a
new file mode 100644 (file)
index 0000000..1355231
Binary files /dev/null and b/dll/win32/user32/libuser32.a differ
diff --git a/dll/win32/user32/user32.def b/dll/win32/user32/user32.def
new file mode 100644 (file)
index 0000000..becf4c4
--- /dev/null
@@ -0,0 +1,735 @@
+
+LIBRARY user32.dll
+
+EXPORTS
+  ActivateKeyboardLayout=NtUserActivateKeyboardLayout
+  AdjustWindowRect
+  AdjustWindowRectEx
+  AlignRects
+  AllowForegroundActivation
+  AllowSetForegroundWindow
+  AnimateWindow
+  AnyPopup
+  AppendMenuA
+  AppendMenuW
+  ArrangeIconicWindows
+  AttachThreadInput=NtUserAttachThreadInput
+  BeginDeferWindowPos
+  BeginPaint=NtUserBeginPaint
+  BlockInput=NtUserBlockInput
+  BringWindowToTop
+  BroadcastSystemMessage=BroadcastSystemMessageA
+  BroadcastSystemMessageA
+  BroadcastSystemMessageExA
+  BroadcastSystemMessageExW
+  BroadcastSystemMessageW
+  BuildReasonArray=__wine_stub_user32_dll_22
+  CalcMenuBar=__wine_stub_user32_dll_23
+  CallMsgFilter=CallMsgFilterA
+  CallMsgFilterA
+  CallMsgFilterW
+  CallNextHookEx
+  CallWindowProcA
+  CallWindowProcW
+  CascadeChildWindows
+  CascadeWindows
+  ChangeClipboardChain=NtUserChangeClipboardChain
+  ChangeDisplaySettingsA
+  ChangeDisplaySettingsExA
+  ChangeDisplaySettingsExW
+  ChangeDisplaySettingsW
+  ChangeMenuA
+  ChangeMenuW
+  CharLowerA
+  CharLowerBuffA
+  CharLowerBuffW
+  CharLowerW
+  CharNextA
+  CharNextExA
+  CharNextW
+  CharPrevA
+  CharPrevExA
+  CharPrevW
+  CharToOemA
+  CharToOemBuffA
+  CharToOemBuffW
+  CharToOemW
+  CharUpperA
+  CharUpperBuffA
+  CharUpperBuffW
+  CharUpperW
+  CheckDlgButton
+  CheckMenuItem
+  CheckMenuRadioItem
+  CheckRadioButton
+  ChildWindowFromPoint
+  ChildWindowFromPointEx
+  CliImmSetHotKey
+  ClientThreadSetup
+  ClientToScreen
+  ClipCursor=NtUserClipCursor
+  CloseClipboard=NtUserCloseClipboard
+  CloseDesktop=NtUserCloseDesktop
+  CloseWindow
+  CloseWindowStation=NtUserCloseWindowStation
+  CopyAcceleratorTableA
+  CopyAcceleratorTableW=NtUserCopyAcceleratorTable
+  CopyIcon
+  CopyImage
+  CopyRect
+  CountClipboardFormats=NtUserCountClipboardFormats
+  CreateAcceleratorTableA
+  CreateAcceleratorTableW=NtUserCreateAcceleratorTable
+  CreateCaret=NtUserCreateCaret
+  CreateCursor
+  CreateDesktopA
+  CreateDesktopW
+  CreateDialogIndirectParamA
+  CreateDialogIndirectParamAorW
+  CreateDialogIndirectParamW
+  CreateDialogParamA
+  CreateDialogParamW
+  CreateIcon
+  CreateIconFromResource
+  CreateIconFromResourceEx
+  CreateIconIndirect
+  CreateMDIWindowA
+  CreateMDIWindowW
+  CreateMenu
+  CreatePopupMenu
+  CreateSystemThreads=__wine_stub_user32_dll_96
+  CreateWindowExA
+  CreateWindowExW
+  CreateWindowStationA
+  CreateWindowStationW
+  CsrBroadcastSystemMessageExW
+  CtxInitUser32
+  DdeAbandonTransaction
+  DdeAccessData
+  DdeAddData
+  DdeClientTransaction
+  DdeCmpStringHandles
+  DdeConnect
+  DdeConnectList
+  DdeCreateDataHandle
+  DdeCreateStringHandleA
+  DdeCreateStringHandleW
+  DdeDisconnect
+  DdeDisconnectList
+  DdeEnableCallback
+  DdeFreeDataHandle
+  DdeFreeStringHandle
+  DdeGetData
+  DdeGetLastError
+  DdeGetQualityOfService
+  DdeImpersonateClient
+  DdeInitializeA
+  DdeInitializeW
+  DdeKeepStringHandle
+  DdeNameService
+  DdePostAdvise
+  DdeQueryConvInfo
+  DdeQueryNextServer
+  DdeQueryStringA
+  DdeQueryStringW
+  DdeReconnect
+  DdeSetQualityOfService
+  DdeSetUserHandle
+  DdeUnaccessData
+  DdeUninitialize
+  DefDlgProcA
+  DefDlgProcW
+  DefFrameProcA
+  DefFrameProcW
+  DefMDIChildProcA
+  DefMDIChildProcW
+  DefRawInputProc
+  DefWindowProcA
+  DefWindowProcW
+  DeferWindowPos
+  DeleteMenu=NtUserDeleteMenu
+  DeregisterShellHookWindow
+  DestroyAcceleratorTable
+  DestroyCaret
+  DestroyCursor
+  DestroyIcon
+  DestroyMenu=NtUserDestroyMenu
+  DestroyReasons=__wine_stub_user32_dll_153
+  DestroyWindow=NtUserDestroyWindow
+  DeviceEventWorker=__wine_stub_user32_dll_155
+  DialogBoxIndirectParamA
+  DialogBoxIndirectParamAorW
+  DialogBoxIndirectParamW
+  DialogBoxParamA
+  DialogBoxParamW
+  DisableProcessWindowsGhosting
+  DispatchMessageA
+  DispatchMessageW
+  DisplayExitWindowsWarnings
+  DlgDirListA
+  DlgDirListComboBoxA
+  DlgDirListComboBoxW
+  DlgDirListW
+  DlgDirSelectComboBoxExA
+  DlgDirSelectComboBoxExW
+  DlgDirSelectExA
+  DlgDirSelectExW
+  DragDetect
+  DragObject=NtUserDragObject
+  DrawAnimatedRects=NtUserDrawAnimatedRects
+  DrawCaption
+  DrawCaptionTempA
+  DrawCaptionTempW
+  DrawEdge
+  DrawFocusRect
+  DrawFrame
+  DrawFrameControl
+  DrawIcon
+  DrawIconEx
+  DrawMenuBar
+  DrawMenuBarTemp
+  DrawStateA
+  DrawStateW
+  DrawTextA
+  DrawTextExA
+  DrawTextExW
+  DrawTextW
+  EditWndProc=EditWndProcA
+  EmptyClipboard=NtUserEmptyClipboard
+  EnableMenuItem
+  EnableScrollBar
+  EnableWindow
+  EndDeferWindowPos
+  EndDialog
+  EndMenu
+  EndPaint=NtUserEndPaint
+  EndTask
+  EnterReaderModeHelper=__wine_stub_user32_dll_203
+  EnumChildWindows
+  EnumClipboardFormats
+  EnumDesktopWindows
+  EnumDesktopsA
+  EnumDesktopsW
+  EnumDisplayDevicesA
+  EnumDisplayDevicesW
+  EnumDisplayMonitors
+  EnumDisplaySettingsA
+  EnumDisplaySettingsExA
+  EnumDisplaySettingsExW
+  EnumDisplaySettingsW
+  EnumPropsA
+  EnumPropsExA
+  EnumPropsExW
+  EnumPropsW
+  EnumThreadWindows
+  EnumWindowStationsA
+  EnumWindowStationsW
+  EnumWindows
+  EqualRect
+  ExcludeUpdateRgn=NtUserExcludeUpdateRgn
+  ExitWindowsEx
+  FillRect
+  FindWindowA
+  FindWindowExA
+  FindWindowExW
+  FindWindowW
+  FlashWindow
+  FlashWindowEx=NtUserFlashWindowEx
+  FrameRect
+  FreeDDElParam
+  GetActiveWindow
+  GetAltTabInfo=GetAltTabInfoA
+  GetAltTabInfoA
+  GetAltTabInfoW
+  GetAncestor
+  GetAppCompatFlags
+  GetAppCompatFlags2
+  GetAsyncKeyState
+  GetCapture
+  GetCaretBlinkTime=NtUserGetCaretBlinkTime
+  GetCaretPos=NtUserGetCaretPos
+  GetClassInfoA
+  GetClassInfoExA
+  GetClassInfoExW
+  GetClassInfoW
+  GetClassLongA
+  GetClassLongW
+  GetClassNameA
+  GetClassNameW
+  GetClassWord
+  GetClientRect
+  GetClipCursor=NtUserGetClipCursor
+  GetClipboardData
+  GetClipboardFormatNameA
+  GetClipboardFormatNameW
+  GetClipboardOwner=NtUserGetClipboardOwner
+  GetClipboardSequenceNumber=NtUserGetClipboardSequenceNumber
+  GetClipboardViewer=NtUserGetClipboardViewer
+  GetComboBoxInfo
+  GetCursor
+  GetCursorFrameInfo=__wine_stub_user32_dll_266
+  GetCursorInfo=NtUserGetCursorInfo
+  GetCursorPos
+  GetDC=NtUserGetDC
+  GetDCEx=NtUserGetDCEx
+  GetDesktopWindow
+  GetDialogBaseUnits
+  GetDlgCtrlID
+  GetDlgItem
+  GetDlgItemInt
+  GetDlgItemTextA
+  GetDlgItemTextW
+  GetDoubleClickTime=NtUserGetDoubleClickTime
+  GetFocus
+  GetForegroundWindow=NtUserGetForegroundWindow
+  GetGUIThreadInfo=NtUserGetGUIThreadInfo
+  GetGuiResources=NtUserGetGuiResources
+  GetIconInfo
+  GetInputDesktop
+  GetInputState
+  GetInternalWindowPos
+  GetKBCodePage
+  GetKeyNameTextA
+  GetKeyNameTextW
+  GetKeyState
+  GetKeyboardLayout
+  GetKeyboardLayoutList=NtUserGetKeyboardLayoutList
+  GetKeyboardLayoutNameA
+  GetKeyboardLayoutNameW
+  GetKeyboardState=NtUserGetKeyboardState
+  GetKeyboardType
+  GetLastActivePopup
+  GetLastInputInfo
+  GetLayeredWindowAttributes=NtUserGetLayeredWindowAttributes
+  GetListBoxInfo=NtUserGetListBoxInfo
+  GetMenu
+  GetMenuBarInfo=NtUserGetMenuBarInfo
+  GetMenuCheckMarkDimensions
+  GetMenuContextHelpId
+  GetMenuDefaultItem
+  GetMenuInfo
+  GetMenuItemCount
+  GetMenuItemID
+  GetMenuItemInfoA
+  GetMenuItemInfoW
+  GetMenuItemRect=NtUserGetMenuItemRect
+  GetMenuState
+  GetMenuStringA
+  GetMenuStringW
+  GetMessageA
+  GetMessageExtraInfo
+  GetMessagePos
+  GetMessageTime
+  GetMessageW
+  GetMonitorInfoA
+  GetMonitorInfoW
+  GetMouseMovePointsEx=NtUserGetMouseMovePointsEx
+  GetNextDlgGroupItem
+  GetNextDlgTabItem
+  GetOpenClipboardWindow=NtUserGetOpenClipboardWindow
+  GetParent
+  GetPriorityClipboardFormat=NtUserGetPriorityClipboardFormat
+  GetProcessDefaultLayout
+  GetProcessWindowStation=NtUserGetProcessWindowStation
+  GetProgmanWindow
+  GetPropA
+  GetPropW
+  GetQueueStatus
+  GetRawInputBuffer
+  GetRawInputData
+  GetRawInputDeviceInfoA
+  GetRawInputDeviceInfoW
+  GetRawInputDeviceList
+  GetReasonTitleFromReasonCode=__wine_stub_user32_dll_339
+  GetRegisteredRawInputDevices
+  GetScrollBarInfo=NtUserGetScrollBarInfo
+  GetScrollInfo
+  GetScrollPos
+  GetScrollRange
+  GetShellWindow
+  GetSubMenu
+  GetSysColor
+  GetSysColorBrush
+  GetSystemMenu
+  GetSystemMetrics
+  GetTabbedTextExtentA
+  GetTabbedTextExtentW
+  GetTaskmanWindow
+  GetThreadDesktop
+  GetTitleBarInfo=NtUserGetTitleBarInfo
+  GetTopWindow
+  GetUpdateRect
+  GetUpdateRgn
+  GetUserObjectInformationA
+  GetUserObjectInformationW=NtUserGetObjectInformation
+  GetUserObjectSecurity
+  GetWindow
+  GetWindowContextHelpId
+  GetWindowDC=NtUserGetWindowDC
+  GetWindowInfo
+  GetWindowLongA
+  GetWindowLongW
+  GetWindowModuleFileName=GetWindowModuleFileNameA
+  GetWindowModuleFileNameA
+  GetWindowModuleFileNameW
+  GetWindowPlacement=NtUserGetWindowPlacement
+  GetWindowRect
+  GetWindowRgn
+  GetWindowRgnBox
+  GetWindowTextA
+  GetWindowTextLengthA
+  GetWindowTextLengthW
+  GetWindowTextW
+  GetWindowThreadProcessId
+  GetWindowWord
+  GrayStringA
+  GrayStringW
+  HideCaret=NtUserHideCaret
+  HiliteMenuItem=NtUserHiliteMenuItem
+  IMPGetIMEA
+  IMPGetIMEW
+  IMPQueryIMEA
+  IMPQueryIMEW
+  IMPSetIMEA
+  IMPSetIMEW
+  ImpersonateDdeClientWindow
+  InSendMessage
+  InSendMessageEx
+  InflateRect
+  InitializeLpkHooks
+  InitializeWin32EntryTable=__wine_stub_user32_dll_396
+  InsertMenuA
+  InsertMenuItemA
+  InsertMenuItemW
+  InsertMenuW
+  InternalGetWindowText
+  IntersectRect
+  InvalidateRect=NtUserInvalidateRect
+  InvalidateRgn=NtUserInvalidateRgn
+  InvertRect
+  IsCharAlphaA
+  IsCharAlphaNumericA
+  IsCharAlphaNumericW
+  IsCharAlphaW
+  IsCharLowerA
+  IsCharLowerW
+  IsCharUpperA
+  IsCharUpperW
+  IsChild
+  IsClipboardFormatAvailable=NtUserIsClipboardFormatAvailable
+  IsDialogMessage=IsDialogMessageA
+  IsDialogMessageA
+  IsDialogMessageW
+  IsDlgButtonChecked
+  IsGUIThread
+  IsHungAppWindow
+  IsIconic
+  IsMenu
+  IsProcess16Bit=__wine_stub_user32_dll_424
+  IsRectEmpty
+  IsSETEnabled=__wine_stub_user32_dll_426
+  IsServerSideWindow
+  IsWinEventHookInstalled
+  IsWindow
+  IsWindowEnabled
+  IsWindowInDestroy
+  IsWindowUnicode
+  IsWindowVisible
+  IsWow64Message=__wine_stub_user32_dll_434
+  IsZoomed
+  KillSystemTimer
+  KillTimer=NtUserKillTimer
+  LoadAcceleratorsA
+  LoadAcceleratorsW
+  LoadBitmapA
+  LoadBitmapW
+  LoadCursorA
+  LoadCursorFromFileA
+  LoadCursorFromFileW
+  LoadCursorW
+  LoadIconA
+  LoadIconW
+  LoadImageA
+  LoadImageW
+  LoadKeyboardLayoutA
+  LoadKeyboardLayoutEx=__wine_stub_user32_dll_451
+  LoadKeyboardLayoutW
+  LoadLocalFonts
+  LoadMenuA
+  LoadMenuIndirectA
+  LoadMenuIndirectW
+  LoadMenuW
+  LoadRemoteFonts
+  LoadStringA
+  LoadStringW
+  LockSetForegroundWindow
+  LockWindowStation=NtUserLockWindowStation
+  LockWindowUpdate=NtUserLockWindowUpdate
+  LockWorkStation=NtUserLockWorkStation
+  LookupIconIdFromDirectory
+  LookupIconIdFromDirectoryEx
+  MBToWCSEx
+  MB_GetString
+  MapDialogRect
+  MapVirtualKeyA
+  MapVirtualKeyExA
+  MapVirtualKeyExW
+  MapVirtualKeyW
+  MapWindowPoints
+  MenuItemFromPoint
+  MenuWindowProcA
+  MenuWindowProcW
+  MessageBeep
+  MessageBoxA
+  MessageBoxExA
+  MessageBoxExW
+  MessageBoxIndirectA
+  MessageBoxIndirectW
+  MessageBoxTimeoutA=__wine_stub_user32_dll_484
+  MessageBoxTimeoutW=__wine_stub_user32_dll_485
+  MessageBoxW
+  ModifyMenuA
+  ModifyMenuW
+  MonitorFromPoint
+  MonitorFromRect
+  MonitorFromWindow
+  MoveWindow=NtUserMoveWindow
+  MsgWaitForMultipleObjects
+  MsgWaitForMultipleObjectsEx
+  NotifyWinEvent
+  OemKeyScan
+  OemToCharA
+  OemToCharBuffA
+  OemToCharBuffW
+  OemToCharW
+  OffsetRect
+  OpenClipboard
+  OpenDesktopA
+  OpenDesktopW
+  OpenIcon
+  OpenInputDesktop=NtUserOpenInputDesktop
+  OpenWindowStationA
+  OpenWindowStationW
+  PackDDElParam
+  PaintDesktop=NtUserPaintDesktop
+  PaintMenuBar=__wine_stub_user32_dll_511
+  PeekMessageA
+  PeekMessageW
+  PostMessageA
+  PostMessageW
+  PostQuitMessage
+  PostThreadMessageA
+  PostThreadMessageW
+  PrivateExtractIconExA
+  PrivateExtractIconExW
+  PrivateExtractIconsA
+  PrivateExtractIconsW
+  PtInRect
+  QuerySendMessage=NtUserQuerySendMessage
+  RealChildWindowFromPoint
+  RealGetWindowClass=RealGetWindowClassA
+  RealGetWindowClassA
+  RealGetWindowClassW
+  ReasonCodeNeedsBugID=__wine_stub_user32_dll_529
+  ReasonCodeNeedsComment=__wine_stub_user32_dll_530
+  RecordShutdownReason=__wine_stub_user32_dll_531
+  RedrawWindow=NtUserRedrawWindow
+  RegisterClassA
+  RegisterClassExA
+  RegisterClassExW
+  RegisterClassW
+  RegisterClipboardFormatA
+  RegisterClipboardFormatW
+  RegisterDeviceNotificationA=RegisterDeviceNotificationW
+  RegisterDeviceNotificationW
+  RegisterHotKey=NtUserRegisterHotKey
+  RegisterLogonProcess
+  RegisterMessagePumpHook=__wine_stub_user32_dll_543
+  RegisterRawInputDevices
+  RegisterServicesProcess
+  RegisterShellHookWindow
+  RegisterSystemThread
+  RegisterTasklist=NtUserRegisterTasklist
+  RegisterUserApiHook
+  RegisterWindowMessageA
+  RegisterWindowMessageW
+  ReleaseCapture
+  ReleaseDC
+  RemoveMenu=NtUserRemoveMenu
+  RemovePropA
+  RemovePropW
+  ReplyMessage
+  ReuseDDElParam
+  ScreenToClient
+  ScrollChildren
+  ScrollDC
+  ScrollWindow
+  ScrollWindowEx
+  SendDlgItemMessageA
+  SendDlgItemMessageW
+  SendIMEMessageExA
+  SendIMEMessageExW
+  SendInput=NtUserSendInput
+  SendMessageA
+  SendMessageCallbackA
+  SendMessageCallbackW
+  SendMessageTimeoutA
+  SendMessageTimeoutW
+  SendMessageW
+  SendNotifyMessageA
+  SendNotifyMessageW
+  SetActiveWindow=NtUserSetActiveWindow
+  SetCapture=NtUserSetCapture
+  SetCaretBlinkTime
+  SetCaretPos
+  SetClassLongA
+  SetClassLongW
+  SetClassWord
+  SetClipboardData
+  SetClipboardViewer=NtUserSetClipboardViewer
+  SetConsoleReserveKeys=__wine_stub_user32_dll_586
+  SetCursor=NtUserSetCursor
+  SetCursorContents=NtUserSetCursorContents
+  SetCursorPos
+  SetDebugErrorLevel
+  SetDeskWallpaper
+  SetDlgItemInt
+  SetDlgItemTextA
+  SetDlgItemTextW
+  SetDoubleClickTime
+  SetFocus=NtUserSetFocus
+  SetForegroundWindow
+  SetInternalWindowPos=NtUserSetInternalWindowPos
+  SetKeyboardState=NtUserSetKeyboardState
+  SetLastErrorEx
+  SetLayeredWindowAttributes=NtUserSetLayeredWindowAttributes
+  SetLogonNotifyWindow
+  SetMenu
+  SetMenuContextHelpId=NtUserSetMenuContextHelpId
+  SetMenuDefaultItem=NtUserSetMenuDefaultItem
+  SetMenuInfo
+  SetMenuItemBitmaps
+  SetMenuItemInfoA
+  SetMenuItemInfoW
+  SetMessageExtraInfo
+  SetMessageQueue
+  SetParent=NtUserSetParent
+  SetProcessDefaultLayout
+  SetProcessWindowStation=NtUserSetProcessWindowStation
+  SetProgmanWindow
+  SetPropA
+  SetPropW
+  SetRect
+  SetRectEmpty
+  SetScrollInfo
+  SetScrollPos
+  SetScrollRange
+  SetShellWindow
+  SetShellWindowEx=NtUserSetShellWindowEx
+  SetSysColors
+  SetSysColorsTemp
+  SetSystemCursor
+  SetSystemMenu
+  SetSystemTimer=NtUserSetSystemTimer
+  SetTaskmanWindow
+  SetThreadDesktop=NtUserSetThreadDesktop
+  SetTimer=NtUserSetTimer
+  SetUserObjectInformationA=NtUserSetObjectInformation
+  SetUserObjectInformationW=NtUserSetObjectInformation
+  SetUserObjectSecurity
+  SetWinEventHook
+  SetWindowContextHelpId
+  SetWindowLongA
+  SetWindowLongW
+  SetWindowPlacement=NtUserSetWindowPlacement
+  SetWindowPos=NtUserSetWindowPos
+  SetWindowRgn
+  SetWindowStationUser
+  SetWindowTextA
+  SetWindowTextW
+  SetWindowWord
+  SetWindowsHookA
+  SetWindowsHookExA
+  SetWindowsHookExW
+  SetWindowsHookW
+  ShowCaret=NtUserShowCaret
+  ShowCursor
+  ShowOwnedPopups
+  ShowScrollBar=NtUserShowScrollBar
+  ShowStartGlass
+  ShowWindow=NtUserShowWindow
+  ShowWindowAsync=NtUserShowWindowAsync
+  SoftModalMessageBox=__wine_stub_user32_dll_658
+  SubtractRect
+  SwapMouseButton
+  SwitchDesktop=NtUserSwitchDesktop
+  SwitchToThisWindow
+  SystemParametersInfoA
+  SystemParametersInfoW
+  TabbedTextOutA
+  TabbedTextOutW
+  TileChildWindows
+  TileWindows
+  ToAscii
+  ToAsciiEx
+  ToUnicode
+  ToUnicodeEx
+  TrackMouseEvent
+  TrackPopupMenu
+  TrackPopupMenuEx
+  TranslateAccelerator=TranslateAcceleratorA
+  TranslateAcceleratorA
+  TranslateAcceleratorW
+  TranslateMDISysAccel
+  TranslateMessage
+  TranslateMessageEx=__wine_stub_user32_dll_681
+  UnhookWinEvent=NtUserUnhookWinEvent
+  UnhookWindowsHook
+  UnhookWindowsHookEx=NtUserUnhookWindowsHookEx
+  UnionRect
+  UnloadKeyboardLayout=NtUserUnloadKeyboardLayout
+  UnlockWindowStation=NtUserUnlockWindowStation
+  UnpackDDElParam
+  UnregisterClassA
+  UnregisterClassW
+  UnregisterDeviceNotification
+  UnregisterHotKey=NtUserUnregisterHotKey
+  UnregisterMessagePumpHook=__wine_stub_user32_dll_693
+  UnregisterUserApiHook=NtUserUnregisterUserApiHook
+  UpdateLayeredWindow
+  UpdateLayeredWindowIndirect
+  UpdatePerUserSystemParameters
+  UpdateWindow
+  User32InitializeImmEntryTable
+  UserClientDllInitialize=DllMain
+  UserHandleGrantAccess=NtUserUserHandleGrantAccess
+  UserLpkPSMTextOut=__wine_stub_user32_dll_702
+  UserLpkTabbedTextOut=__wine_stub_user32_dll_703
+  UserRealizePalette
+  UserRegisterWowHandlers
+  ValidateRect=NtUserValidateRect
+  ValidateRgn
+  VkKeyScanA
+  VkKeyScanExA
+  VkKeyScanExW
+  VkKeyScanW
+  WCSToMBEx
+  WINNLSEnableIME
+  WINNLSGetEnableStatus
+  WINNLSGetIMEHotkey
+  WaitForInputIdle
+  WaitMessage=NtUserWaitMessage
+  Win32PoolAllocationStats=__wine_stub_user32_dll_718
+  WinHelpA
+  WinHelpW
+  WindowFromDC
+  WindowFromPoint
+  WindowFromPhysicalPoint=NtUserWindowFromPhysicalPoint
+  keybd_event
+  mouse_event
+  wsprintfA
+  wsprintfW
+  wvsprintfA
+  wvsprintfW
+  PrivateCsrssManualGuiCheck
+  SetProcessDPIAware
diff --git a/dll/win32/user32/user32_stubs.c b/dll/win32/user32/user32_stubs.c
new file mode 100644 (file)
index 0000000..51e6aee
--- /dev/null
@@ -0,0 +1,45 @@
+
+#include <stdarg.h>
+#include "windef.h"
+#include "winbase.h"
+#include "wine/config.h"
+#include "wine/exception.h"
+
+void __wine_spec_unimplemented_stub( const char *module, const char *function )
+{
+    ULONG_PTR args[2];
+
+    args[0] = (ULONG_PTR)module;
+    args[1] = (ULONG_PTR)function;
+    RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
+}
+
+static const char __wine_spec_file_name[] = "user32.dll";
+
+void __wine_stub_user32_dll_22(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "BuildReasonArray"); }
+void __wine_stub_user32_dll_23(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CalcMenuBar"); }
+void __wine_stub_user32_dll_96(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CreateSystemThreads"); }
+void __wine_stub_user32_dll_153(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "DestroyReasons"); }
+void __wine_stub_user32_dll_155(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "DeviceEventWorker"); }
+void __wine_stub_user32_dll_203(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "EnterReaderModeHelper"); }
+void __wine_stub_user32_dll_266(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetCursorFrameInfo"); }
+void __wine_stub_user32_dll_339(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetReasonTitleFromReasonCode"); }
+void __wine_stub_user32_dll_396(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "InitializeWin32EntryTable"); }
+void __wine_stub_user32_dll_424(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsProcess16Bit"); }
+void __wine_stub_user32_dll_426(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsSETEnabled"); }
+void __wine_stub_user32_dll_434(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "IsWow64Message"); }
+void __wine_stub_user32_dll_451(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "LoadKeyboardLayoutEx"); }
+void __wine_stub_user32_dll_484(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "MessageBoxTimeoutA"); }
+void __wine_stub_user32_dll_485(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "MessageBoxTimeoutW"); }
+void __wine_stub_user32_dll_511(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "PaintMenuBar"); }
+void __wine_stub_user32_dll_529(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ReasonCodeNeedsBugID"); }
+void __wine_stub_user32_dll_530(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ReasonCodeNeedsComment"); }
+void __wine_stub_user32_dll_531(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "RecordShutdownReason"); }
+void __wine_stub_user32_dll_543(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "RegisterMessagePumpHook"); }
+void __wine_stub_user32_dll_586(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetConsoleReserveKeys"); }
+void __wine_stub_user32_dll_658(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SoftModalMessageBox"); }
+void __wine_stub_user32_dll_681(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "TranslateMessageEx"); }
+void __wine_stub_user32_dll_693(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UnregisterMessagePumpHook"); }
+void __wine_stub_user32_dll_702(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UserLpkPSMTextOut"); }
+void __wine_stub_user32_dll_703(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "UserLpkTabbedTextOut"); }
+void __wine_stub_user32_dll_718(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "Win32PoolAllocationStats"); }