1
{******************************************************************************}
3
{ Active Directory Error Codes API interface Unit for Object Pascal }
5
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
6
{ Corporation. All Rights Reserved. }
8
{ The original file is: adserr.h, released June 2000. The original Pascal }
9
{ code is: AdsErr.pas, released December 2000. The initial developer of the }
10
{ Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
12
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
13
{ Marcel van Brakel. All Rights Reserved. }
15
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
17
{ You may retrieve the latest version of this file at the Project JEDI }
18
{ APILIB home page, located at http://jedi-apilib.sourceforge.net }
20
{ The contents of this file are used with permission, subject to the Mozilla }
21
{ Public License Version 1.1 (the "License"); you may not use this file except }
22
{ in compliance with the License. You may obtain a copy of the License at }
23
{ http://www.mozilla.org/MPL/MPL-1.1.html }
25
{ Software distributed under the License is distributed on an "AS IS" basis, }
26
{ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
27
{ the specific language governing rights and limitations under the License. }
29
{ Alternatively, the contents of this file may be used under the terms of the }
30
{ GNU Lesser General Public License (the "LGPL License"), in which case the }
31
{ provisions of the LGPL License are applicable instead of those above. }
32
{ If you wish to allow use of your version of this file only under the terms }
33
{ of the LGPL License and not to allow others to use your version of this file }
34
{ under the MPL, indicate your decision by deleting the provisions above and }
35
{ replace them with the notice and other provisions required by the LGPL }
36
{ License. If you do not delete the provisions above, a recipient may use }
37
{ your version of this file under either the MPL or the LGPL License. }
39
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
41
{******************************************************************************}
43
// $Id: JwaAdsErr.pas,v 1.5 2004/12/08 08:18:35 marquardt Exp $
50
{$HPPEMIT '#include "adserr.h"'}
58
// Values are 32 bit values layed out as follows:
60
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
61
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
62
// +---+-+-+-----------------------+-------------------------------+
63
// |Sev|C|R| Facility | Code |
64
// +---+-+-+-----------------------+-------------------------------+
68
// Sev - is the severity code
75
// C - is the Customer code flag
77
// R - is a reserved bit
79
// Facility - is the facility code
81
// Code - is the facility's status code
84
// Define the facility codes
89
{$EXTERNALSYM FACILITY_WINDOWS}
91
{$EXTERNALSYM FACILITY_STORAGE}
93
{$EXTERNALSYM FACILITY_RPC}
95
{$EXTERNALSYM FACILITY_SSPI}
97
{$EXTERNALSYM FACILITY_WIN32}
98
FACILITY_CONTROL = 10;
99
{$EXTERNALSYM FACILITY_CONTROL}
101
{$EXTERNALSYM FACILITY_NULL}
103
{$EXTERNALSYM FACILITY_ITF}
104
FACILITY_DISPATCH = 2;
105
{$EXTERNALSYM FACILITY_DISPATCH}
108
// Define the severity codes
112
// MessageId: E_ADS_BAD_PATHNAME
116
// An invalid directory pathname was passed
118
E_ADS_BAD_PATHNAME = HRESULT($80005000);
119
{$EXTERNALSYM E_ADS_BAD_PATHNAME}
122
// MessageId: E_ADS_INVALID_DOMAIN_OBJECT
126
// An unknown directory domain object was requested
128
E_ADS_INVALID_DOMAIN_OBJECT = HRESULT($80005001);
129
{$EXTERNALSYM E_ADS_INVALID_DOMAIN_OBJECT}
132
// MessageId: E_ADS_INVALID_USER_OBJECT
136
// An unknown directory user object was requested
138
E_ADS_INVALID_USER_OBJECT = HRESULT($80005002);
139
{$EXTERNALSYM E_ADS_INVALID_USER_OBJECT}
142
// MessageId: E_ADS_INVALID_COMPUTER_OBJECT
146
// An unknown directory computer object was requested
148
E_ADS_INVALID_COMPUTER_OBJECT = HRESULT($80005003);
149
{$EXTERNALSYM E_ADS_INVALID_COMPUTER_OBJECT}
152
// MessageId: E_ADS_UNKNOWN_OBJECT
156
// An unknown directory object was requested
158
E_ADS_UNKNOWN_OBJECT = HRESULT($80005004);
159
{$EXTERNALSYM E_ADS_UNKNOWN_OBJECT}
162
// MessageId: E_ADS_PROPERTY_NOT_SET
166
// The specified directory property was not set
168
E_ADS_PROPERTY_NOT_SET = HRESULT($80005005);
169
{$EXTERNALSYM E_ADS_PROPERTY_NOT_SET}
172
// MessageId: E_ADS_PROPERTY_NOT_SUPPORTED
176
// The specified directory property is not supported
178
E_ADS_PROPERTY_NOT_SUPPORTED = HRESULT($80005006);
179
{$EXTERNALSYM E_ADS_PROPERTY_NOT_SUPPORTED}
182
// MessageId: E_ADS_PROPERTY_INVALID
186
// The specified directory property is invalid
188
E_ADS_PROPERTY_INVALID = HRESULT($80005007);
189
{$EXTERNALSYM E_ADS_PROPERTY_INVALID}
192
// MessageId: E_ADS_BAD_PARAMETER
196
// One or more input parameters are invalid
198
E_ADS_BAD_PARAMETER = HRESULT($80005008);
199
{$EXTERNALSYM E_ADS_BAD_PARAMETER}
202
// MessageId: E_ADS_OBJECT_UNBOUND
206
// The specified directory object is not bound to a remote resource
208
E_ADS_OBJECT_UNBOUND = HRESULT($80005009);
209
{$EXTERNALSYM E_ADS_OBJECT_UNBOUND}
212
// MessageId: E_ADS_PROPERTY_NOT_MODIFIED
216
// The specified directory object has not been modified
218
E_ADS_PROPERTY_NOT_MODIFIED = HRESULT($8000500A);
219
{$EXTERNALSYM E_ADS_PROPERTY_NOT_MODIFIED}
222
// MessageId: E_ADS_PROPERTY_MODIFIED
226
// The specified directory object has been modified
228
E_ADS_PROPERTY_MODIFIED = HRESULT($8000500B);
229
{$EXTERNALSYM E_ADS_PROPERTY_MODIFIED}
232
// MessageId: E_ADS_CANT_CONVERT_DATATYPE
236
// The directory datatype cannot be converted to/from a native DS datatype
238
E_ADS_CANT_CONVERT_DATATYPE = HRESULT($8000500C);
239
{$EXTERNALSYM E_ADS_CANT_CONVERT_DATATYPE}
242
// MessageId: E_ADS_PROPERTY_NOT_FOUND
246
// The directory property cannot be found in the cache.
248
E_ADS_PROPERTY_NOT_FOUND = HRESULT($8000500D);
249
{$EXTERNALSYM E_ADS_PROPERTY_NOT_FOUND}
252
// MessageId: E_ADS_OBJECT_EXISTS
256
// The directory object exists.
258
E_ADS_OBJECT_EXISTS = HRESULT($8000500E);
259
{$EXTERNALSYM E_ADS_OBJECT_EXISTS}
262
// MessageId: E_ADS_SCHEMA_VIOLATION
266
// The attempted action violates the DS schema rules.
268
E_ADS_SCHEMA_VIOLATION = HRESULT($8000500F);
269
{$EXTERNALSYM E_ADS_SCHEMA_VIOLATION}
272
// MessageId: E_ADS_COLUMN_NOT_SET
276
// The specified column in the directory was not set.
278
E_ADS_COLUMN_NOT_SET = HRESULT($80005010);
279
{$EXTERNALSYM E_ADS_COLUMN_NOT_SET}
282
// MessageId: S_ADS_ERRORSOCCURRED
286
// One or more errors occurred
288
S_ADS_ERRORSOCCURRED = HRESULT($00005011);
289
{$EXTERNALSYM S_ADS_ERRORSOCCURRED}
292
// MessageId: S_ADS_NOMORE_ROWS
296
// No more rows to be obatained by the search result.
298
S_ADS_NOMORE_ROWS = HRESULT($00005012);
299
{$EXTERNALSYM S_ADS_NOMORE_ROWS}
302
// MessageId: S_ADS_NOMORE_COLUMNS
306
// No more columns to be obatained for the current row.
308
S_ADS_NOMORE_COLUMNS = HRESULT($00005013);
309
{$EXTERNALSYM S_ADS_NOMORE_COLUMNS}
312
// MessageId: E_ADS_INVALID_FILTER
316
// The search filter specified is invalid
318
E_ADS_INVALID_FILTER = HRESULT($80005014);
319
{$EXTERNALSYM E_ADS_INVALID_FILTER}