|Manuals

IVirtualUI::TakeScreenshot Method

Takes a screenshot of a window.

Syntax

HRESULT TakeScreenshot(
    [in] long Wnd,
    [in] BSTR FileName,
    [out, retval] VARIANT_BOOL* OutRetVal
);

Parameters

Parameter Type Description
Wnd long The window to be captured.
FileName BSTR Full file path for saving the screenshot. Supported formats include jpg, bmp, and png.

Return Value

Type Description
VARIANT_BOOL Success or failure status of the screenshot operation.