Udostępnij za pośrednictwem


CAtlTemporaryFile::HandsOff

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

HRESULT HandsOff( ) throw( );

Return Value

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

Remarks

HandsOff and CAtlTemporaryFile::HandsOn are used to disassociate the file from the object, and reattach it if needed. HandsOff will force any data remaining in the file buffer to be written to the temporary file, and then close the file. If you want to close and delete the file permanently, or if you want to close and retain the contents of the file with a given name, use CAtlTemporaryFile::Close.

Requirements

Header: atlfile.h

See Also

Reference

CAtlTemporaryFile Class

CAtlTemporaryFile::HandsOn

Other Resources

CAtlTemporaryFile Members