Bagikan melalui


CAtlTemporaryFile Members

Methods

CAtlTemporaryFile

The constructor.

~CAtlTemporaryFile

The destructor.

Close

Call this method to close a temporary file and either delete its contents or store them under the specified file name.

Create

Call this method to create a temporary file.

Flush

Call this method to force any data remaining in the file buffer to be written to the temporary file.

GetPosition

Call this method to get the current file pointer position.

GetSize

Call this method to get the size in bytes of the temporary file.

HandsOff

Call this method to disassociate the file from the CAtlTemporaryFile object.

HandsOn

Call this method to open an existing temporary file and position the pointer at the end of the file.

LockRange

Call this method to lock a region in the file to prevent other processes from accessing it.

Read

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

Seek

Call this method to move the file pointer of the temporary file.

SetSize

Call this method to set the size of the temporary file.

TempFileName

Call this method to return the name of the temporary file.

UnlockRange

Call this method to unlock a region of the temporary file.

Write

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

Operators

operator HANDLE

Returns a handle to the temporary file.

See Also

Reference

CAtlTemporaryFile Class

Other Resources

CAtlFile Members