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.

SymbolicCodeDescription
S_ADS_ERRORSOCCURRED0x00005011During a query, one or more errors occurred.
S_ADS_NOMORE_ROWS0x00005012The search operation has reached the last row.
S_ADS_NOMORE_COLUMNS0x00005013The search operation has reached the last column for the current row.
E_ADS_BAD_PATHNAME0x80005000An invalid ADSI pathname was passed.
E_ADS_INVALID_DOMAIN_OBJECT0x80005001An unknown ADSI domain object was requested.
E_ADS_INVALID_USER_OBJECT0x80005002An unknown ADSI user object was requested.
E_ADS_INVALID_COMPUTER_OBJECT0x80005003An unknown ADSI computer object was requested.
E_ADS_UNKNOWN_OBJECT0x80005004An unknown ADSI object was requested.
E_ADS_PROPERTY_NOT_SET0x80005005The specified ADSI property was not set.
E_ADS_PROPERTY_NOT_SUPPORTED0x80005006The specified ADSI property is not supported.
E_ADS_PROPERTY_INVALID0x80005007The specified ADSI property is invalid
E_ADS_BAD_PARAMETER0x80005008One or more input parameters are invalid.
E_ADS_OBJECT_UNBOUND0x80005009The specified ADSI object is not bound to a remote resource.
E_ADS_PROPERTY_NOT_MODIFIED0x8000500AThe specified ADSI object has not been modified.
E_ADS_PROPERTY_MODIFIED0x8000500BThe specified ADSI object has been modified.
E_ADS_CANT_CONVERT_DATATYPE0x8000500CThe data type cannot be converted to/from a native DS data type.
E_ADS_PROPERTY_NOT_FOUND0x8000500DThe property cannot be found in the cache.
E_ADS_OBJECT_EXISTS0x8000500EThe ADSI object exists.
E_ADS_SCHEMA_VIOLATION0x8000500FThe attempted action violates the directory service schema rules.
E_ADS_COLUMN_NOT_SET0x80005010The specified column in the ADSI was not set.
E_ADS_INVALID_FILTER0x80005014The 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.