IVsCommandWindowsCollection.OpenExistingOrCreateNewCommandWindow Method

Definition

Opens an existing command window or creates a new one.

public:
 int OpenExistingOrCreateNewCommandWindow(System::UInt32 mode, int fShow, [Runtime::InteropServices::Out] System::UInt32 % puCookie);
int OpenExistingOrCreateNewCommandWindow(unsigned int mode, int fShow, [Runtime::InteropServices::Out] unsigned int & puCookie);
public int OpenExistingOrCreateNewCommandWindow (uint mode, int fShow, out uint puCookie);
abstract member OpenExistingOrCreateNewCommandWindow : uint32 * int * uint32 -> int
Public Function OpenExistingOrCreateNewCommandWindow (mode As UInteger, fShow As Integer, ByRef puCookie As UInteger) As Integer

Parameters

mode
UInt32

[in] A value of type __COMMANDWINDOWMODE2.

fShow
Int32

[in] Specifies if the command window should be visible when opened or created.

puCookie
UInt32

[out] A cookie for the command window. Use when closing the window with Close(UInt32).and in other methods of this interface.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT OpenExistingOrCreateNewCommandWindow(  
   [in] COMMANDWINDOWMODE2 mode  
   [in]    BOOL fShow,  
   [out]   UINT * puCookie  
);  

Applies to