ADSI Error Codes
All ADSI error codes are returned as COM HRESULT values. They can be grouped into the following four types:
- Generic COM error codes
- Generic ADSI error codes
- Win32 error codes for ADSI
- LDAP error codes for ADSI
In addition, certain interfaces provide additional error information, known as ADSI extended error messages, which can be obtained using the ADsGetLastError function.
Finally, the C++ example code shown in this section shows how to work ADSI error messages.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for