Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f2c55128
Commit
f2c55128
authored
Aug 26, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Merge win.h into user_private.h.
parent
eb817e1f
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
52 additions
and
301 deletions
+52
-301
button.c
dlls/user32/button.c
+1
-9
class.c
dlls/user32/class.c
+0
-13
clipboard.c
dlls/user32/clipboard.c
+1
-17
combo.c
dlls/user32/combo.c
+0
-8
cursoricon.c
dlls/user32/cursoricon.c
+3
-14
dde_client.c
dlls/user32/dde_client.c
+2
-11
dde_misc.c
dlls/user32/dde_misc.c
+1
-10
dde_private.h
dlls/user32/dde_private.h
+3
-0
dde_server.c
dlls/user32/dde_server.c
+2
-11
defdlg.c
dlls/user32/defdlg.c
+1
-9
defwnd.c
dlls/user32/defwnd.c
+0
-9
dialog.c
dlls/user32/dialog.c
+3
-14
edit.c
dlls/user32/edit.c
+2
-10
focus.c
dlls/user32/focus.c
+0
-8
hook.c
dlls/user32/hook.c
+0
-12
icontitle.c
dlls/user32/icontitle.c
+1
-9
input.c
dlls/user32/input.c
+0
-17
mdi.c
dlls/user32/mdi.c
+2
-13
message.c
dlls/user32/message.c
+3
-16
nonclient.c
dlls/user32/nonclient.c
+0
-7
scroll.c
dlls/user32/scroll.c
+1
-7
user_main.c
dlls/user32/user_main.c
+3
-12
user_private.h
dlls/user32/user_private.h
+21
-0
win.c
dlls/user32/win.c
+1
-9
win.h
dlls/user32/win.h
+0
-45
winpos.c
dlls/user32/winpos.c
+0
-1
winproc.c
dlls/user32/winproc.c
+1
-10
No files found.
dlls/user32/button.c
View file @
f2c55128
...
...
@@ -38,18 +38,10 @@
* - BN_UNPUSHED/BN_UNHILITE
*/
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#define OEMRESOURCE
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "controls.h"
#include "win.h"
#include "user_private.h"
#include "controls.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
button
);
...
...
dlls/user32/class.c
View file @
f2c55128
...
...
@@ -19,21 +19,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "winerror.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winnls.h"
#include "win.h"
#include "user_private.h"
#include "controls.h"
#include "wine/server.h"
#include "wine/list.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
class
);
...
...
dlls/user32/clipboard.c
View file @
f2c55128
...
...
@@ -24,24 +24,8 @@
*/
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "user_private.h"
#include "win.h"
#include "wine/list.h"
#include "winnls.h"
#include "wine/server.h"
#include "wine/debug.h"
...
...
dlls/user32/combo.c
View file @
f2c55128
...
...
@@ -21,18 +21,10 @@
* - CB_SETTOPINDEX
*/
#include <stdarg.h>
#include <string.h>
#define OEMRESOURCE
#include "windef.h"
#include "winbase.h"
#include "ntuser.h"
#include "user_private.h"
#include "win.h"
#include "controls.h"
#include "winternl.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
combo
);
...
...
dlls/user32/cursoricon.c
View file @
f2c55128
...
...
@@ -24,23 +24,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <png.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winerror.h"
#include "winnls.h"
#include "wine/exception.h"
#include "wine/server.h"
#include "controls.h"
#include "win.h"
#include "user_private.h"
#include "wine/list.h"
#include "controls.h"
#include "wine/exception.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
cursor
);
...
...
dlls/user32/dde_client.c
View file @
f2c55128
...
...
@@ -23,18 +23,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "dde.h"
#include "ddeml.h"
#include "win.h"
#include "wine/debug.h"
#include "user_private.h"
#include "dde_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ddeml
);
...
...
dlls/user32/dde_misc.c
View file @
f2c55128
...
...
@@ -23,16 +23,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "dde.h"
#include "ddeml.h"
#include "win.h"
#include "user_private.h"
#include "dde_private.h"
#include "wine/debug.h"
...
...
dlls/user32/dde_private.h
View file @
f2c55128
...
...
@@ -25,6 +25,9 @@
#ifndef __WINE_DDEML_PRIVATE_H
#define __WINE_DDEML_PRIVATE_H
#include "dde.h"
#include "ddeml.h"
/* defined in atom.c file.
*/
#define MAX_ATOM_LEN 255
...
...
dlls/user32/dde_server.c
View file @
f2c55128
...
...
@@ -23,19 +23,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <string.h>
#include <wchar.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "dde.h"
#include "ddeml.h"
#include "win.h"
#include "wine/debug.h"
#include "user_private.h"
#include "dde_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ddeml
);
...
...
dlls/user32/defdlg.c
View file @
f2c55128
...
...
@@ -18,16 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "controls.h"
#include "win.h"
#include "user_private.h"
#include "
wine/debug
.h"
#include "
controls
.h"
/***********************************************************************
...
...
dlls/user32/defwnd.c
View file @
f2c55128
...
...
@@ -19,15 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <string.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winnls.h"
#include "imm.h"
#include "win.h"
#include "user_private.h"
#include "controls.h"
#include "wine/debug.h"
...
...
dlls/user32/dialog.c
View file @
f2c55128
...
...
@@ -18,22 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "controls.h"
#include "win.h"
#include <limits.h>
#include <errno.h>
#include "user_private.h"
#include "controls.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dialog
);
...
...
dlls/user32/edit.c
View file @
f2c55128
...
...
@@ -27,18 +27,10 @@
*
*/
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "win.h"
#include "imm.h"
#include "usp10.h"
#include "controls.h"
#include "user_private.h"
#include "controls.h"
#include "usp10.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
edit
);
...
...
dlls/user32/focus.c
View file @
f2c55128
...
...
@@ -20,14 +20,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "win.h"
#include "imm.h"
#include "user_private.h"
#include "wine/server.h"
...
...
dlls/user32/hook.c
View file @
f2c55128
...
...
@@ -62,21 +62,9 @@
* WH_MOUSE_LL Implemented but should use SendMessage instead
*/
#include <stdarg.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "win.h"
#include "user_private.h"
#include "wine/server.h"
#include "wine/asm.h"
#include "wine/debug.h"
#include "winternl.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
hook
);
WINE_DECLARE_DEBUG_CHANNEL
(
relay
);
...
...
dlls/user32/icontitle.c
View file @
f2c55128
...
...
@@ -18,16 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "user_private.h"
#include "controls.h"
#include "win.h"
static
BOOL
bMultiLineTitle
;
static
HFONT
hIconTitleFont
;
...
...
dlls/user32/input.c
View file @
f2c55128
...
...
@@ -24,25 +24,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <assert.h>
#define NONAMELESSUNION
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "winternl.h"
#include "winerror.h"
#include "win.h"
#include "user_private.h"
#include "dbt.h"
#include "wine/server.h"
...
...
dlls/user32/mdi.c
View file @
f2c55128
...
...
@@ -80,23 +80,12 @@
*
*/
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#define OEMRESOURCE
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wingdi.h"
#include "winuser.h"
#include <math.h>
#include "user_private.h"
#include "wownt32.h"
#include "win.h"
#include "controls.h"
#include "user_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mdi
);
...
...
dlls/user32/message.c
View file @
f2c55128
...
...
@@ -19,28 +19,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "winnls.h"
#include "dbt.h"
#include "dde.h"
#include "imm.h"
#include "hidusage.h"
#include "ddk/imm.h"
#include "wine/server.h"
#include "user_private.h"
#include "win.h"
#include "controls.h"
#include "dde.h"
#include "wine/server.h"
#include "wine/debug.h"
#include "wine/exception.h"
...
...
dlls/user32/nonclient.c
View file @
f2c55128
...
...
@@ -18,13 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winnls.h"
#include "win.h"
#include "user_private.h"
#include "controls.h"
#include "wine/debug.h"
...
...
dlls/user32/scroll.c
View file @
f2c55128
...
...
@@ -19,15 +19,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "user_private.h"
#include "controls.h"
#include "win.h"
#include "wine/debug.h"
#include "user_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
scroll
);
...
...
dlls/user32/user_main.c
View file @
f2c55128
...
...
@@ -18,21 +18,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "user_private.h"
#include "controls.h"
#include "imm.h"
#include "ddk/imm.h"
#include "controls.h"
#include "user_private.h"
#include "win.h"
#include "wine/debug.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
graphics
);
WINE_DECLARE_DEBUG_CHANNEL
(
message
);
...
...
dlls/user32/user_private.h
View file @
f2c55128
...
...
@@ -27,6 +27,7 @@
#include "wingdi.h"
#include "ntuser.h"
#include "winreg.h"
#include "winnls.h"
#include "wine/heap.h"
#define GET_WORD(ptr) (*(const WORD *)(ptr))
...
...
@@ -162,4 +163,24 @@ void WINAPI USER_ScrollBarDraw(HWND, HDC, INT, enum SCROLL_HITTEST,
INT
,
INT
,
INT
,
BOOL
)
DECLSPEC_HIDDEN
;
struct
scroll_info
*
SCROLL_GetInternalInfo
(
HWND
hwnd
,
INT
nBar
,
BOOL
alloc
);
/* Window functions */
BOOL
is_desktop_window
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
HWND
WIN_GetFullHandle
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
HWND
WIN_IsCurrentProcess
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
HWND
WIN_IsCurrentThread
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
ULONG
WIN_SetStyle
(
HWND
hwnd
,
ULONG
set_bits
,
ULONG
clear_bits
)
DECLSPEC_HIDDEN
;
HWND
WIN_CreateWindowEx
(
CREATESTRUCTW
*
cs
,
LPCWSTR
className
,
HINSTANCE
module
,
BOOL
unicode
)
DECLSPEC_HIDDEN
;
HWND
*
WIN_ListChildren
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
void
MDI_CalcDefaultChildPos
(
HWND
hwndClient
,
INT
total
,
LPPOINT
lpPos
,
INT
delta
,
UINT
*
id
)
DECLSPEC_HIDDEN
;
HDESK
open_winstation_desktop
(
HWINSTA
hwinsta
,
LPCWSTR
name
,
DWORD
flags
,
BOOL
inherit
,
ACCESS_MASK
access
)
DECLSPEC_HIDDEN
;
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
{
int
width
=
window_rect
->
right
-
window_rect
->
left
;
int
tmp
=
rect
->
left
;
rect
->
left
=
width
-
rect
->
right
;
rect
->
right
=
width
-
tmp
;
}
#endif
/* __WINE_USER_PRIVATE_H */
dlls/user32/win.c
View file @
f2c55128
...
...
@@ -18,19 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "user_private.h"
#include "
winn
ls.h"
#include "
contro
ls.h"
#include "winver.h"
#include "wine/server.h"
#include "wine/asm.h"
#include "win.h"
#include "controls.h"
#include "winerror.h"
#include "wine/exception.h"
#include "wine/debug.h"
...
...
dlls/user32/win.h
deleted
100644 → 0
View file @
eb817e1f
/*
* Window definitions
*
* Copyright 1993 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_WIN_H
#define __WINE_WIN_H
#include "user_private.h"
/* Window functions */
extern
BOOL
is_desktop_window
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
HWND
WIN_GetFullHandle
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
HWND
WIN_IsCurrentProcess
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
HWND
WIN_IsCurrentThread
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
ULONG
WIN_SetStyle
(
HWND
hwnd
,
ULONG
set_bits
,
ULONG
clear_bits
)
DECLSPEC_HIDDEN
;
extern
HWND
WIN_CreateWindowEx
(
CREATESTRUCTW
*
cs
,
LPCWSTR
className
,
HINSTANCE
module
,
BOOL
unicode
)
DECLSPEC_HIDDEN
;
extern
HWND
*
WIN_ListChildren
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
MDI_CalcDefaultChildPos
(
HWND
hwndClient
,
INT
total
,
LPPOINT
lpPos
,
INT
delta
,
UINT
*
id
)
DECLSPEC_HIDDEN
;
extern
HDESK
open_winstation_desktop
(
HWINSTA
hwinsta
,
LPCWSTR
name
,
DWORD
flags
,
BOOL
inherit
,
ACCESS_MASK
access
)
DECLSPEC_HIDDEN
;
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
{
int
width
=
window_rect
->
right
-
window_rect
->
left
;
int
tmp
=
rect
->
left
;
rect
->
left
=
width
-
rect
->
right
;
rect
->
right
=
width
-
tmp
;
}
#endif
/* __WINE_WIN_H */
dlls/user32/winpos.c
View file @
f2c55128
...
...
@@ -20,7 +20,6 @@
*/
#include "user_private.h"
#include "win.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
win
);
...
...
dlls/user32/winproc.c
View file @
f2c55128
...
...
@@ -19,18 +19,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wingdi.h"
#include "user_private.h"
#include "controls.h"
#include "win.h"
#include "dbt.h"
#include "user_private.h"
#include "wine/asm.h"
#include "wine/debug.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment