IWsbApplicationAsync::QueryStatus method (wsbapp.h)

Queries the status of an asynchronous operation.

Syntax

HRESULT QueryStatus(
  [out] HRESULT *phrResult
);

Parameters

[out] phrResult

The address of an HRESULT value that receives the status of the current asynchronous operation. If the asynchronous operation fails, this parameter receives the failure status code. Possible values include the following.

S_OK (0)

The asynchronous operation was completed successfully.

WSBAPP_ASYNC_IN_PROGRESS (0x407A0004L)

The asynchronous operation is still running.

Return value

Returns S_OK if successful, or an error value otherwise.

Remarks

Windows Server Backup calls this method periodically to query the status of a pending asynchronous operation.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header wsbapp.h

See also

IWsbApplicationAsync