GetGPOList (userenv)
Last changed: -131.107.0.103

.
Summary
The GetGPOList function retrieves the list of GROUP_POLICY_OBJECT objects for the specified user or computer. This function can be called in two ways: by using the token for the user or computer, or by using the name of the user or computer and the name of the domain controller.

C# Signature:

    [DllImport("userenv.dll", SetLastError=true)]
    extern static bool GetGPOList(
        IntPtr hToken,
        string lpName,
        string lpHostName,
        string lpComputerName,
        Int32 dwFlags,
        out IntPtr pGPOList);

VB Signature:

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

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation