Share via


IVsCommandWindowsCollection.GetCommandWindowFromMode(UInt32, Object) Method

Definition

Retrieves a command window interface for the specified mode.

public:
 int GetCommandWindowFromMode(System::UInt32 mode, [Runtime::InteropServices::Out] System::Object ^ % ppunkCmdWindow);
int GetCommandWindowFromMode(unsigned int mode, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppunkCmdWindow);
public int GetCommandWindowFromMode (uint mode, out object ppunkCmdWindow);
abstract member GetCommandWindowFromMode : uint32 * obj -> int
Public Function GetCommandWindowFromMode (mode As UInteger, ByRef ppunkCmdWindow As Object) As Integer

Parameters

mode
UInt32

[in] A value of type __COMMANDWINDOWMODE2.

ppunkCmdWindow
Object

[out] A pointer to a pointer to the IUnknown interface for the command window.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshel80l.idl:

HRESULT GetCommandWindowFromMode(  
    [in]    COMMANDWINDOWMODE2 mode,  
    [out]   IUnknown ** ppunkCmdWindow  
);  

Applies to