Skip to main content
Signals cancellation of a remote directory enumeration. Introduced in: RIT 0.0.14-preview.

Syntax

Parameters

cancellationHandle
Type: WdCancellationHandle
A cancellation handle created with WdCreateCancellationHandle. Where optional, pass nullptr if cancellation isn’t needed.

Return value

Type: HRESULT Returns S_OK on success; otherwise returns a failure HRESULT. See Error codes.

Remarks

Pass the handle used by WdEnumRemoteDirectory. This call signals cancellation without blocking. Wait for the enumeration call to return before closing the handle. Cancellation doesn’t invalidate entries already delivered.

Requirements

See also

Last modified on November 25, 2026