mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:34:46 +00:00
51 lines
1.5 KiB
C
51 lines
1.5 KiB
C
|
/*
|
||
|
* Window related functions
|
||
|
*
|
||
|
* Copyright 1993, 1994 Alexandre Julliard
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||
|
*/
|
||
|
|
||
|
|
||
|
#if 0
|
||
|
#pragma makedep unix
|
||
|
#endif
|
||
|
|
||
|
#include "win32u_private.h"
|
||
|
#include "wine/server.h"
|
||
|
|
||
|
|
||
|
/*****************************************************************************
|
||
|
* NtUserGetLayeredWindowAttributes (win32u.@)
|
||
|
*/
|
||
|
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags )
|
||
|
{
|
||
|
BOOL ret;
|
||
|
|
||
|
SERVER_START_REQ( get_window_layered_info )
|
||
|
{
|
||
|
req->handle = wine_server_user_handle( hwnd );
|
||
|
if ((ret = !wine_server_call_err( req )))
|
||
|
{
|
||
|
if (key) *key = reply->color_key;
|
||
|
if (alpha) *alpha = reply->alpha;
|
||
|
if (flags) *flags = reply->flags;
|
||
|
}
|
||
|
}
|
||
|
SERVER_END_REQ;
|
||
|
|
||
|
return ret;
|
||
|
}
|