Microsoft KB Archive/171724

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 11:06, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PRB: ADsGetObject Invalid Syntax (0x800401e4) If No CoInitialize

Q171724



The information in this article applies to:


  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Active Directory Service Interfaces, versions 1.0, 2.0, 2.5





SYMPTOMS

ADSI is based on COM. If you neglect to call CoInitialize or OleInitialize, AdsGetObject, it will return an HRESULT of MK_E_SYNTAX (0x800401e4, "invalid syntax") instead of the more helpful CO_E_NOTINITIALIZED.



RESOLUTION

Call CoInitalize or OleInitialze before calling any ADSI APIs.



STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION

This behavior applies to ADSI Rel 1.0 and 1.0 update.

Additional query words:

Keywords : kbnetwork kbADSI kbAPI kbOSWinNT351 kbOSWinNT400 kbSDKPlatform kbOSWin95 kbGrpDSNet
Issue type : kbprb
Technology : kbWin32SDKSearch kbAudDeveloper kbADSISearch kbSDKSearch kbADSI100 kbADSI200 kbADSI250


Last Reviewed: June 12, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.