NET_API_STATUS ret = 0 ; LPCWSTR servername = L"MYSERVER"; LPCWSTR groupname = L"Administrators"; LPBYTE buffer = NULL; DWORD entriesRead; DWORD totalEntries; DWORD resumeHandle = 0; #define INFO_BUFFER_SIZE 32767 ret=NetGroupGetUsers (NULL, groupname, 0, &buffer, INFO_BUFFER_SIZE, &entriesRead, &totalEntries, &resumeHandle);
Netapi32.lib
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)