Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.9 KiB

  1. //
  2. // New message IDs
  3. //
  4. #define MSG_DSP_SETUP_MESSAGE WM_USER + 0x200
  5. #define SZ_REBOOT_NECESSARY TEXT("System\\CurrentControlSet\\Control\\GraphicsDrivers\\RebootNecessary")
  6. #define SZ_INVALID_DISPLAY TEXT("System\\CurrentControlSet\\Control\\GraphicsDrivers\\InvalidDisplay")
  7. #define SZ_DETECT_DISPLAY TEXT("System\\CurrentControlSet\\Control\\GraphicsDrivers\\DetectDisplay")
  8. #define SZ_NEW_DISPLAY TEXT("System\\CurrentControlSet\\Control\\GraphicsDrivers\\NewDisplay")
  9. #define SZ_DISPLAY_4BPP_MODES TEXT("System\\CurrentControlSet\\Control\\GraphicsDrivers\\Display4BppModes")
  10. #define SZ_VIDEO TEXT("Video")
  11. #define SZ_FONTDPI TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\FontDPI")
  12. #define SZ_FONTDPI_PROF TEXT("SYSTEM\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts")
  13. #define SZ_LOGPIXELS TEXT("LogPixels")
  14. #define SZ_DEVICEDESCRIPTION TEXT("Device Description")
  15. #define SZ_INSTALLEDDRIVERS TEXT("InstalledDisplayDrivers")
  16. #define SZ_SERVICES TEXT("\\REGISTRY\\MACHINE\\SYSTEM\\CurrentControlSet\\Services\\")
  17. #define SZ_BACKBACKDOT TEXT("\\\\.\\")
  18. #define SZ_DOTSYS TEXT(".sys")
  19. #define SZ_DOTDLL TEXT(".dll")
  20. #define SZ_FILE_SEPARATOR TEXT(", ")
  21. #define SZ_WINDOWMETRICS TEXT("Control Panel\\Desktop\\WindowMetrics")
  22. #define SZ_APPLIEDDPI TEXT("AppliedDPI")
  23. #define SZ_CONTROLPANEL TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Control Panel")
  24. #define SZ_ORIGINALDPI TEXT("OriginalDPI")
  25. //==========================================================================
  26. // Typedefs
  27. //==========================================================================
  28. extern HWND ghwndPropSheet;
  29. extern const TCHAR g_szNULL[];
  30. #define CDPI_NORMAL 96 // Arbitrarily, 96dpi is "Normal"
  31. // information about the monitor bitmap
  32. // x, y, dx, dy define the size of the "screen" part of the bitmap
  33. // the RGB is the color of the screen's desktop
  34. // these numbers are VERY hard-coded to a monitor bitmap
  35. #define MON_X 16
  36. #define MON_Y 17
  37. #define MON_DX 152
  38. #define MON_DY 112
  39. #define MON_W 184
  40. #define MON_H 170
  41. #define MON_RGB RGB(0, 128, 128)
  42. #define MON_TRAY 8
  43. INT_PTR CALLBACK GeneralPageProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
  44. BOOL CALLBACK _AddDisplayPropSheetPage(HPROPSHEETPAGE hpage, LPARAM lParam);
  45. void AddFakeSettingsPage(IThemeUIPages *pThemeUI, PROPSHEETHEADER * ppsh);
  46. INT_PTR CALLBACK MultiMonitorDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  47. int ComputeNumberOfDisplayDevices();
  48. int FmtMessageBox(HWND hwnd, UINT fuStyle, DWORD dwTitleID, DWORD dwTextID);
  49. HBITMAP FAR LoadMonitorBitmap( BOOL bFillDesktop );
  50. int DisplaySaveSettings(PVOID pContext, HWND hwnd);