Author: jgardou
Date: Thu Oct 16 20:14:25 2014
New Revision: 64766
URL:
http://svn.reactos.org/svn/reactos?rev=64766&view=rev
Log:
[PSDK]
- Add GetAppliedGPOList[A,W] declarations
CORE-8636
Modified:
trunk/reactos/include/psdk/userenv.h
Modified: trunk/reactos/include/psdk/userenv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/userenv.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/userenv.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/userenv.h [iso-8859-1] Thu Oct 16 20:14:25 2014
@@ -42,6 +42,48 @@
LPWSTR lpPolicyPath;
HANDLE hProfile;
} PROFILEINFOW, *LPPROFILEINFOW;
+
+#if (WINVER >= 0x0502)
+typedef enum _GPO_LINK {
+ GPLinkUnknown = 0,
+ GPLinkMachine,
+ GPLinkSite,
+ GPLinkDomain,
+ GPLinkOrganizationalUnit
+} GPO_LINK, *PGPO_LINK;
+
+typedef struct _GROUP_POLICY_OBJECTA {
+ DWORD dwOptions;
+ DWORD dwVersion;
+ LPSTR lpDSPath;
+ LPSTR lpFileSysPath;
+ LPSTR lpDisplayName;
+ CHAR szGPOName[50];
+ GPO_LINK GPOLink;
+ LPARAM lParam;
+ struct _GROUP_POLICY_OBJECTA *pNext;
+ struct _GROUP_POLICY_OBJECTA *pPrev;
+ LPSTR lpExtensions;
+ LPARAM lParam2;
+ LPSTR lpLink;
+} GROUP_POLICY_OBJECTA, *PGROUP_POLICY_OBJECTA;
+
+typedef struct _GROUP_POLICY_OBJECTW {
+ DWORD dwOptions;
+ DWORD dwVersion;
+ LPWSTR lpDSPath;
+ LPWSTR lpFileSysPath;
+ LPWSTR lpDisplayName;
+ WCHAR szGPOName[50];
+ GPO_LINK GPOLink;
+ LPARAM lParam;
+ struct _GROUP_POLICY_OBJECTW *pNext;
+ struct _GROUP_POLICY_OBJECTW *pPrev;
+ LPWSTR lpExtensions;
+ LPARAM lParam2;
+ LPWSTR lpLink;
+} GROUP_POLICY_OBJECTW, *PGROUP_POLICY_OBJECTW;
+#endif
/* begin private */
BOOL WINAPI InitializeProfiles (VOID);
@@ -85,6 +127,27 @@
BOOL WINAPI ExpandEnvironmentStringsForUserW (HANDLE, LPCWSTR, LPWSTR, DWORD);
#endif
+#if (WINVER >= 0x0502)
+DWORD
+WINAPI
+GetAppliedGPOListA(
+ _In_ DWORD dwFlags,
+ _In_ LPCSTR pMachineName,
+ _In_ PSID pSidUser,
+ _In_ GUID *pGuidExtension,
+ _Out_ PGROUP_POLICY_OBJECTA *ppGPOList
+);
+DWORD
+WINAPI
+GetAppliedGPOListW(
+ _In_ DWORD dwFlags,
+ _In_ LPCWSTR pMachineName,
+ _In_ PSID pSidUser,
+ _In_ GUID *pGuidExtension,
+ _Out_ PGROUP_POLICY_OBJECTW *ppGPOList
+);
+#endif
+
HANDLE WINAPI EnterCriticalPolicySection (BOOL);
BOOL WINAPI LeaveCriticalPolicySection (HANDLE);
BOOL WINAPI RefreshPolicy (BOOL);
@@ -115,6 +178,11 @@
#if (WINVER >= 0x0500)
#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserW
#endif
+#if (WINVER >= 0x0502)
+typedef GROUP_POLICY_OBJECTW GROUP_POLICY_OBJECT;
+typedef PGROUP_POLICY_OBJECTW PGROUP_POLICY_OBJECT;
+#define GetAppliedGPOList GetAppliedGPOListW
+#endif
#else
typedef PROFILEINFOA PROFILEINFO;
typedef LPPROFILEINFOA LPPROFILEINFO;
@@ -136,6 +204,11 @@
#if (WINVER >= 0x0500)
#define ExpandEnvironmentStringsForUser ExpandEnvironmentStringsForUserA
#endif
+#if (WINVER >= 0x0502)
+typedef GROUP_POLICY_OBJECTA GROUP_POLICY_OBJECT;
+typedef PGROUP_POLICY_OBJECTA PGROUP_POLICY_OBJECT;
+#define GetAppliedGPOList GetAppliedGPOListA
+#endif
#endif
#ifdef __cplusplus