content.gif menu.gif basics.gif

getAllOSUsers()

The function getAllOSUsers() returns all users in the current domain.

Synopsis

int getAllOSUsers(dyn_string &users[, string domain[, bool showAll]]);

 

Parameters

Parameter

Meaning

&users

The Windows users of the current domain.

domain

The domain. This parameter is optional.

showAll

Show all users. Is not used yet.

Return value

int

Error

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

Description

The function returns all users in the current domain.

example.gifExample

The function returns all users in the current domain.

 

 main()
{
dyn_string users;
getAllOSUsers(users);
DebugN(users);
}

Assignment

User administration, Waiting control function

Availability

UI, CTRL

See also

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

 

page_top.gif

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved