Article ID: 276469 - View products that this article applies to.
This article was previously published under Q276469
Windows Management Instrumentation (WMI) is not able to enumerate instances of a framework provider (such as a Win32 provider) superclass by using the WBEM_FLAG_DIRECT_READ flag.
The WBEM_FLAG_DIRECT_READ flag causes direct access to the provider for the class that is specified without any regard to its superclass or subclasses. The WBEM_FLAG_DIRECT_READ flag can be passed to a number of IWbemServices routines in lFlags to enumerate instances or to obtain a particular instance. These IWbemServices routines include ExecQuery, ExecQueryAsync, CreateInstanceEnum, CreateInstanceEnumAsync, GetObject and GetObjectAsync.
The WBEM_FLAG_DIRECT_READ flag is used internally by the WMI core, and although the flag is passed to the providers, it is not intended for use by the providers. WMI providers that have been built by using the Provider Framework (such as the Win32 provider), were not designed to process the WBEM_FLAG_DIRECT_READ flag. When this flag is received, framework-based providers return an invalid parameter error code. Normally, when the WMI core receives this error code from a provider, the core retries the operation with a smaller set of flags. However, this retry mechanism does not function properly with the WBEM_FLAG_DIRECT_READ flag.
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910The English version of this fix should have the following file attributes or later:
(http://support.microsoft.com/kb/260910/EN-US/ )How to Obtain the Latest Windows 2000 Service Pack
Date Time Version Size File name Platform ------------------------------------------------------------------ 10/12/2000 17:25:22 1.50.1085.33 643,140 Wbemcore.dll i386
Using the Hotfix InstallerNOTE: You can use this method only for Intel-based computers with Windows 2000 installed.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.
For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/249149/EN-US/ )Installing Microsoft Windows 2000 and Windows 2000 Hotfixes
Article ID: 276469 - Last Review: October 25, 2006 - Revision: 3.1
Contact us for more help
Connect with Answer Desk for expert help.