Platform SDK: SMTP Server Events

FIOReadFile

[This is preliminary documentation and subject to change.]

The FIOReadFile function reads from the file HANDLE within the specified FIO_CONTEXT structure.

BOOL
FIOReadFile(
    PFIO_CONTEXT pContext,
    LPVOID       lpBuffer,
    DWORD        BytesToRead,
    FH_OVERLAPPED *lpo
);

Parameters

pContext
A reference to a FIO_CONTEXT structure containing the associated file handle.
lpBuffer
A buffer in which to read the content.
BytesToRead
Either the size of the buffer referenced by lpBuffer, or the number of bytes to read if less than the size of the buffer.
lpo
A reference to an FH_OVERLAPPED structure used to perform the asynchronous I/O operation.

Return Values

The function returns TRUE if the read operation was successful.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in filehc.h; include filehc.h.
  Library: Use fcachdll.lib.

See Also

FIOWriteFile, AssociateFile, FIO_CONTEXT, FH_OVERLAPPED