IVsCommandWindowsCollection::Create Method (UInt32, UInt32, Int32, UInt32)
Visual Studio 2015
Creates a new command window in the specified mode.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int Create( unsigned int mode, unsigned int dwToolWindowId, int fShow, [OutAttribute] unsigned int% puCookie )
Parameters
- mode
-
Type:
System::UInt32
[in] A value of type __COMMANDWINDOWMODE2 indicating the mode, immediate or command, in which to open the window.
- dwToolWindowId
-
Type:
System::UInt32
[in] An identifier for the window. Use -1 to have the service choose the ID.
- 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.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT Create(
[in] COMMANDWINDOWMODE2 mode,
[in] DWORD dwToolWindowId,
[in] BOOL fShow,
[out] UINT * puCookie
);
Show: