Interface ITcFileAccessAsync

Asynchronous access to file operations. This interface extends ITcFileAccess.

Syntax

TCOM_DECL_INTERFACE("C04AC244-C126-466E-982E-93EC571F2277", ITcFileAccessAsync) struct __declspec(novtable) ITcFileAccessAsync: public ITcFileAccess 

Required include: TcFileAccessInterfaces.h

Interface ITcFileAccessAsync 1: Methods

Name

Description

Check

Query the state of the file operation.

Interface ITcFileAccessAsync 2: Interface parameters

Name

Description

PID_TcFileAccessAsyncSegmentSize

Size of the segments transferred to system service.

PID_TcFileAccessAsyncTimeoutMs

Sets the timeout in [ms].

PID_TcFileAccessAsyncNetId(Str)

NetId of the system service to be contacted.

Comments

Interface can be obtained from module instance with class ID CID_TcFileAccessAsync.
When using the asynchronous interface, the interface methods inherited from the synchronous variant return ADS_E_PENDING if a query has been successfully submitted but not yet completed. If the call is received while the previous request was still being processed, the error code ADS_E_BUSY is returned.

Description of the module parameters:

See Sample20a: FileIO-Cyclic Read / Write.