DS_NAME_RESULT_ITEM structure

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

Syntax


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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ntdsapi.h

Unicode and ANSI names

DS_NAME_RESULT_ITEMW (Unicode) and DS_NAME_RESULT_ITEMA (ANSI)

See also

DsCrackNames
DS_NAME_RESULT
Domain Controller and Replication Management Structures

 

 

Show: