Directory Services

DS_NAME_RESULT_ITEM

The DS_NAME_RESULT_ITEM structure contains a name converted by the DsCrackNames function, along with associated error and domain data.

typedef struct {
DWORD status;
LPTSTR pDomain;
LPTSTR pName; } DS_NAME_RESULT_ITEM,
*PDS_NAME_RESULT_ITEM;

Members

status
Contains one of the DS_NAME_ERROR values that indicates the status of this name conversion.
pDomain
Pointer to a null-terminated string that specifies the DNS domain in which the object resides. This member will contain valid data if status contains DS_NAME_NO_ERROR or DS_NAME_ERROR_DOMAIN_ONLY.
pName
Pointer to a null-terminated string that specifies the newly formatted object name.

Remarks

The DsCrackNames function returns an array of DS_NAME_RESULT_ITEM structures as part of the DS_NAME_RESULT structure.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Unicode: Declared as Unicode and ANSI structures.
Header: Declared in Ntdsapi.h.

See Also

DsCrackNames, DS_NAME_RESULT, Domain Controller and Replication Management Structures