Article ID: 171724 - Last Review: July 11, 2005 - Revision: 1.2

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

This article was previously published under Q171724
Expand all | Collapse all

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.

APPLIES TO
  • Microsoft Platform Software Development Kit-January 2000 Edition
  • Microsoft Active Directory Service Interfaces 1.0
  • Microsoft Active Directory Service Interfaces 2.0
  • Microsoft Active Directory Service Interfaces 2.5
Keywords: 
kbapi kbnetwork kbprb KB171724
 

Article Translations