Visual Basic (Declaration)
Function IsCmdUIContextActive ( _
<InAttribute> dwCmdUICookie As UInteger, _
<OutAttribute> ByRef pfActive As Integer _
) As Integer
Dim instance As IVsMonitorSelection
Dim dwCmdUICookie As UInteger
Dim pfActive As Integer
Dim returnValue As Integer
returnValue = instance.IsCmdUIContextActive(dwCmdUICookie, pfActive)
int IsCmdUIContextActive (
[InAttribute] uint dwCmdUICookie,
out int pfActive
)
int IsCmdUIContextActive (
[InAttribute] unsigned int dwCmdUICookie,
[OutAttribute] int% pfActive
)
int IsCmdUIContextActive (
/** @attribute InAttribute() */ UInt32 dwCmdUICookie,
/** @attribute OutAttribute() */ /** @ref */ int pfActive
)
JScript does not support passing value-type arguments by reference.
Parameters
- dwCmdUICookie
[in] DWORD representation of the GUID identifying the command UI context passed in as the rguidCmdUI parameter in the call to GetCmdUIContextCookie.
- pfActive
[out] Flag set to true if the command UI context identified by dwCmdUICookie is active and false otherwise.
Return Value
If the method succeeds, it returns
S_OK. If it fails, it returns an error code.