Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function OpenExistingOrCreateNewCommandWindow ( _
mode As UInteger, _
fShow As Integer, _
<OutAttribute> ByRef puCookie As UInteger _
) As Integer
int OpenExistingOrCreateNewCommandWindow(
uint mode,
int fShow,
out uint puCookie
)
int OpenExistingOrCreateNewCommandWindow(
[InAttribute] unsigned int mode,
[InAttribute] int fShow,
[OutAttribute] unsigned int% puCookie
)
abstract OpenExistingOrCreateNewCommandWindow :
mode:uint32 *
fShow:int *
puCookie:uint32 byref -> int
function OpenExistingOrCreateNewCommandWindow(
mode : uint,
fShow : int,
puCookie : uint
) : int
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.
Remarks
COM Signature
From vsshell80.idl:
HRESULT OpenExistingOrCreateNewCommandWindow(
[in] COMMANDWINDOWMODE2 mode
[in] BOOL fShow,
[out] UINT * puCookie
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.