Platform SDK: Active Directory, ADSI, and Directory Services |
The ADSTYPEENUM enumeration specifies data types to use to interpret an ADSI extended syntax string.
typedef enum { ADSTYPE_INVALID = 0, ADSTYPE_DN_STRING = 1, ADSTYPE_CASE_EXACT_STRING = 2, ADSTYPE_CASE_IGNORE_STRING = 3, ADSTYPE_PRINTABLE_STRING = 4, ADSTYPE_NUMERIC_STRING = 5, ADSTYPE_BOOLEAN = 6, ADSTYPE_INTEGER = 7, ADSTYPE_OCTET_STRING = 8, ADSTYPE_UTC_TIME = 9, ADSTYPE_LARGE_INTEGER = 10, ADSTYPE_PROV_SPECIFIC = 11, ADSTYPE_OBJECT_CLASS = 12, ADSTYPE_CASEIGNORE_LIST = 13, ADSTYPE_OCTET_LIST = 14, ADSTYPE_PATH = 15, ADSTYPE_POSTALADDRESS = 16, ADSTYPE_TIMESTAMP = 17, ADSTYPE_BACKLINK = 18, ADSTYPE_TYPEDNAME = 19, ADSTYPE_HOLD = 20, ADSTYPE_NETADDRESS = 21, ADSTYPE_REPLICAPOINTER = 22, ADSTYPE_FAXNUMBER = 23, ADSTYPE_EMAIL = 24, ADSTYPE_NT_SECURITY_DESCRIPTOR = 25, ADSTYPE_UNKNOWN = 26, ADSTYPE_DN_WITH_BINARY = 27, ADSTYPE_DN_WITH_STRING = 28 } ADSTYPEENUM;
Note Because VBScript cannot read information from a type library, VBScript applications do not understand the symbolic constants as defined above. You should use the numerical constants instead to set the appropriate flags in your VBScript applications. If you want to use the symbolic constants as a good programming practice, you should make explicit declarations of such constants, as done here, in your VBScript applications.
The following C code snippet illustrates certain usage of the member values of the ADSTYPEENUM enumeration.
ADS_SEARCHPREF_INFO prefInfo; BOOL SearchScopeDefined; prefInfo.dwSearchPref = ADS_SEARCHPREF_SEARCH_SCOPE; if (SearchScopeDefined) { prefInfo.vValue.dwType = ADSTYPE_INTEGER; prefInfo.vValue.Integer = ADS_SCOPE_SUBTREE; } else prefInfo.vValue.dwType = ADSTYPE_BOOLEAN; prefInfo.vValue.Boolean = FALSE; }
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
Windows 95/98: Requires Windows 95 or later (with DSClient).
Header: Declared in Iads.h.