WMI: WDM Provider Rejects Dynamic Arrays Of Zero Length (286803)
The information in this article applies to:
- Microsoft Windows Management Instrumentation 1.5, when used with:
- the operating system: Microsoft Windows 2000
This article was previously published under Q286803 SYMPTOMS
The Windows Driver Model (WDM) Provider in Windows Management Instrumentation (WMI) rejects dynamic arrays of zero size. Any attempt to store an instance of an object that includes a dynamic array of zero size will result in an "Invalid Parameter" error.
As an example, the following MOF declares a variable length array.
class Test_DiagnosticsStatus
{
datetime timeoflastrun;
uint16 numberofresults;
[read,WmiSizeIs("NumberOfResults")]
Test_DiagnosticsResult DiagResults[]; // Varying array
};
The problem arises when the dynamic array (DiagResults[]) is of zero length.
DiagnosticsStatus = instance of Test_DiagnosticsStatus
{
NumberOfResults = 0;
TimeOfLastRun = "16010101000000.000000+000";
};
Any attempt to store the above instance (DiagnosticsStatus) would result in an "Invalid Parameter" error (0x80041008).
RESOLUTIONTo 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:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English-language version of this fix should have the following file attributes or later:
Date Time Version Size File name Platform
--------------------------------------------------------------
2/13/2001 19:36 1.50.1085.49 110,660 Wmiprov.dll Intel
How to Use the Hotfix InstallerNOTE: You can use this method only for Intel-based computers with Windows 2000 installed.
- Copy the Q286803.exe hotfix file to a local folder on your computer or to a share on your network.
- Run the Q286803.exe file and follow the directions.
- Restart your computer.
STATUSMicrosoft 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 3.
Modification Type: | Minor | Last Reviewed: | 9/26/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbDSWManage2003Swept kbbug kbfix kbSysAdmin kbWin2000PreSP3Fix kbWin2000sp3fix KB286803 |
---|
|