IVsCommandWindowsCollection::OpenExistingOrCreateNewCommandWindow Method (UInt32, Int32, UInt32)

 

Opens an existing command window or creates a new one.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int OpenExistingOrCreateNewCommandWindow(
	unsigned int mode,
	int fShow,
	[OutAttribute] unsigned int% puCookie
)

Parameters

mode
Type: System::UInt32

[in] A value of type __COMMANDWINDOWMODE2.

fShow
Type: System::Int32

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

puCookie
Type: System::UInt32

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

Return Value

Type: System::Int32

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

From vsshell80.idl:

HRESULT OpenExistingOrCreateNewCommandWindow(
   [in] COMMANDWINDOWMODE2 mode
   [in]    BOOL fShow,
   [out]   UINT * puCookie
);
Return to top
Show: