KSC Open API  13.1
Kaspersky Security Center API description
HostGroup::AddDomain ( wstring  strDomain,
int  nType 
)

Adds a new domain to the database.

Parameters:
strDomain(wstring) domain name.
nType(int) domain type:
  • 0 - Windows NT domain.
  • 1 - Windows work group.
Exceptions:
STDE_EXISTdomain with the specified name already exists.