Partager via


IVsCommandWindowsCollection.Create(UInt32, UInt32, Int32, UInt32) Method

Definition

Creates a new command window in the specified mode.

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

Parameters

mode
UInt32

[in] A value of type __COMMANDWINDOWMODE2 indicating the mode, immediate or command, in which to open the window.

dwToolWindowId
UInt32

[in] An identifier for the window. Use -1 to have the service choose the ID.

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).

Returns

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

Remarks

COM Signature

From vsshell80.idl:

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

Applies to