Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/FileIO.h')
-rwxr-xr-xWindows/FileIO.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Windows/FileIO.h b/Windows/FileIO.h
index a8360c0c..36f69df7 100755
--- a/Windows/FileIO.h
+++ b/Windows/FileIO.h
@@ -1,7 +1,5 @@
// Windows/FileIO.h
-#pragma once
-
#ifndef __WINDOWS_FILEIO_H
#define __WINDOWS_FILEIO_H
@@ -67,23 +65,27 @@ public:
class COutFile: public CFileBase
{
- DWORD m_CreationDisposition;
+ // DWORD m_CreationDisposition;
public:
- COutFile(): m_CreationDisposition(CREATE_NEW){};
+ // COutFile(): m_CreationDisposition(CREATE_NEW){};
bool Open(LPCTSTR fileName, DWORD shareMode,
DWORD creationDisposition, DWORD flagsAndAttributes);
- bool Open(LPCTSTR fileName);
+ bool Open(LPCTSTR fileName, DWORD creationDisposition);
+ bool Create(LPCTSTR fileName, bool createAlways);
#ifndef _UNICODE
bool Open(LPCWSTR fileName, DWORD shareMode,
DWORD creationDisposition, DWORD flagsAndAttributes);
- bool Open(LPCWSTR fileName);
+ bool Open(LPCWSTR fileName, DWORD creationDisposition);
+ bool Create(LPCWSTR fileName, bool createAlways);
#endif
+ /*
void SetOpenCreationDisposition(DWORD creationDisposition)
{ m_CreationDisposition = creationDisposition; }
void SetOpenCreationDispositionCreateAlways()
{ m_CreationDisposition = CREATE_ALWAYS; }
+ */
bool SetTime(const FILETIME *creationTime,
const FILETIME *lastAccessTime, const FILETIME *lastWriteTime);