-
Notifications
You must be signed in to change notification settings - Fork 4
/
File64.h
46 lines (37 loc) · 1.34 KB
/
File64.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// File64.h: interface for the CFile64 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FILE64_H__26F9292D_8289_4D28_93D5_34484F7E6EFF__INCLUDED_)
#define AFX_FILE64_H__26F9292D_8289_4D28_93D5_34484F7E6EFF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct CFileStatus64
{
CTime m_ctime; // creation date/time of file
CTime m_mtime; // last modification date/time of file
CTime m_atime; // last access date/time of file
ULONGLONG m_size; // logical size of file in bytes
BYTE m_attribute; // logical OR of CFile::Attribute enum values
BYTE _m_padding; // pad the structure to a WORD
TCHAR m_szFullName[_MAX_PATH]; // absolute path name
#ifdef _DEBUG
void Dump(CDumpContext& dc) const;
#endif
};
class CFile64 : public CFile
{
public:
CFile64();
virtual ~CFile64();
// Attributes
ULONGLONG GetPosition();
// Overridables
virtual ULONGLONG Seek(LONGLONG lOff, UINT nFrom);
virtual void SetLength(ULONGLONG dwNewLen);
ULONGLONG GetLength() ;
virtual void LockRange(ULONGLONG dwPos, ULONGLONG dwCount);
virtual void UnlockRange(ULONGLONG dwPos, ULONGLONG dwCount);
static BOOL GetStatus(LPCTSTR lpszFileName, CFileStatus64& rStatus);
};
#endif // !defined(AFX_FILE64_H__26F9292D_8289_4D28_93D5_34484F7E6EFF__INCLUDED_)