|
|
|
@ -23,6 +23,32 @@
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#ifdef DXGI_STATUS_OCCLUDED
|
|
|
|
|
#undef DXGI_STATUS_OCCLUDED
|
|
|
|
|
#undef DXGI_STATUS_CLIPPED
|
|
|
|
|
#undef DXGI_STATUS_NO_REDIRECTION
|
|
|
|
|
#undef DXGI_STATUS_NO_DESKTOP_ACCESS
|
|
|
|
|
#undef DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE
|
|
|
|
|
#undef DXGI_STATUS_MODE_CHANGED
|
|
|
|
|
#undef DXGI_STATUS_MODE_CHANGE_IN_PROGRESS
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef DXGI_ERROR_INVALID_CALL
|
|
|
|
|
#undef DXGI_ERROR_INVALID_CALL
|
|
|
|
|
#undef DXGI_ERROR_NOT_FOUND
|
|
|
|
|
#undef DXGI_ERROR_MORE_DATA
|
|
|
|
|
#undef DXGI_ERROR_UNSUPPORTED
|
|
|
|
|
#undef DXGI_ERROR_DEVICE_REMOVED
|
|
|
|
|
#undef DXGI_ERROR_DEVICE_HUNG
|
|
|
|
|
#undef DXGI_ERROR_DEVICE_RESET
|
|
|
|
|
#undef DXGI_ERROR_WAS_STILL_DRAWING
|
|
|
|
|
#undef DXGI_ERROR_FRAME_STATISTICS_DISJOINT
|
|
|
|
|
#undef DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE
|
|
|
|
|
#undef DXGI_ERROR_DRIVER_INTERNAL_ERROR
|
|
|
|
|
#undef DXGI_ERROR_NONEXCLUSIVE
|
|
|
|
|
#undef DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
|
|
|
|
|
#undef DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED
|
|
|
|
|
#undef DXGI_ERROR_REMOTE_OUTOFMEMORY
|
|
|
|
|
#endif
|
|
|
|
|
#include <dxgi.h>
|
|
|
|
|
#include <initguid.h>
|
|
|
|
|
#include <CGuid.h>
|
|
|
|
|