aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/win/BrigdeComStream.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-03 17:55:00 +0800
committercrupest <crupest@outlook.com>2022-02-03 17:55:00 +0800
commit5aca7b099c46a87a859f40110efce708200a4bc8 (patch)
tree76a0daef247ab2b2269eebdbbda10134f213d1ca /include/cru/common/platform/win/BrigdeComStream.hpp
parentd15172cfe1ac8558567c1b1c10c2e671b0d1f033 (diff)
downloadcru-5aca7b099c46a87a859f40110efce708200a4bc8.tar.gz
cru-5aca7b099c46a87a859f40110efce708200a4bc8.tar.bz2
cru-5aca7b099c46a87a859f40110efce708200a4bc8.zip
...
Diffstat (limited to 'include/cru/common/platform/win/BrigdeComStream.hpp')
-rw-r--r--include/cru/common/platform/win/BrigdeComStream.hpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/include/cru/common/platform/win/BrigdeComStream.hpp b/include/cru/common/platform/win/BrigdeComStream.hpp
deleted file mode 100644
index 38b75dae..00000000
--- a/include/cru/common/platform/win/BrigdeComStream.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#pragma once
-#include "../../PreConfig.hpp"
-#ifdef CRU_PLATFORM_WINDOWS
-
-#include "WinPreConfig.hpp"
-
-#include "../../io/Stream.hpp"
-
-#include <objidlbase.h>
-
-namespace cru::platform::win {
-class BridgeComStream : public IStream {
- public:
- explicit BridgeComStream(io::Stream* stream);
-
- CRU_DELETE_COPY(BridgeComStream)
- CRU_DELETE_MOVE(BridgeComStream)
-
- ~BridgeComStream();
-
- public:
- ULONG AddRef() override;
- ULONG Release() override;
- HRESULT QueryInterface(REFIID riid, void** ppvObject) override;
-
- HRESULT Read(void* pv, ULONG cb, ULONG* pcbRead) override;
- HRESULT Write(const void* pv, ULONG cb, ULONG* pcbWritten) override;
- HRESULT Seek(LARGE_INTEGER dlibMove, DWORD dwOrigin,
- ULARGE_INTEGER* plibNewPosition) override;
- HRESULT SetSize(ULARGE_INTEGER libNewSize) override;
- HRESULT CopyTo(IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead,
- ULARGE_INTEGER* pcbWritten) override;
- HRESULT Commit(DWORD grfCommitFlags) override;
- HRESULT Revert() override;
- HRESULT LockRegion(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb,
- DWORD dwLockType) override;
- HRESULT UnlockRegion(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb,
- DWORD dwLockType) override;
- HRESULT Stat(STATSTG* pstatstg, DWORD grfStatFlag) override;
- HRESULT Clone(IStream** ppstm) override;
-
- private:
- io::Stream* stream_;
- ULONG ref_count_;
-};
-} // namespace cru::platform::win
-
-#endif