IVsCommandWindowsCollection.GetCommandWindowFromCookie(UInt32, Object) Method

Definition

Retrieves a command window interface for the specified cookie.

public:
 int GetCommandWindowFromCookie(System::UInt32 uCookie, [Runtime::InteropServices::Out] System::Object ^ % ppunkCmdWindow);
int GetCommandWindowFromCookie(unsigned int uCookie, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppunkCmdWindow);
public int GetCommandWindowFromCookie (uint uCookie, out object ppunkCmdWindow);
abstract member GetCommandWindowFromCookie : uint32 * obj -> int
Public Function GetCommandWindowFromCookie (uCookie As UInteger, ByRef ppunkCmdWindow As Object) As Integer

Parameters

uCookie
UInt32

[in] A cookie, returned by Create(UInt32, UInt32, Int32, UInt32), specifying the window.

ppunkCmdWindow
Object

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

Returns

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  
);  

Applies to