IOleCommandTarget.QueryStatus(Guid, Int32, IntPtr, IntPtr) Method

Definition

Queries the object for the status of one or more commands generated by user interface events.

public:
 int QueryStatus(Guid % pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText);
public int QueryStatus (ref Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText);
abstract member QueryStatus : Guid * int * nativeint * nativeint -> int
Public Function QueryStatus (ByRef pguidCmdGroup As Guid, cCmds As Integer, prgCmds As IntPtr, pCmdText As IntPtr) As Integer

Parameters

pguidCmdGroup
Guid

Specifies the unique identifier of the command group; can be NULL to specify the standard group.

cCmds
Int32

Specifies the number of commands in the prgCmds array.

prgCmds
IntPtr

nativeint

Specifies a caller-allocated array of OLECMD structures that indicate the commands for which the caller needs status information.

pCmdText
IntPtr

nativeint

A pointer to an OLECMDTEXT structure to return name and/or status information of a single command. This parameter can be NULL to indicate that the caller does not need this information.

Returns

Applies to