Platform SDK: Active Directory, ADSI, and Directory Services |
All ADSI error codes are returned as COM HRESULT values. They can be grouped into the following three types:
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 given in this section shows how to work ADSI error messages.