Partager via


IWSDAsyncResult::SetWaitHandle (Compact 2013)

3/26/2014

This method specifies a wait handle to set when the operation completes.

Syntax

HRESULT SetWaitHandle(
  HANDLE hWaitHandle
);

Parameters

  • hWaitHandle
    [in] The wait handle to set.

Return Value

The following table shows the possible error code return values.

Error code

Description

S_OK

This method completed successfully.

E_INVALIDARG

hWaitHandle is NULL.

E_FAIL

This method failed.

Remarks

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

Requirements

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDAsyncResult
Web Services on Devices Interfaces