CAtlTemporaryFile::Read
Call this method to read data from the temporary file starting at the position indicated by the file pointer.
HRESULT Read(
LPVOID pBuffer,
DWORD nBufSize,
DWORD& nBytesRead
) throw( );
Параметры
pBuffer
Pointer to the buffer that will receive the data read from the file.nBufSize
The buffer size in bytes.nBytesRead
The number of bytes read.
Возвращаемое значение
Returns S_OK on success, or an error HRESULT on failure.
Заметки
Calls CAtlFile::Read. To change the position of the file pointer, call CAtlTemporaryFile::Seek.
Пример
See the example for CAtlTemporaryFile::CAtlTemporaryFile.
Требования
Header: atlfile.h