IVsCommandWindowsCollection.GetCommandWindowFromCookie Method
Retrieves a command window interface for the specified cookie.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Déclaration
Function GetCommandWindowFromCookie ( _
uCookie As UInteger, _
<OutAttribute> ByRef ppunkCmdWindow As Object _
) As Integer
'Utilisation
Dim instance As IVsCommandWindowsCollection
Dim uCookie As UInteger
Dim ppunkCmdWindow As Object
Dim returnValue As Integer
returnValue = instance.GetCommandWindowFromCookie(uCookie, _
ppunkCmdWindow)
int GetCommandWindowFromCookie(
uint uCookie,
out Object ppunkCmdWindow
)
int GetCommandWindowFromCookie(
[InAttribute] unsigned int uCookie,
[OutAttribute] Object^% ppunkCmdWindow
)
abstract GetCommandWindowFromCookie :
uCookie:uint32 *
ppunkCmdWindow:Object byref -> int
function GetCommandWindowFromCookie(
uCookie : uint,
ppunkCmdWindow : Object
) : int
Parameters
- uCookie
Type: System.UInt32
[in] A cookie, returned by Create, specifying the window.
- ppunkCmdWindow
Type: System.Object%
[out] A pointer to a pointer to the IUnknown interface for the command window.
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 SetRunningCommandWindowCommand(
[in] UINT uCookie,
[in] BOOL fCmdWin
);
.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.
See Also
Reference
IVsCommandWindowsCollection Interface