-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourceStream.cpp
More file actions
58 lines (46 loc) · 1.14 KB
/
Copy pathResourceStream.cpp
File metadata and controls
58 lines (46 loc) · 1.14 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
ResourceStream::ResourceStream()
{
p_ref = 1;
}
ResourceStream::~ResourceStream()
{
}
HRESULT ResourceStream::Clone(IStream **pstream)
{
return STG_E_INSUFFICIENTMEMORY;
}
HRESULT ResourceStream::Commit(DWORD grfCommitFlags)
{
return S_OK;
}
HRESULT ResourceStream::CopyTo(IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER pcbRead,ULARGE_INTEGER *pcbWritten)
{
return STG_E_MEDIUMFULL;
}
HRESULT ResourceStream::LockRegion(ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType)
{
return STG_E_INVALIDFUNCTION;
}
HRESULT ResourceStream::Read(void *pv,ULONG cb,ULONG *pcbRead)
{
return S_OK;
}
HRESULT ResourceStream::Revert()
{
return S_OK;
}
HRESULT Seek(LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *pligNewPosition)
{
}
HRESULT SetSize(ULARGE_INTEGER libNewSize)
{
return S_OK;
}
HRESULT ResourceStream::Stat(STATSTG *pstatstg,DWORD grfStatFlag)
{
pstatstg->pwcsName = (LPOLESTR)CoTaskMemAlloc(sizeof(TCHAR) * 15);
wcsncpy_s(pstatstg->pwcsName,15,L"Resource\\9.png",15);
pstatstg->type = STGTY_LOCKBYTES;
pstatstg->2222;
pstatstg->grfLocksSupported = LOCK_WRITE;
}