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
4189a89d
Commit
4189a89d
authored
Dec 23, 2006
by
Patrik Stridvall
Committed by
Alexandre Julliard
Dec 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Show the GCL{,P}_* constant names in debug messages.
parent
f46da1f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
class.c
dlls/user32/class.c
+2
-1
spy.c
dlls/user32/spy.c
+35
-0
user_private.h
dlls/user32/user_private.h
+1
-0
No files found.
dlls/user32/class.c
View file @
4189a89d
...
...
@@ -673,7 +673,8 @@ static ULONG_PTR CLASS_GetClassLong( HWND hwnd, INT offset, UINT size,
case
GCLP_HICONSM
:
case
GCLP_WNDPROC
:
case
GCLP_MENUNAME
:
FIXME
(
"offset %d not supported on other process window %p
\n
"
,
offset
,
hwnd
);
FIXME
(
"offset %d (%s) not supported on other process window %p
\n
"
,
offset
,
SPY_GetClassLongOffsetName
(
offset
),
hwnd
);
SetLastError
(
ERROR_INVALID_HANDLE
);
break
;
case
GCL_STYLE
:
...
...
dlls/user32/spy.c
View file @
4189a89d
...
...
@@ -44,6 +44,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(message);
#define DEBUG_SPY 0
static
const
char
*
const
ClassLongOffsetNames
[]
=
{
"GCLP_MENUNAME"
,
/* -8 */
"GCLP_HBRBACKGROUND"
,
/* -10 */
"GCLP_HCURSOR"
,
/* -12 */
"GCLP_HICON"
,
/* -14 */
"GCLP_HMODULE"
,
/* -16 */
"GCL_CBWNDEXTRA"
,
/* -18 */
"GCL_CBCLSEXTRA"
,
/* -20 */
"?"
,
"GCLP_WNDPROC"
,
/* -24 */
"GCL_STYLE"
,
/* -26 */
"?"
,
"?"
,
"GCW_ATOM"
,
/* -32 */
"GCLP_HICONSM"
,
/* -34 */
};
static
const
char
*
const
MessageTypeNames
[
SPY_MAX_MSGNUM
+
1
]
=
{
"WM_NULL"
,
/* 0x00 */
...
...
@@ -2026,6 +2044,23 @@ static const USER_MSG *SPY_Bsearch_Msg( const USER_MSG *first, const USER_MSG *l
}
/***********************************************************************
* SPY_GetClassLongOffsetName
*
* Gets the name of a class long offset.
*/
const
char
*
SPY_GetClassLongOffsetName
(
INT
offset
)
{
INT
index
;
if
(
offset
<
0
&&
offset
%
2
==
0
&&
((
index
=
-
(
offset
+
8
)
/
2
)
<
sizeof
(
ClassLongOffsetNames
)
/
sizeof
(
*
ClassLongOffsetNames
)))
{
return
ClassLongOffsetNames
[
index
];
}
return
"?"
;
}
/***********************************************************************
* SPY_GetClassName
*
* Sets the value of "wnd_class" member of the instance structure.
...
...
dlls/user32/user_private.h
View file @
4189a89d
...
...
@@ -239,6 +239,7 @@ extern BOOL USER_SetWindowPos( WINDOWPOS * winpos );
#define SPY_RESULT_DEFWND16 0x0004
#define SPY_RESULT_DEFWND 0x0005
extern
const
char
*
SPY_GetClassLongOffsetName
(
INT
offset
);
extern
const
char
*
SPY_GetMsgName
(
UINT
msg
,
HWND
hWnd
);
extern
const
char
*
SPY_GetVKeyName
(
WPARAM
wParam
);
extern
void
SPY_EnterMessage
(
INT
iFlag
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
...
...
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