Поделиться через


CAtlTemporaryFile::Write

Call this method to write data to the temporary file starting at the position indicated by the file pointer.

HRESULT Write( 
   LPCVOID pBuffer, 
   DWORD nBufSize, 
   DWORD* pnBytesWritten = NULL  
) throw( );

Parameters

  • pBuffer
    The buffer containing the data to be written to the file.

  • nBufSize
    The number of bytes to be transferred from the buffer.

  • pnBytesWritten
    The number of bytes written.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Calls CAtlFile::Write.

Example

See the example for CAtlTemporaryFile::CAtlTemporaryFile.

Requirements

Header: atlfile.h

See Also

Reference

CAtlTemporaryFile Class

CAtlTemporaryFile::Read