getAllOSGroups() - obsolete

The function getAllOSGroups() returns all groups in the current domain. Obsolete, replaced by getOSGroups().

Synopsis

int getAllOSGroups(dyn_string &groups, [string domain]);

Synopsis

Parameter Meaning
&groups The groups of the current domain are returned with this parameter.
domain The domain. This parameter is optional.

Return Value

int

Error

The function returns -1 in case of errors and otherwise 0.

Description

The function getAllOSGroups() returns all groups in the current domain.

Example

The function returns all groups in the current domain.

main()
{
  dyn_string groups;
  int retVal;
  retVal=getAllOSGroups(groups);
  DebugN(groups);
}

Assignment

User administration, waiting control function

Availability

CTRL

See also

getAllOSUsers(), getCurrentOSUser(), getCurrentDomainName(), getWindowsEvents() and verifyOSUser()