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
13fbce56
Commit
13fbce56
authored
Nov 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Forward SystemParametersInfo calls to the user driver first.
parent
4a8716cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
124 deletions
+66
-124
driver.c
dlls/user32/driver.c
+17
-29
sysparams.c
dlls/user32/sysparams.c
+47
-92
user_private.h
dlls/user32/user_private.h
+2
-3
No files found.
dlls/user32/driver.c
View file @
13fbce56
...
...
@@ -73,8 +73,6 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC
(
GetCursorPos
);
GET_USER_FUNC
(
SetCursorPos
);
GET_USER_FUNC
(
ClipCursor
);
GET_USER_FUNC
(
GetScreenSaveActive
);
GET_USER_FUNC
(
SetScreenSaveActive
);
GET_USER_FUNC
(
AcquireClipboard
);
GET_USER_FUNC
(
EmptyClipboard
);
GET_USER_FUNC
(
SetClipboardData
);
...
...
@@ -108,6 +106,7 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC
(
WindowMessage
);
GET_USER_FUNC
(
WindowPosChanging
);
GET_USER_FUNC
(
WindowPosChanged
);
GET_USER_FUNC
(
SystemParametersInfo
);
#undef GET_USER_FUNC
}
else
driver_load_error
=
GetLastError
();
...
...
@@ -233,15 +232,6 @@ static BOOL CDECL nulldrv_ClipCursor( LPCRECT clip )
return
FALSE
;
}
static
BOOL
CDECL
nulldrv_GetScreenSaveActive
(
void
)
{
return
FALSE
;
}
static
void
CDECL
nulldrv_SetScreenSaveActive
(
BOOL
on
)
{
}
static
INT
CDECL
nulldrv_AcquireClipboard
(
HWND
hwnd
)
{
return
0
;
...
...
@@ -423,6 +413,11 @@ static void CDECL nulldrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT s
{
}
static
BOOL
CDECL
nulldrv_SystemParametersInfo
(
UINT
action
,
UINT
int_param
,
void
*
ptr_param
,
UINT
flags
)
{
return
FALSE
;
}
static
USER_DRIVER
null_driver
=
{
/* keyboard functions */
...
...
@@ -446,9 +441,6 @@ static USER_DRIVER null_driver =
nulldrv_GetCursorPos
,
nulldrv_SetCursorPos
,
nulldrv_ClipCursor
,
/* screen saver functions */
nulldrv_GetScreenSaveActive
,
nulldrv_SetScreenSaveActive
,
/* clipboard functions */
nulldrv_AcquireClipboard
,
nulldrv_CountClipboardFormats
,
...
...
@@ -484,7 +476,9 @@ static USER_DRIVER null_driver =
nulldrv_UpdateLayeredWindow
,
nulldrv_WindowMessage
,
nulldrv_WindowPosChanging
,
nulldrv_WindowPosChanged
nulldrv_WindowPosChanged
,
/* system parameters */
nulldrv_SystemParametersInfo
};
...
...
@@ -591,16 +585,6 @@ static BOOL CDECL loaderdrv_ClipCursor( LPCRECT clip )
return
load_driver
()
->
pClipCursor
(
clip
);
}
static
BOOL
CDECL
loaderdrv_GetScreenSaveActive
(
void
)
{
return
load_driver
()
->
pGetScreenSaveActive
();
}
static
void
CDECL
loaderdrv_SetScreenSaveActive
(
BOOL
on
)
{
load_driver
()
->
pSetScreenSaveActive
(
on
);
}
static
INT
CDECL
loaderdrv_AcquireClipboard
(
HWND
hwnd
)
{
return
load_driver
()
->
pAcquireClipboard
(
hwnd
);
...
...
@@ -778,6 +762,11 @@ static void CDECL loaderdrv_WindowPosChanged( HWND hwnd, HWND insert_after, UINT
client_rect
,
visible_rect
,
valid_rects
,
surface
);
}
static
BOOL
CDECL
loaderdrv_SystemParametersInfo
(
UINT
action
,
UINT
int_param
,
void
*
ptr_param
,
UINT
flags
)
{
return
FALSE
;
/* don't trigger a driver load */
}
static
USER_DRIVER
lazy_load_driver
=
{
/* keyboard functions */
...
...
@@ -801,9 +790,6 @@ static USER_DRIVER lazy_load_driver =
loaderdrv_GetCursorPos
,
loaderdrv_SetCursorPos
,
loaderdrv_ClipCursor
,
/* screen saver functions */
loaderdrv_GetScreenSaveActive
,
loaderdrv_SetScreenSaveActive
,
/* clipboard functions */
loaderdrv_AcquireClipboard
,
loaderdrv_CountClipboardFormats
,
...
...
@@ -839,5 +825,7 @@ static USER_DRIVER lazy_load_driver =
loaderdrv_UpdateLayeredWindow
,
loaderdrv_WindowMessage
,
loaderdrv_WindowPosChanging
,
loaderdrv_WindowPosChanged
loaderdrv_WindowPosChanged
,
/* system parameters */
loaderdrv_SystemParametersInfo
};
dlls/user32/sysparams.c
View file @
13fbce56
This diff is collapsed.
Click to expand it.
dlls/user32/user_private.h
View file @
13fbce56
...
...
@@ -79,9 +79,6 @@ typedef struct tagUSER_DRIVER {
BOOL
(
CDECL
*
pGetCursorPos
)(
LPPOINT
);
BOOL
(
CDECL
*
pSetCursorPos
)(
INT
,
INT
);
BOOL
(
CDECL
*
pClipCursor
)(
LPCRECT
);
/* screen saver functions */
BOOL
(
CDECL
*
pGetScreenSaveActive
)(
void
);
void
(
CDECL
*
pSetScreenSaveActive
)(
BOOL
);
/* clipboard functions */
INT
(
CDECL
*
pAcquireClipboard
)(
HWND
);
/* Acquire selection */
BOOL
(
CDECL
*
pCountClipboardFormats
)(
void
);
/* Count available clipboard formats */
...
...
@@ -118,6 +115,8 @@ typedef struct tagUSER_DRIVER {
LRESULT
(
CDECL
*
pWindowMessage
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
void
(
CDECL
*
pWindowPosChanging
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
RECT
*
,
struct
window_surface
**
);
void
(
CDECL
*
pWindowPosChanged
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
,
struct
window_surface
*
);
/* system parameters */
BOOL
(
CDECL
*
pSystemParametersInfo
)(
UINT
,
UINT
,
void
*
,
UINT
);
}
USER_DRIVER
;
extern
const
USER_DRIVER
*
USER_Driver
DECLSPEC_HIDDEN
;
...
...
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