Directory Services

DS_SITE_COST_INFO

The DS_SITE_COST_INFO structure is used with the DsQuerySitesByCost function to contain communication cost data.

typedef struct {
DWORD errorCode;
DWORD cost; } DS_SITE_COST_INFO;

Members

errorCode
Contains a success or error code that indicates if the cost data for the site could be obtained. This member can contain one of the following values.
Value Meaning
ERROR_SUCCESS The communication cost of the site was obtained and is contained in the cost member of this structure.
ERROR_DS_OBJ_NOT_FOUND The communication cost of the site cannot be obtained. The cost member of this structure should be ignored.
cost
If the errorCode member contains ERROR_SUCCESS, this member contains the communication cost value of the site. If the errorCode member contains ERROR_DS_OBJ_NOT_FOUND, this contents of this member is undefined.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Ntdsapi.h.

See Also

DsQuerySitesByCost, DC and Replication Management Functions