Where can I find the Error code for DirectoryServicesCOMException?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Where can I find pre-defined Error code like OBJECT_ALREADY_EXISTS (HRESULT)
for the DirectoryServicesCOMException.ErrorCode? I need it for the try-catch
coding.

Thanks.
 
Search the platform SDK docs for "ADSI Error Codes".

Willy.

| Where can I find pre-defined Error code like OBJECT_ALREADY_EXISTS
(HRESULT)
| for the DirectoryServicesCOMException.ErrorCode? I need it for the
try-catch
| coding.
|
| Thanks.
 
Oh, I've found that long time back and used it in my C++ module. But for my
C# module I tried using the constants found there and compiler would complain
that it isn't define. Like, ERROR_OBJECT_ALREADY_EXISTS, can be used in C++
but not in C#. Do I need to add any references to use the same constants?
 
Back
Top