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)


Function GetCommandWindowFromCookie ( _
    uCookie As UInteger, _
    <OutAttribute> ByRef ppunkCmdWindow As Object _
) As Integer
‘사용 방법
Dim instance As IVsCommandWindowsCollection
Dim uCookie As UInteger
Dim ppunkCmdWindow As Object
Dim returnValue As Integer

returnValue = instance.GetCommandWindowFromCookie(uCookie, _
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


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


COM Signature

From vsshell80.idl:

HRESULT SetRunningCommandWindowCommand(
    [in]    UINT uCookie,
    [in]    BOOL fCmdWin

.NET Framework Security

See Also


IVsCommandWindowsCollection Interface

IVsCommandWindowsCollection Members

Microsoft.VisualStudio.Shell.Interop Namespace