-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIH.File.cpp
More file actions
66 lines (59 loc) · 1.53 KB
/
IH.File.cpp
File metadata and controls
66 lines (59 loc) · 1.53 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "IH.File.h"
#include "IH.Loader.h"
bool IHFileClass::OpenEx(const char* pFileName, FileAccessMode access)
{
this->SetFileName(pFileName);
return this->Open(access);
}
void IHFileClass::CDCheck(DWORD errorCode, bool bUnk, const char* pMethodName)
{
//ERROR if(errorCode != 0)
}
BOOL IHReadOnlyFileClass::CreateFile()
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHReadOnlyFileClass::CreateFile");
//ERROR
return FALSE;
}
BOOL IHReadOnlyFileClass::DeleteFile()
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHReadOnlyFileClass::DeleteFile");
//ERROR
return FALSE;
}
int IHReadOnlyFileClass::WriteBytes(void* pBuffer, int nNumBytes)
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHReadOnlyFileClass::WriteBytes");
//ERROR
return 0;
}
int IHInputStreamClass::Seek(int offset, FileSeekMode seek)
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHInputStreamClass::Seek");
//ERROR
return 0;
}
int IHInputStreamClass::GetFileSize()
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHInputStreamClass");
//ERROR
return 0;
}
int IHWriteOnlyFileClass::ReadBytes(void* pBuffer, int nNumBytes) //Returns number of bytes read.
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHWriteOnlyFileClass::ReadBytes");
//ERROR
return 0;
}
int IHOutputStreamClass::Seek(int offset, FileSeekMode seek)
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHOutputStreamClass::Seek");
//ERROR
return 0;
}
int IHOutputStreamClass::GetFileSize()
{
CDCheck(ERROR_NOT_SUPPORTED, false, "IHOutputStreamClass::GetFileSize");
//ERROR
return 0;
}