ADS_FORMAT_ENUM enumeration

The ADS_FORMAT_ENUM enumeration specifies the available path value types used by the IADsPathname::Retrieve method.

Syntax


typedef enum ADS_FORMAT_ENUM { 
  ADS_FORMAT_WINDOWS            = 1,
  ADS_FORMAT_WINDOWS_NO_SERVER  = 2,
  ADS_FORMAT_WINDOWS_DN         = 3,
  ADS_FORMAT_WINDOWS_PARENT     = 4,
  ADS_FORMAT_X500               = 5,
  ADS_FORMAT_X500_NO_SERVER     = 6,
  ADS_FORMAT_X500_DN            = 7,
  ADS_FORMAT_X500_PARENT        = 8,
  ADS_FORMAT_SERVER             = 9,
  ADS_FORMAT_PROVIDER           = 10,
  ADS_FORMAT_LEAF               = 11
} ADS_FORMAT_ENUM;

Constants

ADS_FORMAT_WINDOWS

Returns the full path in Windows format, for example, "LDAP://servername/o=internet/…/cn=bar".

ADS_FORMAT_WINDOWS_NO_SERVER

Returns Windows format without server, for example, "LDAP://o=internet/…/cn=bar".

ADS_FORMAT_WINDOWS_DN

Returns Windows format of the distinguished name only, for example, "o=internet/…/cn=bar".

ADS_FORMAT_WINDOWS_PARENT

Returns Windows format of Parent only, for example, "o=internet/…".

ADS_FORMAT_X500

Returns the full path in X.500 format, for example, "LDAP://servername/cn=bar,…,o=internet".

ADS_FORMAT_X500_NO_SERVER

Returns the path without server in X.500 format, for example, "LDAP://cn=bar,…,o=internet".

ADS_FORMAT_X500_DN

Returns only the distinguished name in X.500 format. For example, "cn=bar,…,o=internet".

ADS_FORMAT_X500_PARENT

Returns only the parent in X.500 format, for example, "…,o=internet".

ADS_FORMAT_SERVER

Returns the server name, for example, "servername".

ADS_FORMAT_PROVIDER

Returns the name of the provider, for example, "LDAP".

ADS_FORMAT_LEAF

Returns the name of the leaf, for example, "cn=bar".

Remarks

The WinNT, NDS, and NWCOMPAT providers do not support any of the X.500 format specifiers.

Because Visual Basic Scripting Edition cannot read data from a type library, VBScript applications cannot recognize the symbolic constants as defined above. You should use the numeric constants instead to set the appropriate flags in your VBScript applications. To use the symbolic constants as a good programming practice, write explicit declarations of such constants, as done here.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Iads.h

See also

IADsPathname::Retrieve
ADSI Enumerations

 

 

Show:
© 2014 Microsoft