Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ADsGetObject() returns an error

148 views
Skip to first unread message

Daby Bo

unread,
Apr 26, 2012, 1:17:08 PM4/26/12
to
Hi.

I have some problems with ADsGetObject().

ADsGetObject() returns an error: "There is a naming violation." HRESULT=0x80072037

I use it in this way:


HRESULT hResult = ADsGetObject( _T("LDAP://<SID=S-1-5-21-3090688366-220602789-926701516-1348>"), IID_IADsUser, reinterpret_cast<void**>(&ObjADs) );

This code works fine except one customer. What it could be?

BTW, something like this works good: ADsGetObject("LDAP://<GUID=.....>")


Thank you.



0 new messages