Implemented IsWindow()

svn path=/trunk/; revision=4679
This commit is contained in:
Gé van Geldorp 2003-05-12 18:52:14 +00:00
parent 484cf7d5bf
commit 017f478b25
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.27 2003/05/04 15:41:40 gvg Exp $ /* $Id: window.c,v 1.28 2003/05/12 18:52:14 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
@ -332,7 +332,8 @@ CreateWindowExA(DWORD dwExStyle,
UNICODE_STRING ClassName; UNICODE_STRING ClassName;
HWND Handle; HWND Handle;
INT sw; INT sw;
OutputDebugStringA("CreateWindowEx\n");
if (IS_ATOM(lpClassName)) if (IS_ATOM(lpClassName))
{ {
RtlInitUnicodeString(&ClassName, NULL); RtlInitUnicodeString(&ClassName, NULL);
@ -807,7 +808,9 @@ IsIconic(HWND hWnd)
WINBOOL STDCALL WINBOOL STDCALL
IsWindow(HWND hWnd) IsWindow(HWND hWnd)
{ {
return FALSE; DWORD WndProc = NtUserGetWindowLong(hWnd, GWL_WNDPROC);
return (0 != WndProc || ERROR_INVALID_HANDLE != GetLastError());
} }
WINBOOL STDCALL WINBOOL STDCALL

View file

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.41 2003/05/02 07:52:33 gvg Exp $ /* $Id: window.c,v 1.42 2003/05/12 18:52:14 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -1122,6 +1122,7 @@ NtUserGetWindowLong(HWND hWnd, DWORD Index)
(PVOID*)&WindowObject); (PVOID*)&WindowObject);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
SetLastWin32Error(ERROR_INVALID_HANDLE);
return(0); return(0);
} }