diff --git a/SilentPatchSA/AudioHardwareSA.h b/SilentPatchSA/AudioHardwareSA.h index c0a0979..93d250b 100644 --- a/SilentPatchSA/AudioHardwareSA.h +++ b/SilentPatchSA/AudioHardwareSA.h @@ -62,26 +62,26 @@ public: inline HANDLE GetFile() const { return hHandle; } - virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject); - virtual ULONG STDMETHODCALLTYPE AddRef(void); - virtual ULONG STDMETHODCALLTYPE Release(void); + virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject) override = 0; + virtual ULONG STDMETHODCALLTYPE AddRef(void) override = 0; + virtual ULONG STDMETHODCALLTYPE Release(void) override = 0; // ISequentialStream Interface public: - virtual HRESULT STDMETHODCALLTYPE Read(void* pv, ULONG cb, ULONG* pcbRead); - virtual HRESULT STDMETHODCALLTYPE Write(void const* pv, ULONG cb, ULONG* pcbWritten); + virtual HRESULT STDMETHODCALLTYPE Read(void* pv, ULONG cb, ULONG* pcbRead) override = 0; + virtual HRESULT STDMETHODCALLTYPE Write(void const* pv, ULONG cb, ULONG* pcbWritten) override = 0; // IStream Interface public: - virtual HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER); - virtual HRESULT STDMETHODCALLTYPE CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*) ; - virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); - virtual HRESULT STDMETHODCALLTYPE Revert(void); - virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD); - virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD); - virtual HRESULT STDMETHODCALLTYPE Clone(IStream **); - virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER* lpNewFilePointer); - virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg, DWORD grfStatFlag); + virtual HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER) override = 0; + virtual HRESULT STDMETHODCALLTYPE CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*) override = 0; + virtual HRESULT STDMETHODCALLTYPE Commit(DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE Revert(void) override = 0; + virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE Clone(IStream **) override = 0; + virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER* lpNewFilePointer) override = 0; + virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg, DWORD grfStatFlag) override = 0; public: // Custom methods @@ -139,26 +139,26 @@ public: inline HANDLE GetFile() const { return hHandle; } - virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject); - virtual ULONG STDMETHODCALLTYPE AddRef(void); - virtual ULONG STDMETHODCALLTYPE Release(void); + virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject) override = 0; + virtual ULONG STDMETHODCALLTYPE AddRef(void) override = 0; + virtual ULONG STDMETHODCALLTYPE Release(void) override = 0; // ISequentialStream Interface public: - virtual HRESULT STDMETHODCALLTYPE Read(void* pv, ULONG cb, ULONG* pcbRead); - virtual HRESULT STDMETHODCALLTYPE Write(void const* pv, ULONG cb, ULONG* pcbWritten); + virtual HRESULT STDMETHODCALLTYPE Read(void* pv, ULONG cb, ULONG* pcbRead) override = 0; + virtual HRESULT STDMETHODCALLTYPE Write(void const* pv, ULONG cb, ULONG* pcbWritten) override = 0; // IStream Interface public: - virtual HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER); - virtual HRESULT STDMETHODCALLTYPE CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*) ; - virtual HRESULT STDMETHODCALLTYPE Commit(DWORD); - virtual HRESULT STDMETHODCALLTYPE Revert(void); - virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD); - virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD); - virtual HRESULT STDMETHODCALLTYPE Clone(IStream **); - virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER* lpNewFilePointer); - virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg, DWORD grfStatFlag); + virtual HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER) override = 0; + virtual HRESULT STDMETHODCALLTYPE CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*) override = 0; + virtual HRESULT STDMETHODCALLTYPE Commit(DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE Revert(void) override = 0; + virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, DWORD) override = 0; + virtual HRESULT STDMETHODCALLTYPE Clone(IStream **) override = 0; + virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER* lpNewFilePointer) override = 0; + virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg, DWORD grfStatFlag) override = 0; public: // Custom methods