Microsoft KB Archive/306307

= DOC: IConsole2::Expand Returns &quot;S_OK&quot; Even If the Node Is Already in the Requested State =

Article ID: 306307

Article Last Modified on 7/11/2005

-

APPLIES TO

 Microsoft Visual Studio 6.0 Service Pack 5 Microsoft Platform Software Development Kit-January 2000 Edition, when used with:  Microsoft Windows 2000 Standard Edition

 Microsoft Windows 98 Standard Edition

 Microsoft Windows 98 Second Edition

 Microsoft Windows Millennium Edition</li></ul>

 Microsoft Windows NT 4.0</li></ul>

 Microsoft Windows XP Professional</li></ul> </li> Microsoft Management Console 1.0</li> Microsoft Management Console 2.0</li></ul>

-

<div class="notice_section">

This article was previously published under Q306307

<div class="summary_section">

SUMMARY
In MSDN, the following condition is listed as causing IConsole2::Expand to return &quot;E_FAIL&quot;:

The item specified by  is already in the state specified by.

is the handle to the item to expand;  specifies whether to expand or collapse the item. TRUE expands the item. FALSE collapses the item.

However, IConsole2::Expand returns &quot;S_OK&quot; even if the item is already in the state that is specified by.

<div class="moreinformation_section">

MORE INFORMATION
Microsoft acknowledges that this behavior is a deviation from the documentation. The documentation will be edited to reflect the actual behavior of the function.

Additional query words: mmc scope

Keywords: kbbug kbdocerr kbpending KB306307

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.