1
0

mldwm.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef NULLOSFT_MEDIALIBRARY_MS_DWM_HEADER
  2. #define NULLOSFT_MEDIALIBRARY_MS_DWM_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <windows.h>
  7. #ifndef WM_DWMCOMPOSITIONCHANGED
  8. #define WM_DWMCOMPOSITIONCHANGED 0x031E
  9. #define WM_DWMNCRENDERINGCHANGED 0x031F
  10. #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320
  11. #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321
  12. #endif
  13. typedef enum _DWMWINDOWATTRIBUTE {
  14. DWMWA_NCRENDERING_ENABLED = 1,
  15. DWMWA_NCRENDERING_POLICY,
  16. DWMWA_TRANSITIONS_FORCEDISABLED,
  17. DWMWA_ALLOW_NCPAINT,
  18. DWMWA_CAPTION_BUTTON_BOUNDS,
  19. DWMWA_NONCLIENT_RTL_LAYOUT,
  20. DWMWA_FORCE_ICONIC_REPRESENTATION,
  21. DWMWA_FLIP3D_POLICY,
  22. DWMWA_EXTENDED_FRAME_BOUNDS,
  23. DWMWA_LAST
  24. } DWMWINDOWATTRIBUTE;
  25. typedef enum _DWMNCRENDERINGPOLICY {
  26. DWMNCRP_USEWINDOWSTYLE,
  27. DWMNCRP_DISABLED,
  28. DWMNCRP_ENABLED,
  29. DWMNCRP_LAST
  30. } DWMNCRENDERINGPOLICY;
  31. #define E_MLDWM_NOTLOADED MAKE_HRESULT(0, FACILITY_ITF, 0x0201) // library not loaded (you just need to call MlDwm_LoadLibrary)
  32. #define E_MLDWM_LOADFAILED MAKE_HRESULT(1, FACILITY_ITF, 0x0202) // library load failed (probably not vista?)
  33. #define E_MLDWM_BADFUNCTION MAKE_HRESULT(1, FACILITY_ITF, 0x0203) // function was not loaded
  34. HRESULT MlDwm_LoadLibrary(void);
  35. HRESULT MlDwm_GetLoadResult(void);
  36. HRESULT MlDwm_SetWindowAttribute(HWND hwnd, DWORD dwAttribute, LPCVOID pvAttribute, DWORD cbAttribute);
  37. HRESULT MlDwm_IsCompositionEnabled(BOOL *pfEnabled);
  38. #endif // NULLOSFT_MEDIALIBRARY_MS_DWM_HEADER