1 | /*
|
---|
2 | * Copyright (C) 2007 Francois Gouget
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_USERENV_H
|
---|
29 | #define __WINE_USERENV_H
|
---|
30 |
|
---|
31 | #include <wbemcli.h>
|
---|
32 | #include <profinfo.h>
|
---|
33 |
|
---|
34 | #define PT_TEMPORARY 0x00000001
|
---|
35 | #define PT_ROAMING 0x00000002
|
---|
36 | #define PT_MANDATORY 0x00000004
|
---|
37 |
|
---|
38 | typedef enum _GPO_LINK {
|
---|
39 | GPLinkUnknown = 0,
|
---|
40 | GPLinkMachine,
|
---|
41 | GPLinkSite,
|
---|
42 | GPLinkDomain,
|
---|
43 | GPLinkOrganizationalUnit
|
---|
44 | } GPO_LINK, *PGPO_LINK;
|
---|
45 |
|
---|
46 | typedef struct _GROUP_POLICY_OBJECTA {
|
---|
47 | DWORD dwOptions;
|
---|
48 | DWORD dwVersion;
|
---|
49 | LPSTR lpDSPath;
|
---|
50 | LPSTR lpFileSysPath;
|
---|
51 | LPSTR lpDisplayName;
|
---|
52 | CHAR szGPOName[50];
|
---|
53 | GPO_LINK GPOLink;
|
---|
54 | LPARAM lParam;
|
---|
55 | struct _GROUP_POLICY_OBJECTA *pNext;
|
---|
56 | struct _GROUP_POLICY_OBJECTA *pPrev;
|
---|
57 | LPSTR lpExtensions;
|
---|
58 | LPARAM lParam2;
|
---|
59 | LPSTR lpLink;
|
---|
60 | } GROUP_POLICY_OBJECTA, *PGROUP_POLICY_OBJECTA;
|
---|
61 |
|
---|
62 | typedef struct _GROUP_POLICY_OBJECTW {
|
---|
63 | DWORD dwOptions;
|
---|
64 | DWORD dwVersion;
|
---|
65 | LPWSTR lpDSPath;
|
---|
66 | LPWSTR lpFileSysPath;
|
---|
67 | LPWSTR lpDisplayName;
|
---|
68 | WCHAR szGPOName[50];
|
---|
69 | GPO_LINK GPOLink;
|
---|
70 | LPARAM lParam;
|
---|
71 | struct _GROUP_POLICY_OBJECTW *pNext;
|
---|
72 | struct _GROUP_POLICY_OBJECTW *pPrev;
|
---|
73 | LPWSTR lpExtensions;
|
---|
74 | LPARAM lParam2;
|
---|
75 | LPWSTR lpLink;
|
---|
76 | } GROUP_POLICY_OBJECTW, *PGROUP_POLICY_OBJECTW;
|
---|
77 |
|
---|
78 | DECL_WINELIB_TYPE_AW(GROUP_POLICY_OBJECT)
|
---|
79 | DECL_WINELIB_TYPE_AW(PGROUP_POLICY_OBJECT)
|
---|
80 |
|
---|
81 | #ifdef __cplusplus
|
---|
82 | extern "C" {
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
|
---|
86 | BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
|
---|
87 | HANDLE WINAPI EnterCriticalPolicySection(BOOL);
|
---|
88 | BOOL WINAPI ExpandEnvironmentStringsForUserA(HANDLE,LPCSTR,LPSTR,DWORD);
|
---|
89 | BOOL WINAPI ExpandEnvironmentStringsForUserW(HANDLE,LPCWSTR,LPWSTR,DWORD);
|
---|
90 | #define ExpandEnvironmentStringsForUser WINELIB_NAME_AW(ExpandEnvironmentStringsForUser)
|
---|
91 | DWORD WINAPI GetAppliedGPOListW(DWORD,LPCWSTR,PSID,GUID*,PGROUP_POLICY_OBJECTW*);
|
---|
92 | DWORD WINAPI GetAppliedGPOListA(DWORD,LPCSTR,PSID,GUID*,PGROUP_POLICY_OBJECTA*);
|
---|
93 | #define GetAppliedGPOList WINELIB_NAME_AW(GetAppliedGPOList)
|
---|
94 | BOOL WINAPI GetUserProfileDirectoryA(HANDLE,LPSTR,LPDWORD);
|
---|
95 | BOOL WINAPI GetUserProfileDirectoryW(HANDLE,LPWSTR,LPDWORD);
|
---|
96 | #define GetUserProfileDirectory WINELIB_NAME_AW(GetUserProfileDirectory)
|
---|
97 | BOOL WINAPI GetProfilesDirectoryA(LPSTR,LPDWORD);
|
---|
98 | BOOL WINAPI GetProfilesDirectoryW(LPWSTR,LPDWORD);
|
---|
99 | #define GetProfilesDirectory WINELIB_NAME_AW(GetProfilesDirectory)
|
---|
100 | BOOL WINAPI GetAllUsersProfileDirectoryA(LPSTR,LPDWORD);
|
---|
101 | BOOL WINAPI GetAllUsersProfileDirectoryW(LPWSTR,LPDWORD);
|
---|
102 | #define GetAllUsersProfileDirectory WINELIB_NAME_AW(GetAllUsersProfileDirectory)
|
---|
103 | BOOL WINAPI GetProfileType(DWORD*);
|
---|
104 | BOOL WINAPI LeaveCriticalPolicySection(HANDLE);
|
---|
105 | BOOL WINAPI LoadUserProfileA(HANDLE,LPPROFILEINFOA);
|
---|
106 | BOOL WINAPI LoadUserProfileW(HANDLE,LPPROFILEINFOW);
|
---|
107 | #define LoadUserProfile WINELIB_NAME_AW(LoadUserProfile)
|
---|
108 | BOOL WINAPI RegisterGPNotification(HANDLE,BOOL);
|
---|
109 | BOOL WINAPI UnloadUserProfile(HANDLE,HANDLE);
|
---|
110 | BOOL WINAPI UnregisterGPNotification(HANDLE);
|
---|
111 |
|
---|
112 | #ifdef __cplusplus
|
---|
113 | }
|
---|
114 | #endif
|
---|
115 |
|
---|
116 | #endif /* __WINE_USERENV_H */
|
---|