Method ITcFileAccess:FileWrite
Write data to a file.
Syntax
virtual HRESULT TCOMAPI
FileWrite(TcFileHandle hFile, PCVOID pData, UINT cbData, PUINT pcbWrite);
Return value
If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.
A particularly interesting error code is ADSERR_DEVICE_TIMEOUT if the timeout (5 seconds) has elapsed.
Parameter
Name | Type | Description |
|---|---|---|
hFile | TcFileHandle | [in] refers to the previously opened file. |
pData | PVOID | [in] storage location of the data to be written. |
cbData | PVOID | [in] size of the data to be written (size of the memory behind pData). |
pcbRead | PUINT | [out] size of the written data. |