Syntax
Parameters
cancellationHandleType: WdCancellationHandle A cancellation handle created with
WdCreateCancellationHandle. Where optional, pass nullptr if cancellation isn’t needed.
Return value
Type: HRESULT ReturnsS_OK on success; otherwise returns a failure HRESULT. See Error codes.
Remarks
Pass the handle used byWdEnumRemoteDirectory. This call signals cancellation without blocking. Wait for the enumeration call to return before closing the handle. Cancellation doesn’t invalidate entries already delivered.
