mirror of
https://github.com/solemnwarning/directplay-lite
synced 2024-12-30 16:45:37 +01:00
23 lines
437 B
C++
23 lines
437 B
C++
|
#ifndef DPLITE_COMAPIEXCEPTION_HPP
|
||
|
#define DPLITE_COMAPIEXCEPTION_HPP
|
||
|
|
||
|
#include <winsock2.h>
|
||
|
#include <exception>
|
||
|
#include <windows.h>
|
||
|
|
||
|
class COMAPIException: public std::exception
|
||
|
{
|
||
|
private:
|
||
|
const HRESULT hr;
|
||
|
char what_s[64];
|
||
|
|
||
|
public:
|
||
|
COMAPIException(HRESULT result);
|
||
|
virtual ~COMAPIException();
|
||
|
|
||
|
HRESULT result() const noexcept;
|
||
|
virtual const char *what() const noexcept;
|
||
|
};
|
||
|
|
||
|
#endif /* !DPLITE_COMAPIEXCEPTION_HPP */
|