Changeset 30483 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispMp.h
- Timestamp:
- Jun 28, 2010 7:00:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispMp.h
r30464 r30483 22 22 #include "../../Miniport/wddm/VBoxVideoIf.h" 23 23 24 HRESULT vboxDispMpEnable();25 HRESULT vboxDispMpDisable();26 27 24 typedef struct VBOXDISPMP_REGIONS 28 25 { … … 31 28 } VBOXDISPMP_REGIONS, *PVBOXDISPMP_REGIONS; 32 29 33 /* 34 * the VBOXDISPMP_REGIONS::pRegions returned is valid until the next vboxDispMpGetRegions call or vboxDispMpDisable call 30 typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_ENABLEEVENTS(); 31 typedef FNVBOXDISPMP_ENABLEEVENTS *PFNVBOXDISPMP_ENABLEEVENTS; 32 33 typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_DISABLEEVENTS(); 34 typedef FNVBOXDISPMP_DISABLEEVENTS *PFNVBOXDISPMP_DISABLEEVENTS; 35 36 typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_DISABLEEVENTS(); 37 typedef FNVBOXDISPMP_DISABLEEVENTS *PFNVBOXDISPMP_DISABLEEVENTS; 38 39 typedef DECLCALLBACK(HRESULT) FNVBOXDISPMP_GETREGIONS(PVBOXDISPMP_REGIONS pRegions, DWORD dwMilliseconds); 40 typedef FNVBOXDISPMP_GETREGIONS *PFNVBOXDISPMP_GETREGIONS; 41 42 typedef struct VBOXDISPMP_CALLBACKS 43 { 44 PFNVBOXDISPMP_ENABLEEVENTS pfnEnableEvents; 45 PFNVBOXDISPMP_DISABLEEVENTS pfnDisableEvents; 46 /** 47 * if events are enabled - blocks until dirty region is available or timeout occurs 48 * in the former case S_OK is returned on event, in the latter case WAIT_TIMEOUT is returned 49 * if events are disabled - returns S_FALSE 50 */ 51 PFNVBOXDISPMP_GETREGIONS pfnGetRegions; 52 } VBOXDISPMP_CALLBACKS, *PVBOXDISPMP_CALLBACKS; 53 54 /** @def VBOXNETCFGWIN_DECL 55 * The usual declaration wrapper. 35 56 */ 36 HRESULT vboxDispMpGetRegions(PVBOXDISPMP_REGIONS pRegions, DWORD dwMilliseconds); 57 58 /* enable this in case we include this in a dll*/ 59 # ifdef VBOXWDDMDISP 60 # define VBOXDISPMP_DECL(_type) DECLEXPORT(_type) 61 # else 62 # define VBOXDISPMP_DECL(_type) DECLIMPORT(_type) 63 # endif 64 65 #define VBOXDISPMP_IFVERSION 1 66 #define VBOXDISPMP_VERSION (VBOXVIDEOIF_VERSION | (VBOXDISPMP_IFVERSION < 16)) 67 /** 68 * VBoxDispMpGetCallbacks export 69 * 70 * @param u32Version - must be set to VBOXDISPMP_VERSION 71 * @param pCallbacks - callbacks structure 72 */ 73 typedef VBOXDISPMP_DECL(HRESULT) FNVBOXDISPMP_GETCALLBACKS(uint32_t u32Version, PVBOXDISPMP_CALLBACKS pCallbacks); 74 typedef FNVBOXDISPMP_GETCALLBACKS *PFNVBOXDISPMP_GETCALLBACKS; 37 75 38 76 #endif /* #ifndef ___VBoxDispMp_h___ */
Note:
See TracChangeset
for help on using the changeset viewer.