win32u: Move NtUserOpenDesktop implementation from user32.
[wine.git] / include / ntuser.h
blobdaac994c84d4adc7fb069662d11ab1ad9eed3760
1 /*
2 * Copyright 2021 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _NTUSER_
20 #define _NTUSER_
22 #include <winuser.h>
23 #include <wingdi.h>
24 #include <winternl.h>
26 BOOL WINAPI NtUserCloseDesktop( HDESK handle );
27 BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle );
28 HDESK WINAPI NtUserCreateDesktopEx( OBJECT_ATTRIBUTES *attr, UNICODE_STRING *device,
29 DEVMODEW *devmode, DWORD flags, ACCESS_MASK access,
30 ULONG heap_size );
31 HWINSTA WINAPI NtUserCreateWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK mask, ULONG arg3,
32 ULONG arg4, ULONG arg5, ULONG arg6, ULONG arg7 );
33 BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
34 DWORD len, DWORD *needed );
35 HWINSTA WINAPI NtUserGetProcessWindowStation(void);
36 HDESK WINAPI NtUserGetThreadDesktop( DWORD thread );
37 HWINSTA WINAPI NtUserOpenWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK access );
38 BOOL WINAPI NtUserSetObjectInformation( HANDLE handle, INT index, void *info, DWORD len );
39 HDESK WINAPI NtUserOpenDesktop( OBJECT_ATTRIBUTES *attr, DWORD flags, ACCESS_MASK access );
40 HDESK WINAPI NtUserOpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access );
41 BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle );
42 BOOL WINAPI NtUserSetThreadDesktop( HDESK handle );
44 #endif /* _NTUSER_ */