IWiaAppErrorHandler::GetWindow method

Gets a handle to the dialog box that displays error messages and provides one or more buttons to continue, cancel, or abort the application.

Syntax

HRESULT GetWindow(
  [out] HWND *phwnd
);

Parameters

phwnd [out]

Type: HWND*

HWND used by the application error handler, the driver error handler, and the default error handler for device message dialog boxes (both error and informational). The output value may be NULL.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

phwnd points to the window passed into ReportStatus by the Windows Image Acquisition (WIA) 2.0 Proxy. This window must remain valid for the duration of the data transfer.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Wia.h
IDL
Wia.idl
Library
Wiaguid.lib