AdsFRead
Reads up to ulLen bytes from the current file position.
Harbour-style name: oads_FRead (see Server filesystem).
Syntax
UNSIGNED32 AdsFRead(ADSHANDLE hFile, void *pBuf,
UNSIGNED32 ulLen, UNSIGNED32 *pulRead);
Parameters
| Parameter | Type | Description |
|---|---|---|
hFile |
ADSHANDLE |
File handle. |
pBuf |
void* |
Destination buffer. |
ulLen |
UNSIGNED32 |
Maximum bytes to read (remote chunk capped at 1 MiB). |
pulRead |
UNSIGNED32* |
Out: bytes actually read (0 at EOF). |
Return Value
AE_SUCCESS (0).
Description
Loop for large transfers. Pair with AdsFSeek for random access.
Example
char buf[256]; UNSIGNED32 n = 0;
AdsFRead(hFile, buf, sizeof(buf), &n);