Generic ADSI Error Codes
These types of error codes can be returned by any of the ADSI system providers to represent ADSI-specific error messages. They have the facility code 5 with severity bit set either true or false. When the severity bit is set to true, this results in error values of the form 0x80005xxx and error messages of the form E_ADS_\. When the severity bit is set to false, this results in error values of the form 0x00005xxx and the error messages are of the S_ADS_\** form.
The following table lists generic ADSI error codes defined in Adserr.h.
| Symbolic | Code | Description |
|---|---|---|
| S_ADS_ERRORSOCCURRED | 0x00005011 | During a query, one or more errors occurred. |
| S_ADS_NOMORE_ROWS | 0x00005012 | The search operation has reached the last row. |
| S_ADS_NOMORE_COLUMNS | 0x00005013 | The search operation has reached the last column for the current row. |
| E_ADS_BAD_PATHNAME | 0x80005000 | An invalid ADSI pathname was passed. |
| E_ADS_INVALID_DOMAIN_OBJECT | 0x80005001 | An unknown ADSI domain object was requested. |
| E_ADS_INVALID_USER_OBJECT | 0x80005002 | An unknown ADSI user object was requested. |
| E_ADS_INVALID_COMPUTER_OBJECT | 0x80005003 | An unknown ADSI computer object was requested. |
| E_ADS_UNKNOWN_OBJECT | 0x80005004 | An unknown ADSI object was requested. |
| E_ADS_PROPERTY_NOT_SET | 0x80005005 | The specified ADSI property was not set. |
| E_ADS_PROPERTY_NOT_SUPPORTED | 0x80005006 | The specified ADSI property is not supported. |
| E_ADS_PROPERTY_INVALID | 0x80005007 | The specified ADSI property is invalid |
| E_ADS_BAD_PARAMETER | 0x80005008 | One or more input parameters are invalid. |
| E_ADS_OBJECT_UNBOUND | 0x80005009 | The specified ADSI object is not bound to a remote resource. |
| E_ADS_PROPERTY_NOT_MODIFIED | 0x8000500A | The specified ADSI object has not been modified. |
| E_ADS_PROPERTY_MODIFIED | 0x8000500B | The specified ADSI object has been modified. |
| E_ADS_CANT_CONVERT_DATATYPE | 0x8000500C | The data type cannot be converted to/from a native DS data type. |
| E_ADS_PROPERTY_NOT_FOUND | 0x8000500D | The property cannot be found in the cache. |
| E_ADS_OBJECT_EXISTS | 0x8000500E | The ADSI object exists. |
| E_ADS_SCHEMA_VIOLATION | 0x8000500F | The attempted action violates the directory service schema rules. |
| E_ADS_COLUMN_NOT_SET | 0x80005010 | The specified column in the ADSI was not set. |
| E_ADS_INVALID_FILTER | 0x80005014 | The specified search filter is invalid. |
| 21 entries | ||
Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.