IVsCommandWindowsCollection::GetCommandWindowFromCookie Method (UInt32, Object^)

 

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)

int GetCommandWindowFromCookie(
	unsigned int uCookie,
	[OutAttribute] Object^% ppunkCmdWindow
)

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.

From vsshell80.idl:

HRESULT SetRunningCommandWindowCommand(
    [in]    UINT uCookie,
    [in]    BOOL fCmdWin
);
Return to top
Show: