From fe82a252524aa7cc7f44aed3d3b8dfe9506974f0 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 7 Jul 2008 05:54:36 +0000 Subject: [PATCH] Update SetLayeredWindowAttributes. svn path=/trunk/; revision=34350 --- reactos/dll/win32/user32/user32.def | 2 +- reactos/dll/win32/user32/windows/window.c | 14 -------------- reactos/include/reactos/win32k/ntuser.h | 10 +++++----- reactos/subsystems/win32/win32k/ntuser/window.c | 15 +++++++-------- 4 files changed, 13 insertions(+), 28 deletions(-) diff --git a/reactos/dll/win32/user32/user32.def b/reactos/dll/win32/user32/user32.def index 81aebd6d1a7..51fc30c1d53 100644 --- a/reactos/dll/win32/user32/user32.def +++ b/reactos/dll/win32/user32/user32.def @@ -610,7 +610,7 @@ SetForegroundWindow@4 SetInternalWindowPos@16 SetKeyboardState@4 SetLastErrorEx@8 -SetLayeredWindowAttributes@16 +SetLayeredWindowAttributes@16=NtUserSetLayeredWindowAttributes@16 SetLogonNotifyWindow@8 SetMenu@8 SetMenuContextHelpId@8 diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 604eb6a3163..d6a265d0eb9 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -1547,20 +1547,6 @@ SetForegroundWindow(HWND hWnd) } -/* - * @unimplemented - */ -BOOL STDCALL -SetLayeredWindowAttributes(HWND hwnd, - COLORREF crKey, - BYTE bAlpha, - DWORD dwFlags) -{ - UNIMPLEMENTED; - return FALSE; -} - - /* * @implemented */ diff --git a/reactos/include/reactos/win32k/ntuser.h b/reactos/include/reactos/win32k/ntuser.h index 85d30af16d6..e7a013e98b5 100644 --- a/reactos/include/reactos/win32k/ntuser.h +++ b/reactos/include/reactos/win32k/ntuser.h @@ -2186,13 +2186,13 @@ NTAPI NtUserSetKeyboardState( LPBYTE Unknown0); -DWORD +BOOL NTAPI NtUserSetLayeredWindowAttributes( - DWORD Unknown0, - DWORD Unknown1, - DWORD Unknown2, - DWORD Unknown3); + HWND hwnd, + COLORREF crKey, + BYTE bAlpha, + DWORD dwFlags); DWORD NTAPI diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index bf0119efb3a..c71b3996900 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -4100,15 +4100,14 @@ NtUserSetInternalWindowPos(DWORD Unknown0, /* * @unimplemented */ -DWORD STDCALL -NtUserSetLayeredWindowAttributes(DWORD Unknown0, - DWORD Unknown1, - DWORD Unknown2, - DWORD Unknown3) +BOOL STDCALL +NtUserSetLayeredWindowAttributes(HWND hwnd, + COLORREF crKey, + BYTE bAlpha, + DWORD dwFlags) { - UNIMPLEMENTED - - return 0; + UNIMPLEMENTED; + return FALSE; }