Condividi tramite


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

'Declaration
Function GetCommandWindowFromCookie ( _
    uCookie As UInteger, _
    <OutAttribute> ByRef ppunkCmdWindow As Object _
) As Integer
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: UInt32

    [in] A cookie, returned by Create, specifying the window.

  • ppunkCmdWindow
    Type: Object%

    [out] A pointer to a pointer to the IUnknown interface for the command window.

Return Value

Type: 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

See Also

Reference

IVsCommandWindowsCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace