IAgentCommandWindow::GetSize

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

HRESULT GetSize(
   long * plWidth,  // address of variable for Voice Commands Window width
   long * plHeight  // address of variable for Voice Commands Window height
);

Retrieves the current size of the Voice Commands Window.

  • Returns S_OK to indicate the operation was successful.

plWidth

Address of a variable that receives the width of the Voice Commands Window in pixels, relative to the screen origin (upper left).

plHeight

Address of a variable that receives the height of the Voice Commands Window in pixels, relative to the screen origin (upper left).

See Also

IAgentCommandWindow::GetPosition