Added FIXMEs for metafile and fullhwnd handle conversions that aren't

supported properly yet.
This commit is contained in:
Alexandre Julliard 2002-10-18 23:35:24 +00:00
parent fdd6db2384
commit 168284318b
2 changed files with 15 additions and 8 deletions

View File

@ -208,19 +208,25 @@ HANDLE WINAPI K32WOWHandle32( WORD handle, WOW_HANDLE_TYPE type )
case WOW_TYPE_HDROP: case WOW_TYPE_HDROP:
case WOW_TYPE_HDC: case WOW_TYPE_HDC:
case WOW_TYPE_HFONT: case WOW_TYPE_HFONT:
case WOW_TYPE_HMETAFILE:
case WOW_TYPE_HRGN: case WOW_TYPE_HRGN:
case WOW_TYPE_HBITMAP: case WOW_TYPE_HBITMAP:
case WOW_TYPE_HBRUSH: case WOW_TYPE_HBRUSH:
case WOW_TYPE_HPALETTE: case WOW_TYPE_HPALETTE:
case WOW_TYPE_HPEN: case WOW_TYPE_HPEN:
case WOW_TYPE_HACCEL: 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; return (HANDLE)(ULONG_PTR)handle;
case WOW_TYPE_HTASK: case WOW_TYPE_HTASK:
return (HANDLE)TASK_GetPtr(handle)->teb->tid; 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: default:
ERR( "handle 0x%04x of unknown type %d\n", handle, type ); ERR( "handle 0x%04x of unknown type %d\n", handle, type );
return (HANDLE)(ULONG_PTR)handle; 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_HDROP:
case WOW_TYPE_HDC: case WOW_TYPE_HDC:
case WOW_TYPE_HFONT: case WOW_TYPE_HFONT:
case WOW_TYPE_HMETAFILE:
case WOW_TYPE_HRGN: case WOW_TYPE_HRGN:
case WOW_TYPE_HBITMAP: case WOW_TYPE_HBITMAP:
case WOW_TYPE_HBRUSH: case WOW_TYPE_HBRUSH:
@ -253,6 +258,10 @@ WORD WINAPI K32WOWHandle16( HANDLE handle, WOW_HANDLE_TYPE type )
case WOW_TYPE_FULLHWND: case WOW_TYPE_FULLHWND:
return LOWORD(handle); return LOWORD(handle);
case WOW_TYPE_HMETAFILE:
FIXME( "conversion of metafile handles not supported yet\n" );
return LOWORD(handle);
case WOW_TYPE_HTASK: case WOW_TYPE_HTASK:
return THREAD_IdToTEB((DWORD)handle)->htask16; return THREAD_IdToTEB((DWORD)handle)->htask16;

View File

@ -75,7 +75,6 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#define HDROP_32(h16) ((HDROP) (ULONG_PTR)(h16)) #define HDROP_32(h16) ((HDROP) (ULONG_PTR)(h16))
#define HDC_32(h16) ((HDC) (ULONG_PTR)(h16)) #define HDC_32(h16) ((HDC) (ULONG_PTR)(h16))
#define HFONT_32(h16) ((HFONT) (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 HRGN_32(h16) ((HRGN) (ULONG_PTR)(h16))
#define HBITMAP_32(h16) ((HBITMAP) (ULONG_PTR)(h16)) #define HBITMAP_32(h16) ((HBITMAP) (ULONG_PTR)(h16))
#define HBRUSH_32(h16) ((HBRUSH) (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 HDROP_16(h32) (LOWORD(h32))
#define HDC_16(h32) (LOWORD(h32)) #define HDC_16(h32) (LOWORD(h32))
#define HFONT_16(h32) (LOWORD(h32)) #define HFONT_16(h32) (LOWORD(h32))
#define HMETAFILE_16(h32) (LOWORD(h32))
#define HRGN_16(h32) (LOWORD(h32)) #define HRGN_16(h32) (LOWORD(h32))
#define HBITMAP_16(h32) (LOWORD(h32)) #define HBITMAP_16(h32) (LOWORD(h32))
#define HBRUSH_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 HDROP_32(h16) ((HDROP) (WOWHandle32(h16, WOW_TYPE_HDROP)))
#define HDC_32(h16) ((HDC) (WOWHandle32(h16, WOW_TYPE_HDC))) #define HDC_32(h16) ((HDC) (WOWHandle32(h16, WOW_TYPE_HDC)))
#define HFONT_32(h16) ((HFONT) (WOWHandle32(h16, WOW_TYPE_HFONT))) #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 HRGN_32(h16) ((HRGN) (WOWHandle32(h16, WOW_TYPE_HRGN)))
#define HBITMAP_32(h16) ((HBITMAP) (WOWHandle32(h16, WOW_TYPE_HBITMAP))) #define HBITMAP_32(h16) ((HBITMAP) (WOWHandle32(h16, WOW_TYPE_HBITMAP)))
#define HBRUSH_32(h16) ((HBRUSH) (WOWHandle32(h16, WOW_TYPE_HBRUSH))) #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 HDROP_16(h32) (WOWHandle16(h32, WOW_TYPE_HDROP))
#define HDC_16(h32) (WOWHandle16(h32, WOW_TYPE_HDC)) #define HDC_16(h32) (WOWHandle16(h32, WOW_TYPE_HDC))
#define HFONT_16(h32) (WOWHandle16(h32, WOW_TYPE_HFONT)) #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 HRGN_16(h32) (WOWHandle16(h32, WOW_TYPE_HRGN))
#define HBITMAP_16(h32) (WOWHandle16(h32, WOW_TYPE_HBITMAP)) #define HBITMAP_16(h32) (WOWHandle16(h32, WOW_TYPE_HBITMAP))
#define HBRUSH_16(h32) (WOWHandle16(h32, WOW_TYPE_HBRUSH)) #define HBRUSH_16(h32) (WOWHandle16(h32, WOW_TYPE_HBRUSH))
@ -129,9 +125,11 @@ WORD WINAPI K32WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
#endif /* __WINE__ */ #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 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 HTASK_16(h32) (WOWHandle16((HANDLE)(h32), WOW_TYPE_HTASK))
#define WCB16_PASCAL 0 #define WCB16_PASCAL 0