Getdomainlist, Getdomainlist 18 – Kofax DM API User Manual

Page 205

Advertising
background image

DM API M

ETHODS

AND

P

ROPERTIES

185

GetDomainList

GetDomainList

This method allows you to retrieve a list of all other network domains
that are accessible from the network identified as the root domain.

Syntax

PCDNetworkInfo.GetDomainList( strNetworkOS, _

strRootDomain )

Parameters

Returns

Returns an

HRESULT

to receive the result of the call.

S_OK

indicates

success. Languages such as JavaScript, Visual Basic, and VBScript
return this as a function value.

Example

See the

Example

in the discussion of the

PCDNetworkInfo

object for

sample code that illustrates how you can use the GetDomainList
method in your custom applications.

Related Items

See the

PCDNetworkInfo

object.

See the following properties:

strNetworkOS

A string variable that identifies the network
operating system that is currently running.
Valid values are:

%NI_ADS

(Active Directory Services)

%NI_NDS (a Novell network)

%NI_NT (a Microsoft network)

strRootDomain

A string variable that identifies the root domain.
Use the value “

%UNDEFINED” to identify all

domains accessible from the current user’s
base domain.

Advertising