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
16828431
Commit
16828431
authored
Oct 18, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FIXMEs for metafile and fullhwnd handle conversions that aren't
supported properly yet.
parent
fdd6db23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
wowthunk.c
dlls/kernel/wowthunk.c
+12
-3
wownt32.h
include/wownt32.h
+3
-5
No files found.
dlls/kernel/wowthunk.c
View file @
16828431
...
...
@@ -208,19 +208,25 @@ HANDLE WINAPI K32WOWHandle32( WORD handle, WOW_HANDLE_TYPE type )
case
WOW_TYPE_HDROP
:
case
WOW_TYPE_HDC
:
case
WOW_TYPE_HFONT
:
case
WOW_TYPE_HMETAFILE
:
case
WOW_TYPE_HRGN
:
case
WOW_TYPE_HBITMAP
:
case
WOW_TYPE_HBRUSH
:
case
WOW_TYPE_HPALETTE
:
case
WOW_TYPE_HPEN
:
case
WOW_TYPE_HACCEL
:
case
WOW_TYPE_FULLHWND
:
return
(
HANDLE
)(
ULONG_PTR
)
handle
;
case
WOW_TYPE_HMETAFILE
:
FIXME
(
"conversion of metafile handles not supported yet
\n
"
);
return
(
HANDLE
)(
ULONG_PTR
)
handle
;
case
WOW_TYPE_HTASK
:
return
(
HANDLE
)
TASK_GetPtr
(
handle
)
->
teb
->
tid
;
case
WOW_TYPE_FULLHWND
:
FIXME
(
"conversion of full window handles not supported yet
\n
"
);
return
(
HANDLE
)(
ULONG_PTR
)
handle
;
default:
ERR
(
"handle 0x%04x of unknown type %d
\n
"
,
handle
,
type
);
return
(
HANDLE
)(
ULONG_PTR
)
handle
;
...
...
@@ -243,7 +249,6 @@ WORD WINAPI K32WOWHandle16( HANDLE handle, WOW_HANDLE_TYPE type )
case
WOW_TYPE_HDROP
:
case
WOW_TYPE_HDC
:
case
WOW_TYPE_HFONT
:
case
WOW_TYPE_HMETAFILE
:
case
WOW_TYPE_HRGN
:
case
WOW_TYPE_HBITMAP
:
case
WOW_TYPE_HBRUSH
:
...
...
@@ -253,6 +258,10 @@ WORD WINAPI K32WOWHandle16( HANDLE handle, WOW_HANDLE_TYPE type )
case
WOW_TYPE_FULLHWND
:
return
LOWORD
(
handle
);
case
WOW_TYPE_HMETAFILE
:
FIXME
(
"conversion of metafile handles not supported yet
\n
"
);
return
LOWORD
(
handle
);
case
WOW_TYPE_HTASK
:
return
THREAD_IdToTEB
((
DWORD
)
handle
)
->
htask16
;
...
...
include/wownt32.h
View file @
16828431
...
...
@@ -75,7 +75,6 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#define HDROP_32(h16) ((HDROP) (ULONG_PTR)(h16))
#define HDC_32(h16) ((HDC) (ULONG_PTR)(h16))
#define HFONT_32(h16) ((HFONT) (ULONG_PTR)(h16))
#define HMETAFILE_32(h16) ((HMETAFILE) (ULONG_PTR)(h16))
#define HRGN_32(h16) ((HRGN) (ULONG_PTR)(h16))
#define HBITMAP_32(h16) ((HBITMAP) (ULONG_PTR)(h16))
#define HBRUSH_32(h16) ((HBRUSH) (ULONG_PTR)(h16))
...
...
@@ -89,7 +88,6 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#define HDROP_16(h32) (LOWORD(h32))
#define HDC_16(h32) (LOWORD(h32))
#define HFONT_16(h32) (LOWORD(h32))
#define HMETAFILE_16(h32) (LOWORD(h32))
#define HRGN_16(h32) (LOWORD(h32))
#define HBITMAP_16(h32) (LOWORD(h32))
#define HBRUSH_16(h32) (LOWORD(h32))
...
...
@@ -105,7 +103,6 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#define HDROP_32(h16) ((HDROP) (WOWHandle32(h16, WOW_TYPE_HDROP)))
#define HDC_32(h16) ((HDC) (WOWHandle32(h16, WOW_TYPE_HDC)))
#define HFONT_32(h16) ((HFONT) (WOWHandle32(h16, WOW_TYPE_HFONT)))
#define HMETAFILE_32(h16) ((HMETAFILE) (WOWHandle32(h16, WOW_TYPE_HMETAFILE)))
#define HRGN_32(h16) ((HRGN) (WOWHandle32(h16, WOW_TYPE_HRGN)))
#define HBITMAP_32(h16) ((HBITMAP) (WOWHandle32(h16, WOW_TYPE_HBITMAP)))
#define HBRUSH_32(h16) ((HBRUSH) (WOWHandle32(h16, WOW_TYPE_HBRUSH)))
...
...
@@ -119,7 +116,6 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#define HDROP_16(h32) (WOWHandle16(h32, WOW_TYPE_HDROP))
#define HDC_16(h32) (WOWHandle16(h32, WOW_TYPE_HDC))
#define HFONT_16(h32) (WOWHandle16(h32, WOW_TYPE_HFONT))
#define HMETAFILE_16(h32) (WOWHandle16(h32, WOW_TYPE_HMETAFILE))
#define HRGN_16(h32) (WOWHandle16(h32, WOW_TYPE_HRGN))
#define HBITMAP_16(h32) (WOWHandle16(h32, WOW_TYPE_HBITMAP))
#define HBRUSH_16(h32) (WOWHandle16(h32, WOW_TYPE_HBRUSH))
...
...
@@ -129,9 +125,11 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#endif
/* __WINE__ */
#define
FULLHWND_32(h16) ((HWND) (WOWHandle32(h16, WOW_TYPE_FULLHWND
)))
#define
HMETAFILE_32(h16) ((HMETAFILE)(WOWHandle32(h16, WOW_TYPE_HMETAFILE
)))
#define HTASK_32(h16) ((DWORD)(WOWHandle32(h16, WOW_TYPE_HTASK)))
#define FULLHWND_32(h16) ((HWND)(WOWHandle32(h16, WOW_TYPE_FULLHWND)))
#define HMETAFILE_16(h32) (WOWHandle16(h32, WOW_TYPE_HMETAFILE))
#define HTASK_16(h32) (WOWHandle16((HANDLE)(h32), WOW_TYPE_HTASK))
#define WCB16_PASCAL 0
...
...
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