KSC Open API
Kaspersky Security Center API description
array HostGroup::GetDomainHosts ( wstring  domain)

Returns a list of the workstation names in the domain.

The information is obtained from the domain controller.

The function returns the full list of workstations in the domain, even if the workstation is turned off now.

Attention:
This method is deprecated. Use either HostGroup.FindHostsAsync or HostGroup.FindHosts instead.
Parameters:
domain(wstring) domain name.
Returns:
(array) array of the hosts in the domain. Every array item is a container with the following attributes:
  • KLHST_WKS_HOSTNAME (paramString) - Host name (GUID-like ID).
  • KLHST_WKS_WINHOSTNAME (paramString) - Host Windows (NetBIOS) name.
  • KLHST_WKS_STATUS (paramInt) - Host state:
    • 0x00000001 - The computer is online ('visible').
    • 0x00000002 - The computer is added to the administration group.
    • 0x00000004 - The computer has Network Agent installed.
    • 0x00000008 - Network Agent is working.
    • 0x00000010 - The computer has the real-time protection (RTOP).
    • 0x00000020 - The computer has been temporarily switched to the server as a result of switching an NLA profile.
    • 0x00000040 - The computer is part of the cluster or cluster array.
    • 0x00000080 - Appliance.