This method cancels outstanding asynchronous read or advise requests. The server shall respond via the client's IOPCHDA_DataCallback::OnCancelComplete method unless a FAILED error code is returned from the call. If a FAILED error code is returned, there will be no callback to the client's IOPCHDA_DataCallback::OnCancelComplete method.
'Usage
Dim instance As AppPlugin
Dim cancelID As Integer
Dim value As Integer
value = instance.CancelAsyncRead(cancelID)
public int CancelAsyncRead(
int
)
Parameters
- cancelID
- Identifies the request to be cancelled.
Return Value
HRESULTS success/error code.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2