GetAppliedGPOList (userenv)
Last changed: -131.107.0.103

.
Summary
The GetAppliedGPOList function retrieves the list of GPOs applied for the specified user or computer and the specified extension.

C# Signature:

[DllImport("userenv.dll", SetLastError=true)]
extern static int GetAppliedGPOList(
        int dwFlags,
        string pMachineName,
        IntPtr pSidUser,
        IntPtr pGuidExtension,
        ref IntPtr ppGPOList);

VB Signature:

Declare Function GetAppliedGPOList Lib "userenv.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Win32 API:

DWORD GetAppliedGPOList(

  __in      DWORD dwFlags,
  __in      LPCTSTR pMachineName,
  __in      PSID pSidUser,
  __in      GUID* pGuidExtension,
  __out     PGROUP_POLICY_OBJECT* ppGPOList

);

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation