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
fa7aaca9
Commit
fa7aaca9
authored
Jul 26, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Remove no longer needed exports.
parent
3dc3709f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
66 deletions
+8
-66
user_main.c
dlls/user32/user_main.c
+0
-19
user_private.h
dlls/user32/user_private.h
+0
-3
winproc.c
dlls/user32/winproc.c
+0
-26
class.c
dlls/win32u/class.c
+6
-0
ntuser_private.h
dlls/win32u/ntuser_private.h
+2
-10
sysparams.c
dlls/win32u/sysparams.c
+0
-6
ntuser.h
include/ntuser.h
+0
-2
No files found.
dlls/user32/user_main.c
View file @
fa7aaca9
...
...
@@ -39,8 +39,6 @@ WINE_DECLARE_DEBUG_CHANNEL(message);
HMODULE
user32_module
=
0
;
static
DWORD
exiting_thread_id
;
extern
void
WDML_NotifyThreadDetach
(
void
);
/***********************************************************************
...
...
@@ -242,30 +240,18 @@ static BOOL process_attach(void)
/**********************************************************************
* USER_IsExitingThread
*/
BOOL
USER_IsExitingThread
(
DWORD
tid
)
{
return
(
tid
==
exiting_thread_id
);
}
/**********************************************************************
* thread_detach
*/
static
void
thread_detach
(
void
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
exiting_thread_id
=
GetCurrentThreadId
();
NtUserCallNoParam
(
NtUserExitingThread
);
WDML_NotifyThreadDetach
();
NtUserCallNoParam
(
NtUserThreadDetach
);
HeapFree
(
GetProcessHeap
(),
0
,
thread_info
->
wmchar_data
);
exiting_thread_id
=
0
;
}
...
...
@@ -380,11 +366,6 @@ const char *SPY_GetMsgName( UINT msg, HWND hwnd )
return
(
const
char
*
)
NtUserCallHwndParam
(
hwnd
,
msg
,
NtUserSpyGetMsgName
);
}
const
char
*
SPY_GetVKeyName
(
WPARAM
wparam
)
{
return
(
const
char
*
)
NtUserCallOneParam
(
wparam
,
NtUserSpyGetVKeyName
);
}
void
SPY_EnterMessage
(
INT
flag
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
if
(
TRACE_ON
(
message
))
NtUserMessageCall
(
hwnd
,
msg
,
wparam
,
lparam
,
0
,
NtUserSpyEnter
,
flag
);
...
...
dlls/user32/user_private.h
View file @
fa7aaca9
...
...
@@ -77,7 +77,6 @@ extern HPEN SYSCOLOR_GetPen( INT index ) DECLSPEC_HIDDEN;
extern
HBRUSH
SYSCOLOR_Get55AABrush
(
void
)
DECLSPEC_HIDDEN
;
extern
void
SYSPARAMS_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
USER_CheckNotLock
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
USER_IsExitingThread
(
DWORD
tid
)
DECLSPEC_HIDDEN
;
typedef
LRESULT
(
*
winproc_callback_t
)(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
,
LRESULT
*
result
,
void
*
arg
);
...
...
@@ -90,7 +89,6 @@ extern INT_PTR WINPROC_CallDlgProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM
extern
INT_PTR
WINPROC_CallDlgProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
DECLSPEC_HIDDEN
;
extern
void
winproc_init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
dispatch_win_proc_params
(
struct
win_proc_params
*
params
)
DECLSPEC_HIDDEN
;
extern
void
get_winproc_params
(
struct
win_proc_params
*
params
)
DECLSPEC_HIDDEN
;
extern
ATOM
get_class_info
(
HINSTANCE
instance
,
const
WCHAR
*
name
,
WNDCLASSEXW
*
info
,
UNICODE_STRING
*
name_str
,
BOOL
ansi
)
DECLSPEC_HIDDEN
;
...
...
@@ -107,7 +105,6 @@ BOOL WINAPI User32RegisterBuiltinClasses( const struct win_hook_params *params,
/* message spy definitions */
extern
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
)
DECLSPEC_HIDDEN
;
extern
const
char
*
SPY_GetVKeyName
(
WPARAM
wParam
)
DECLSPEC_HIDDEN
;
extern
void
SPY_EnterMessage
(
INT
iFlag
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
DECLSPEC_HIDDEN
;
extern
void
SPY_ExitMessage
(
INT
iFlag
,
HWND
hwnd
,
UINT
msg
,
LRESULT
lReturn
,
WPARAM
wParam
,
LPARAM
lParam
)
DECLSPEC_HIDDEN
;
...
...
dlls/user32/winproc.c
View file @
fa7aaca9
...
...
@@ -66,13 +66,6 @@ static inline void free_buffer( void *static_buffer, void *buffer )
if
(
buffer
!=
static_buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
/* return the window proc for a given handle, or NULL for an invalid handle,
* or WINPROC_PROC16 for a handle to a 16-bit proc. */
static
inline
WINDOWPROC
*
handle_to_proc
(
WNDPROC
handle
)
{
return
(
WINDOWPROC
*
)
NtUserCallOneParam
(
HandleToUlong
(
handle
),
NtUserGetWinProcPtr
);
}
#ifdef __i386__
/* Some window procedures modify registers they shouldn't, or are not
* properly declared stdcall; so we need a small assembly wrapper to
...
...
@@ -1276,25 +1269,6 @@ BOOL WINAPI User32CallWindowProc( struct win_proc_params *params, ULONG size )
return
TRUE
;
}
void
get_winproc_params
(
struct
win_proc_params
*
params
)
{
WINDOWPROC
*
proc
=
handle_to_proc
(
params
->
func
);
if
(
!
proc
)
{
params
->
procW
=
params
->
procA
=
NULL
;
}
else
if
(
proc
==
WINPROC_PROC16
)
{
params
->
procW
=
params
->
procA
=
WINPROC_PROC16
;
}
else
{
params
->
procA
=
proc
->
procA
;
params
->
procW
=
proc
->
procW
;
}
}
BOOL
WINAPI
User32CallSendAsyncCallback
(
const
struct
send_async_params
*
params
,
ULONG
size
)
{
params
->
callback
(
params
->
hwnd
,
params
->
msg
,
params
->
data
,
params
->
result
);
...
...
dlls/win32u/class.c
View file @
fa7aaca9
...
...
@@ -60,6 +60,12 @@ typedef struct tagCLASS
struct
client_menu_name
menu_name
;
/* Default menu name */
}
CLASS
;
typedef
struct
tagWINDOWPROC
{
WNDPROC
procA
;
/* ANSI window proc */
WNDPROC
procW
;
/* Unicode window proc */
}
WINDOWPROC
;
static
WINDOWPROC
winproc_array
[
MAX_WINPROCS
];
static
UINT
winproc_used
=
NB_BUILTIN_WINPROCS
;
static
pthread_mutex_t
winproc_lock
=
PTHREAD_MUTEX_INITIALIZER
;
...
...
dlls/win32u/ntuser_private.h
View file @
fa7aaca9
...
...
@@ -106,8 +106,8 @@ typedef struct tagWND
#define WIN_CHILDREN_MOVED 0x0040
/* children may have moved, ignore stored positions */
#define WIN_HAS_IME_WIN 0x0080
/* the window has been registered with imm32 */
#define WND_OTHER_PROCESS ((WND *)1)
/* returned by
WIN_GetP
tr on unknown window handles */
#define WND_DESKTOP ((WND *)2)
/* returned by
WIN_GetP
tr on the desktop window */
#define WND_OTHER_PROCESS ((WND *)1)
/* returned by
get_win_p
tr on unknown window handles */
#define WND_DESKTOP ((WND *)2)
/* returned by
get_win_p
tr on the desktop window */
/* check if hwnd is a broadcast magic handle */
static
inline
BOOL
is_broadcast
(
HWND
hwnd
)
...
...
@@ -197,13 +197,6 @@ struct scroll_bar_win_data
struct
scroll_info
info
;
};
/* FIXME: make it private to class.c */
typedef
struct
tagWINDOWPROC
{
WNDPROC
procA
;
/* ANSI window proc */
WNDPROC
procW
;
/* Unicode window proc */
}
WINDOWPROC
;
#define WINPROC_HANDLE (~0u >> 16)
#define BUILTIN_WINPROC(index) ((WNDPROC)(ULONG_PTR)((index) | (WINPROC_HANDLE << 16)))
...
...
@@ -243,7 +236,6 @@ extern void spy_exit_message( INT flag, HWND hwnd, UINT msg,
/* class.c */
extern
HINSTANCE
user32_module
DECLSPEC_HIDDEN
;
WNDPROC
alloc_winproc
(
WNDPROC
func
,
BOOL
ansi
)
DECLSPEC_HIDDEN
;
WINDOWPROC
*
get_winproc_ptr
(
WNDPROC
handle
)
DECLSPEC_HIDDEN
;
BOOL
is_winproc_unicode
(
WNDPROC
proc
,
BOOL
def_val
)
DECLSPEC_HIDDEN
;
DWORD
get_class_long
(
HWND
hwnd
,
INT
offset
,
BOOL
ansi
)
DECLSPEC_HIDDEN
;
WNDPROC
get_class_winproc
(
struct
tagCLASS
*
class
)
DECLSPEC_HIDDEN
;
...
...
dlls/win32u/sysparams.c
View file @
fa7aaca9
...
...
@@ -5031,9 +5031,6 @@ ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code )
case
NtUserGetDeskPattern
:
return
get_entry
(
&
entry_DESKPATTERN
,
256
,
(
WCHAR
*
)
arg
);
case
NtUserGetWinProcPtr
:
return
(
UINT_PTR
)
get_winproc_ptr
(
UlongToHandle
(
arg
)
);
case
NtUserLock
:
switch
(
arg
)
{
...
...
@@ -5042,9 +5039,6 @@ ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code )
default:
user_check_not_lock
();
return
0
;
}
case
NtUserSpyGetVKeyName
:
return
(
UINT_PTR
)
debugstr_vkey_name
(
arg
);
default:
FIXME
(
"invalid code %u
\n
"
,
code
);
return
0
;
...
...
include/ntuser.h
View file @
fa7aaca9
...
...
@@ -922,9 +922,7 @@ enum
NtUserCallOneParam_SetProcessDefaultLayout
,
/* temporary exports */
NtUserGetDeskPattern
,
NtUserGetWinProcPtr
,
NtUserLock
,
NtUserSpyGetVKeyName
,
};
static
inline
HDWP
NtUserBeginDeferWindowPos
(
INT
count
)
...
...
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