IWSDAsyncResult::SetWaitHandle method (wsdclient.h)

Specifies a wait handle to set when the operation completes.

Syntax

HRESULT SetWaitHandle(
  [in] HANDLE hWaitHandle
);

Parameters

[in] hWaitHandle

The wait handle to set.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_INVALIDARG
hWaitHandle is NULL.
E_FAIL
The method failed.

Remarks

Do not close hWaitHandle until after the asynchronous operation has completed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDAsyncResult