#pragma once #include #include #include #define THROW(error) throw exception(error, __FILE__, __LINE__) #define ThrowIfFailed(result) \ {\ if (result != S_OK) \ {\ THROW(result);\ }\ } //#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), static_cast(ppType)