2 * ntdsapi.h - Active Directory
4 * THIS SOFTWARE IS NOT COPYRIGHTED
6 * This source code is offered for use in the public domain. You may use,
7 * modify or distribute it freely.
9 * This code is distributed in the hope that it will be useful but
10 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
11 * DISCLAIMED. This includes but is not limited to warranties of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 #pragma GCC system_header
25 /*--- Active Directory Reference - Active Directory Enumerations */
26 #if (_WIN32_WINNT >= 0x0501)
27 typedef enum _DS_MANGLE_FOR
{
28 DS_MANGLE_UNKNOWN
= 0,
29 DS_MANGLE_OBJECT_RDN_FOR_DELETION
= 1,
30 DS_MANGLE_OBJECT_RDN_FOR_NAME_CONFLICT
= 2
32 #endif /* (_WIN32_WINNT >= 0x0501) */
33 #if (_WIN32_WINNT >= 0x0500)
36 DS_NAME_ERROR_RESOLVING
= 1,
37 DS_NAME_ERROR_NOT_FOUND
= 2,
38 DS_NAME_ERROR_NOT_UNIQUE
= 3,
39 DS_NAME_ERROR_NO_MAPPING
= 4,
40 DS_NAME_ERROR_DOMAIN_ONLY
= 5,
41 DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING
= 6,
42 DS_NAME_ERROR_TRUST_REFERRAL
= 7
45 DS_NAME_NO_FLAGS
= 0x0,
46 DS_NAME_FLAG_SYNTACTICAL_ONLY
= 0x1,
47 DS_NAME_FLAG_EVAL_AT_DC
= 0x2,
48 DS_NAME_FLAG_GCVERIFY
= 0x4,
49 DS_NAME_FLAG_TRUST_REFERRAL
= 0x8
53 DS_FQDN_1779_NAME
= 1,
54 DS_NT4_ACCOUNT_NAME
= 2,
56 DS_UNIQUE_ID_NAME
= 6,
57 DS_CANONICAL_NAME
= 7,
58 DS_USER_PRINCIPAL_NAME
= 8,
59 DS_CANONICAL_NAME_EX
= 9,
60 DS_SERVICE_PRINCIPAL_NAME
= 10,
61 DS_SID_OR_SID_HISTORY_NAME
= 11,
62 DS_DNS_DOMAIN_NAME
= 12
64 typedef enum _DS_REPL_INFO_TYPE
{
65 DS_REPL_INFO_NEIGHBORS
= 0,
66 DS_REPL_INFO_CURSORS_FOR_NC
= 1,
67 DS_REPL_INFO_METADATA_FOR_OBJ
= 2,
68 DS_REPL_INFO_KCC_DSA_CONNECT_FAILURES
= 3,
69 DS_REPL_INFO_KCC_DSA_LINK_FAILURES
= 4,
70 DS_REPL_INFO_PENDING_OPS
= 5,
71 DS_REPL_INFO_METADATA_FOR_ATTR_VALUE
= 6,
72 DS_REPL_INFO_CURSORS_2_FOR_NC
= 7,
73 DS_REPL_INFO_CURSORS_3_FOR_NC
= 8,
74 DS_REPL_INFO_METADATA_2_FOR_OBJ
= 9,
75 DS_REPL_INFO_METADATA_2_FOR_ATTR_VALUE
= 10
78 DS_REPL_OP_TYPE_SYNC
= 0,
80 DS_REPL_OP_TYPE_DELETE
,
81 DS_REPL_OP_TYPE_MODIFY
,
82 DS_REPL_OP_TYPE_UPDATE_REFS
85 DS_REPSYNCALL_WIN32_ERROR_CONTACTING_SERVER
= 0,
86 DS_REPSYNCALL_WIN32_ERROR_REPLICATING
= 1,
87 DS_REPSYNCALL_SERVER_UNREACHABLE
= 2
88 } DS_REPSYNCALL_ERROR
;
90 DS_REPSYNCALL_EVENT_ERROR
= 0,
91 DS_REPSYNCALL_EVENT_SYNC_STARTED
= 1,
92 DS_REPSYNCALL_EVENT_SYNC_COMPLETED
= 2,
93 DS_REPSYNCALL_EVENT_FINISHED
= 3
94 } DS_REPSYNCALL_EVENT
;
100 DS_SPN_NB_DOMAIN
= 4,
104 DS_SPN_ADD_SPN_OP
= 0,
105 DS_SPN_REPLACE_SPN_OP
= 1,
106 DS_SPN_DELETE_SPN_OP
= 2
110 #endif /* (_WIN32_WINNT >= 0x0500) */