Moved private USER definitions to a new user_private.h header, and

removed the global user.h.
This commit is contained in:
Alexandre Julliard 2004-12-08 18:06:14 +00:00
parent 2c3de6db24
commit 6a78c16aac
49 changed files with 90 additions and 114 deletions

View File

@ -73,7 +73,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "controls.h" #include "controls.h"
#include "user.h" #include "user_private.h"
/* GetWindowLong offsets for window extra information */ /* GetWindowLong offsets for window extra information */
#define STATE_GWL_OFFSET 0 #define STATE_GWL_OFFSET 0

View File

@ -45,7 +45,6 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "message.h" #include "message.h"
#include "user.h"
#include "win.h" #include "win.h"
#include "controls.h" #include "controls.h"
#include "winreg.h" #include "winreg.h"

View File

@ -68,6 +68,7 @@
#include "winuser.h" #include "winuser.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "win.h" #include "win.h"
#include "user_private.h"
#include "winerror.h" #include "winerror.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -46,6 +46,9 @@ struct builtin_class_descr
}; };
/* defwnd proc */
extern HBRUSH DEFWND_ControlColor( HDC hDC, UINT ctlType );
/* desktop */ /* desktop */
extern BOOL DESKTOP_SetPattern( LPCWSTR pattern ); extern BOOL DESKTOP_SetPattern( LPCWSTR pattern );
@ -58,6 +61,7 @@ extern HWND MENU_IsMenuActive(void);
extern HMENU MENU_GetSysMenu(HWND hWndOwner, HMENU hSysPopup); extern HMENU MENU_GetSysMenu(HWND hWndOwner, HMENU hSysPopup);
extern UINT MENU_GetMenuBarHeight( HWND hwnd, UINT menubarWidth, extern UINT MENU_GetMenuBarHeight( HWND hwnd, UINT menubarWidth,
INT orgX, INT orgY ); INT orgX, INT orgY );
extern BOOL MENU_SetMenu(HWND, HMENU);
extern void MENU_TrackMouseMenuBar( HWND hwnd, INT ht, POINT pt ); extern void MENU_TrackMouseMenuBar( HWND hwnd, INT ht, POINT pt );
extern void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, WCHAR wChar ); extern void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, WCHAR wChar );
extern UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect, extern UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect,

View File

@ -30,7 +30,6 @@
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
#include "user.h"
#include "controls.h" #include "controls.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"

View File

@ -29,7 +29,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "controls.h" #include "controls.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dialog); WINE_DEFAULT_DEBUG_CHANNEL(dialog);

View File

@ -23,7 +23,7 @@
#include "wine/debug.h" #include "wine/debug.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "user.h" #include "user_private.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
WINE_DEFAULT_DEBUG_CHANNEL(cursor); WINE_DEFAULT_DEBUG_CHANNEL(cursor);

View File

@ -71,7 +71,7 @@
#include "controls.h" #include "controls.h"
#include "local.h" #include "local.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(edit); WINE_DEFAULT_DEBUG_CHANNEL(edit);

View File

@ -31,7 +31,7 @@
#include "winerror.h" #include "winerror.h"
#include "win.h" #include "win.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "wine/server.h" #include "wine/server.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -73,6 +73,7 @@
#include "heap.h" #include "heap.h"
#include "message.h" #include "message.h"
#include "win.h" #include "win.h"
#include "user_private.h"
#include "wine/server.h" #include "wine/server.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -30,6 +30,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "message.h" #include "message.h"
#include "win.h" #include "win.h"
#include "user_private.h"
#include "winproc.h" #include "winproc.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -48,7 +48,6 @@
#include "winuser.h" #include "winuser.h"
#include "winerror.h" #include "winerror.h"
#include "message.h" #include "message.h"
#include "user.h"
#include "controls.h" #include "controls.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "win.h" #include "win.h"

View File

@ -44,7 +44,7 @@
#include "win.h" #include "win.h"
#include "controls.h" #include "controls.h"
#include "nonclient.h" #include "nonclient.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(menu); WINE_DEFAULT_DEBUG_CHANNEL(menu);

View File

@ -35,7 +35,7 @@
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/server.h" #include "wine/server.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "winproc.h" #include "winproc.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -88,4 +88,10 @@ extern void SPY_ExitMessage( INT iFlag, HWND hwnd, UINT msg,
LRESULT lReturn, WPARAM wParam, LPARAM lParam ); LRESULT lReturn, WPARAM wParam, LPARAM lParam );
extern int SPY_Init(void); extern int SPY_Init(void);
/* check if hwnd is a broadcast magic handle */
inline static BOOL is_broadcast( HWND hwnd )
{
return (hwnd == HWND_BROADCAST || hwnd == HWND_TOPMOST);
}
#endif /* __WINE_MESSAGE_H */ #endif /* __WINE_MESSAGE_H */

View File

@ -23,6 +23,7 @@
#include "winerror.h" #include "winerror.h"
#include "message.h" #include "message.h"
#include "win.h" #include "win.h"
#include "user_private.h"
#include "winproc.h" #include "winproc.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -28,7 +28,6 @@
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wownt32.h" #include "wownt32.h"
#include "user.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(resource); WINE_DEFAULT_DEBUG_CHANNEL(resource);

View File

@ -42,7 +42,7 @@
#include "controls.h" #include "controls.h"
#include "win.h" #include "win.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "user.h" #include "user_private.h"
#include "message.h" #include "message.h"
WINE_DEFAULT_DEBUG_CHANNEL(scroll); WINE_DEFAULT_DEBUG_CHANNEL(scroll);

View File

@ -56,7 +56,7 @@
#include "wownt32.h" #include "wownt32.h"
#include "cursoricon.h" #include "cursoricon.h"
#include "controls.h" #include "controls.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(static); WINE_DEFAULT_DEBUG_CHANNEL(static);

View File

@ -39,7 +39,6 @@
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"
#include "wownt32.h" #include "wownt32.h"
#include "user.h"
#include "controls.h" #include "controls.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -26,7 +26,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "winuser.h" #include "winuser.h"
#include "user.h" #include "user_private.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -24,7 +24,7 @@
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wownt32.h" #include "wownt32.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "winproc.h" #include "winproc.h"
#include "cursoricon.h" #include "cursoricon.h"

View File

@ -31,7 +31,7 @@
#include "controls.h" #include "controls.h"
#include "cursoricon.h" #include "cursoricon.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -1,5 +1,5 @@
/* /*
* USER definitions * USER private definitions
* *
* Copyright 1993 Alexandre Julliard * Copyright 1993 Alexandre Julliard
* *
@ -18,16 +18,15 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifndef __WINE_USER_H #ifndef __WINE_USER_PRIVATE_H
#define __WINE_USER_H #define __WINE_USER_PRIVATE_H
#include <stdarg.h> #include <stdarg.h>
#include <windef.h> #include "windef.h"
#include <winbase.h> #include "winbase.h"
#include <wingdi.h> #include "wingdi.h"
#include <winuser.h> #include "winuser.h"
#include "local.h"
#include <local.h>
extern WORD USER_HeapSel; extern WORD USER_HeapSel;
@ -43,14 +42,6 @@ extern WORD USER_HeapSel;
#define GET_WORD(ptr) (*(const WORD *)(ptr)) #define GET_WORD(ptr) (*(const WORD *)(ptr))
#define GET_DWORD(ptr) (*(const DWORD *)(ptr)) #define GET_DWORD(ptr) (*(const DWORD *)(ptr))
#define USUD_LOCALALLOC 0x0001
#define USUD_LOCALFREE 0x0002
#define USUD_LOCALCOMPACT 0x0003
#define USUD_LOCALHEAP 0x0004
#define USUD_FIRSTCLASS 0x0005
struct tagCURSORICONINFO;
/* internal messages codes */ /* internal messages codes */
enum wine_internal_message enum wine_internal_message
{ {
@ -65,9 +56,7 @@ enum wine_internal_message
WM_WINE_MOUSE_LL_HOOK WM_WINE_MOUSE_LL_HOOK
}; };
/* internal SendInput codes (FIXME) */ struct tagCURSORICONINFO;
#define WINE_INTERNAL_INPUT_MOUSE (16+INPUT_MOUSE)
#define WINE_INTERNAL_INPUT_KEYBOARD (16+INPUT_KEYBOARD)
typedef struct tagUSER_DRIVER { typedef struct tagUSER_DRIVER {
/* keyboard functions */ /* keyboard functions */
@ -128,37 +117,19 @@ typedef struct tagUSER_DRIVER {
extern USER_DRIVER USER_Driver; extern USER_DRIVER USER_Driver;
extern HMODULE user32_module; extern HMODULE user32_module;
/* user lock */
extern void USER_Lock(void);
extern void USER_Unlock(void);
extern void USER_CheckNotLock(void);
extern BOOL USER_IsExitingThread( DWORD tid );
/* hook.c */
extern LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL unicode );
extern BOOL HOOK_IsHooked( INT id );
/* input.c */
extern BYTE InputKeyStateTable[256]; extern BYTE InputKeyStateTable[256];
extern BYTE AsyncKeyStateTable[256]; extern BYTE AsyncKeyStateTable[256];
extern DWORD USER16_AlertableWait;
/* syscolor.c */
extern void SYSCOLOR_Init(void);
extern HPEN SYSCOLOR_GetPen( INT index );
/* sysmetrics.c */
extern void SYSMETRICS_Init(void);
extern INT SYSMETRICS_Set( INT index, INT value );
/* sysparams.c */
extern void SYSPARAMS_GetDoubleClickSize( INT *width, INT *height );
extern INT SYSPARAMS_GetMouseButtonSwap( void );
extern BOOL CLIPBOARD_ReleaseOwner(void); extern BOOL CLIPBOARD_ReleaseOwner(void);
extern BOOL FOCUS_MouseActivate( HWND hwnd );
extern DWORD USER16_AlertableWait; extern BOOL HOOK_IsHooked( INT id );
extern void SYSCOLOR_Init(void);
extern HPEN SYSCOLOR_GetPen( INT index );
extern void SYSMETRICS_Init(void);
extern INT SYSMETRICS_Set( INT index, INT value );
extern void USER_CheckNotLock(void);
extern BOOL USER_IsExitingThread( DWORD tid );
/* HANDLE16 <-> HANDLE conversions */ /* HANDLE16 <-> HANDLE conversions */
#define HCURSOR_16(h32) (LOWORD(h32)) #define HCURSOR_16(h32) (LOWORD(h32))
@ -170,4 +141,4 @@ extern DWORD USER16_AlertableWait;
#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16)) #define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16))
#define HMODULE_32(h16) ((HMODULE)(ULONG_PTR)(h16)) #define HMODULE_32(h16) ((HMODULE)(ULONG_PTR)(h16))
#endif /* __WINE_USER_H */ #endif /* __WINE_USER_PRIVATE_H */

View File

@ -20,7 +20,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wownt32.h" #include "wownt32.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "winproc.h" #include "winproc.h"
#include "stackframe.h" #include "stackframe.h"

View File

@ -40,7 +40,6 @@ typedef int Status;
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "user.h"
#include "win.h" #include "win.h"
#include "ddrawi.h" #include "ddrawi.h"
#include "thread.h" #include "thread.h"

View File

@ -59,7 +59,6 @@
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "winreg.h" #include "winreg.h"
#include "user.h"
#include "win.h" #include "win.h"
#include "x11drv.h" #include "x11drv.h"
#include "xvidmode.h" #include "xvidmode.h"

View File

@ -28,8 +28,6 @@
#include <winuser.h> #include <winuser.h>
#include <wine/windef16.h> #include <wine/windef16.h>
#include <user.h>
#define WND_MAGIC 0x444e4957 /* 'WIND' */ #define WND_MAGIC 0x444e4957 /* 'WIND' */
struct tagCLASS; struct tagCLASS;
@ -68,14 +66,6 @@ typedef struct tagWND
DWORD wExtra[1]; /* Window extra bytes */ DWORD wExtra[1]; /* Window extra bytes */
} WND; } WND;
typedef struct
{
RECT16 rectNormal;
POINT16 ptIconPos;
POINT16 ptMaxPos;
HWND hwndIconTitle;
} INTERNALPOS, *LPINTERNALPOS;
/* WND flags values */ /* WND flags values */
#define WIN_RESTORE_MAX 0x0001 /* Maximize when restoring */ #define WIN_RESTORE_MAX 0x0001 /* Maximize when restoring */
#define WIN_NEED_SIZE 0x0002 /* Internal WM_SIZE is needed */ #define WIN_NEED_SIZE 0x0002 /* Internal WM_SIZE is needed */
@ -110,18 +100,20 @@ extern HWND *WIN_ListChildren( HWND hwnd );
extern BOOL WIN_InternalShowOwnedPopups( HWND owner, BOOL fShow, BOOL unmanagedOnly ); extern BOOL WIN_InternalShowOwnedPopups( HWND owner, BOOL fShow, BOOL unmanagedOnly );
extern void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT delta ); extern void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT delta );
/* internal SendInput codes (FIXME) */
#define WINE_INTERNAL_INPUT_MOUSE (16+INPUT_MOUSE)
#define WINE_INTERNAL_INPUT_KEYBOARD (16+INPUT_KEYBOARD)
/* user lock */
extern void USER_Lock(void);
extern void USER_Unlock(void);
inline static HWND WIN_GetFullHandle( HWND hwnd ) inline static HWND WIN_GetFullHandle( HWND hwnd )
{ {
if (!HIWORD(hwnd) && hwnd) hwnd = WIN_Handle32( LOWORD(hwnd) ); if (!HIWORD(hwnd) && hwnd) hwnd = WIN_Handle32( LOWORD(hwnd) );
return hwnd; return hwnd;
} }
inline static WND *WIN_FindWndPtr16( HWND16 hwnd )
{
/* don't bother with full conversion */
return WIN_FindWndPtr( (HWND)(ULONG_PTR)hwnd );
}
/* to release pointers retrieved by WIN_GetPtr; do not confuse with WIN_ReleaseWndPtr!! */ /* to release pointers retrieved by WIN_GetPtr; do not confuse with WIN_ReleaseWndPtr!! */
inline static void WIN_ReleasePtr( WND *ptr ) inline static void WIN_ReleasePtr( WND *ptr )
{ {
@ -130,16 +122,6 @@ inline static void WIN_ReleasePtr( WND *ptr )
#define WND_OTHER_PROCESS ((WND *)1) /* returned by WIN_GetPtr on unknown window handles */ #define WND_OTHER_PROCESS ((WND *)1) /* returned by WIN_GetPtr on unknown window handles */
extern HBRUSH DEFWND_ControlColor( HDC hDC, UINT ctlType ); /* windows/defwnd.c */ extern LRESULT HOOK_CallHooks( INT id, INT code, WPARAM wparam, LPARAM lparam, BOOL unicode );
extern BOOL FOCUS_MouseActivate( HWND hwnd );
extern BOOL MENU_SetMenu(HWND, HMENU);
/* check if hwnd is a broadcast magic handle */
inline static BOOL is_broadcast( HWND hwnd )
{
return (hwnd == HWND_BROADCAST || hwnd == HWND_TOPMOST);
}
#endif /* __WINE_WIN_H */ #endif /* __WINE_WIN_H */

View File

@ -34,7 +34,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "controls.h" #include "controls.h"
#include "dce.h" #include "dce.h"
#include "winproc.h" #include "winproc.h"

View File

@ -49,7 +49,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "heap.h" #include "heap.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -63,7 +63,7 @@
#include "cursoricon.h" #include "cursoricon.h"
#include "module.h" #include "module.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "user.h" #include "user_private.h"
#include "message.h" #include "message.h"
WINE_DEFAULT_DEBUG_CHANNEL(cursor); WINE_DEFAULT_DEBUG_CHANNEL(cursor);

View File

@ -34,7 +34,7 @@
#include <assert.h> #include <assert.h>
#include "dce.h" #include "dce.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "windef.h" #include "windef.h"
#include "wingdi.h" #include "wingdi.h"

View File

@ -31,7 +31,7 @@
#include "winnls.h" #include "winnls.h"
#include "imm.h" #include "imm.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "controls.h" #include "controls.h"
#include "nonclient.h" #include "nonclient.h"
#include "winpos.h" #include "winpos.h"

View File

@ -39,7 +39,7 @@
#include "controls.h" #include "controls.h"
#include "win.h" #include "win.h"
#include "winpos.h" #include "winpos.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dialog); WINE_DEFAULT_DEBUG_CHANNEL(dialog);

View File

@ -42,6 +42,7 @@
#include "wine/server.h" #include "wine/server.h"
#include "win.h" #include "win.h"
#include "message.h" #include "message.h"
#include "user_private.h"
#include "winternl.h" #include "winternl.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "winerror.h" #include "winerror.h"

View File

@ -97,7 +97,7 @@
#include "nonclient.h" #include "nonclient.h"
#include "controls.h" #include "controls.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "dlgs.h" #include "dlgs.h"

View File

@ -41,7 +41,7 @@
#include "controls.h" #include "controls.h"
#include "dde.h" #include "dde.h"
#include "message.h" #include "message.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "winpos.h" #include "winpos.h"
#include "winproc.h" #include "winproc.h"

View File

@ -30,7 +30,7 @@
#include "winreg.h" #include "winreg.h"
#include "winternl.h" #include "winternl.h"
#include "dlgs.h" #include "dlgs.h"
#include "user.h" #include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dialog); WINE_DEFAULT_DEBUG_CHANNEL(dialog);

View File

@ -28,7 +28,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wownt32.h" #include "wownt32.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "dce.h" #include "dce.h"
#include "controls.h" #include "controls.h"
#include "cursoricon.h" #include "cursoricon.h"

View File

@ -33,7 +33,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "message.h" #include "message.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "thread.h" #include "thread.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/server.h" #include "wine/server.h"

View File

@ -27,7 +27,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "winuser.h" #include "winuser.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -30,6 +30,7 @@
#include "wownt32.h" #include "wownt32.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "win.h" #include "win.h"
#include "user_private.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "message.h" #include "message.h"
#include "winnls.h" #include "winnls.h"

View File

@ -33,7 +33,6 @@
#include "wownt32.h" #include "wownt32.h"
#include "winreg.h" #include "winreg.h"
#include "local.h" #include "local.h"
#include "user.h"
#include "gdi.h" /* sic */ #include "gdi.h" /* sic */
#include "wine/debug.h" #include "wine/debug.h"
@ -157,7 +156,7 @@ void SYSCOLOR_Init(void)
if (!bNoReg) if (!bNoReg)
{ {
DWORD dwDataSize = sizeof(buffer); DWORD dwDataSize = sizeof(buffer);
if (!(RegQueryValueExA(hKey,(LPSTR)DefSysColors[i*2], 0, 0, buffer, &dwDataSize))) if (!(RegQueryValueExA(hKey,DefSysColors[i*2], 0, 0, buffer, &dwDataSize)))
if (sscanf( buffer, "%d %d %d", &r, &g, &b ) == 3) if (sscanf( buffer, "%d %d %d", &r, &g, &b ) == 3)
bOk = TRUE; bOk = TRUE;
} }

View File

@ -29,7 +29,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
#include "winerror.h" #include "winerror.h"
#include "user.h" #include "user_private.h"
static int sysMetrics[SM_CMETRICS+1]; static int sysMetrics[SM_CMETRICS+1];
static HDC display_dc; static HDC display_dc;

View File

@ -33,7 +33,7 @@
#include "winerror.h" #include "winerror.h"
#include "controls.h" #include "controls.h"
#include "user.h" #include "user_private.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"

View File

@ -31,7 +31,7 @@
#include "winreg.h" #include "winreg.h"
#include "winternl.h" #include "winternl.h"
#include "tlhelp32.h" #include "tlhelp32.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "controls.h" #include "controls.h"
#include "cursoricon.h" #include "cursoricon.h"
@ -71,6 +71,12 @@ static SYSLEVEL USER_SysLevel = { { &critsect_debug, -1, 0, 0, 0, 0 }, 2 };
#define USIG_PROCESS_RUNNING 0x0500 #define USIG_PROCESS_RUNNING 0x0500
#define USIG_PROCESS_LOADED 0x0600 #define USIG_PROCESS_LOADED 0x0600
/* UserSeeUserDo parameters */
#define USUD_LOCALALLOC 0x0001
#define USUD_LOCALFREE 0x0002
#define USUD_LOCALCOMPACT 0x0003
#define USUD_LOCALHEAP 0x0004
#define USUD_FIRSTCLASS 0x0005
/*********************************************************************** /***********************************************************************
* GetFreeSystemResources (USER.284) * GetFreeSystemResources (USER.284)

View File

@ -33,7 +33,7 @@
#include "wine/server.h" #include "wine/server.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "win.h" #include "win.h"
#include "user.h" #include "user_private.h"
#include "dce.h" #include "dce.h"
#include "controls.h" #include "controls.h"
#include "cursoricon.h" #include "cursoricon.h"

View File

@ -33,7 +33,7 @@
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "wine/server.h" #include "wine/server.h"
#include "controls.h" #include "controls.h"
#include "user.h" #include "user_private.h"
#include "win.h" #include "win.h"
#include "message.h" #include "message.h"
#include "winpos.h" #include "winpos.h"
@ -69,6 +69,14 @@ typedef struct
WINDOWPOS winPos[1]; WINDOWPOS winPos[1];
} DWP; } DWP;
typedef struct
{
RECT16 rectNormal;
POINT16 ptIconPos;
POINT16 ptMaxPos;
HWND hwndIconTitle;
} INTERNALPOS, *LPINTERNALPOS;
/* ----- internal variables ----- */ /* ----- internal variables ----- */
static LPCSTR atomInternalPos; static LPCSTR atomInternalPos;

View File

@ -37,6 +37,7 @@
#include "win.h" #include "win.h"
#include "winproc.h" #include "winproc.h"
#include "message.h" #include "message.h"
#include "user_private.h"
#include "thread.h" #include "thread.h"
#include "dde.h" #include "dde.h"
#include "winternl.h" #include "winternl.h"