The NetGroupEnum function retrieves information about each global group account.Only members of the Administrators or Account Operators local group can successfully execute NetGroupEnum.NET_API_STATUS NetGroupEnum(
LPWSTR servername,
DWORD level,
LPBYTE *bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resume_handle
);
The NetGroupGetUsers function retrieves a list of the members of a particular global group in the security database.NET_API_STATUS NetGroupGetUsers(
LPWSTR servername,
LPWSTR groupname,
DWORD level,
LPBYTE *bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resumeHandle
);
LPWSTR servername,
DWORD level,
LPBYTE *bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resume_handle
);
The NetGroupGetUsers function retrieves a list of the members of a particular global group in the security database.NET_API_STATUS NetGroupGetUsers(
LPWSTR servername,
LPWSTR groupname,
DWORD level,
LPBYTE *bufptr,
DWORD prefmaxlen,
LPDWORD entriesread,
LPDWORD totalentries,
LPDWORD resumeHandle
);
引用Microsoft Active DS Type Library(activeds.tlb)
详细请见:
1、http://support.microsoft.com/default.aspx?scid=kb;en-us;Q1907412、http://support.microsoft.com/default.aspx?scid=kb;en-us;Q194115