Здравствуйте, Voka, Вы писали:
V> res = NetGroupAddUser(NULL, groupName, userName);
может всё дело в этом:
Pointer to a constant string that specifies the name of the
global group in which the user is to be given membership
и надо юзать:
NetLocalGroupAdd