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


CAtlTemporaryFile::Close

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

HRESULT Close(
   LPCTSTR szNewName = NULL 
) throw( );

Параметры

  • szNewName
    The name for the new file to store the contents of the temporary file in. If this argument is NULL, the contents of the temporary file are deleted.

Возвращаемое значение

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

Пример

See the example for CAtlTemporaryFile::CAtlTemporaryFile.

Требования

Header: atlfile.h

См. также

Основные понятия

CAtlTemporaryFile Class

CAtlTemporaryFile Members

CAtlTemporaryFile::HandsOff

CAtlTemporaryFile::Create