delphi - Some API's -MkParseDisplayNameEx, ADsGetObject- are not working well for LDAP on "windows server 2008 64bit" -
i have code running in windows platforms (xp 32bit, xp 64bit, server 2003 32bit, server 2008 32bit, windows 7 32bit), can't run on "windows server 2008 r2 64bit" api causes exception can't handled:
"application defined exception (code 0x0eedfade) @ 0x7773c42d"
and code used:
function getobject(apath: string): idispatch; var moniker: imoniker; eaten: integer; bindcontext: ibindctx; dispatch: idispatch; begin result := nil; olecheck(createbindctx(0, bindcontext)); olecheck(mkparsedisplaynameex(bindcontext, pwidechar(widestring(apath)), eaten, moniker)); olecheck(moniker.bindtoobject(bindcontext, nil, iunknown, dispatch)); result := dispatch; end;
the exception appears in line :
olecheck(mkparsedisplaynameex(bindcontext, pwidechar(widestring(apath)), eaten, moniker));
i tried code none-handled exception appears:
function getobject(apath: string): idispatch; begin adsgetobject(apath, idispatch, result); end;
i passing same apath parameter in platforms: "ldap://mydomain/cn=my_domain_group,cn=users,dc=mydomain,dc=com"
this related ldap protocol , adsiedit.dll library, checked if rsat -reamote server administration tool- supposed install library , looks windows component installed already...any idea cause of exception?
Comments
Post a Comment