FreeRDP
win_dxgi.h
1 
19 #ifndef FREERDP_SERVER_SHADOW_WIN_DXGI_H
20 #define FREERDP_SERVER_SHADOW_WIN_DXGI_H
21 
22 #if _WIN32_WINNT >= 0x0602
23 //#define WITH_DXGI_1_2 1
24 #endif
25 
26 #ifdef WITH_DXGI_1_2
27 
28 #ifndef CINTERFACE
29 #define CINTERFACE
30 #endif
31 
32 #include <D3D11.h>
33 #include <dxgi1_2.h>
34 
35 #endif
36 
37 #include "win_shadow.h"
38 
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43 
44 #ifdef WITH_DXGI_1_2
45 
46  int win_shadow_dxgi_init(winShadowSubsystem* subsystem);
47  int win_shadow_dxgi_uninit(winShadowSubsystem* subsystem);
48 
49  int win_shadow_dxgi_fetch_frame_data(winShadowSubsystem* subsystem, BYTE** ppDstData,
50  int* pnDstStep, int x, int y, int width, int height);
51 
52  int win_shadow_dxgi_get_next_frame(winShadowSubsystem* subsystem);
53  int win_shadow_dxgi_get_invalid_region(winShadowSubsystem* subsystem);
54 
55 #endif
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* FREERDP_SERVER_SHADOW_WIN_DXGI_H */