Dear sirs,
I am using the ADsGetObject function in order to get the system groups
in which a user is set.
I use the function in accordance with the MSDN example "IADsUser [ADSI],
Groups".
My platform is Windows 2000 Professional Service Pack 1, and the
application runs as a windows service in system account.
The problem is that sometimes the call to ADsGetObject fails (not
always) with the following error codes, and the application crash with
an "access violation" in the NTDLL
ERROR: ADsGetObject [WinNT://mobile5/user1,user] HRESULT = 800703E6h
ERROR: ADsGetObject [WinNT://mobile5/user1,user] HRESULT = 80004005h
I install the service pack 2 and the behavior is the same but it seems
to happen not so often.
Is this a problem of bad usage? How can I avoid this problem?
Best regards,
João Pereira