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.

132 lines
2.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dvdprop.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef ___dvdprop_h___
  11. #define ___dvdprop_h___
  12. //
  13. // Defines for context sensitive help
  14. //
  15. #define IDH_DEVMGR_DVD_NOHELP ((DWORD)-1)
  16. #define IDH_DEVMGR_DVD_CURRENT 2003100
  17. #define IDH_DEVMGR_DVD_NEW 2003110
  18. #define IDH_DEVMGR_DVD_LIST 2003120
  19. //
  20. // PageInfo and Prototypes
  21. //
  22. typedef struct _PAGE_INFO {
  23. HDEVINFO deviceInfoSet;
  24. PSP_DEVINFO_DATA deviceInfoData;
  25. DVD_REGION regionData;
  26. ULONG newRegion;
  27. ULONG currentRegion;
  28. BOOL changesFailed;
  29. } PAGE_INFO, * PPAGE_INFO;
  30. PPAGE_INFO
  31. DvdCreatePageInfo(IN HDEVINFO deviceInfoSet,
  32. IN PSP_DEVINFO_DATA deviceInfoData);
  33. void
  34. DvdDestroyPageInfo(PPAGE_INFO * ppPageInfo);
  35. //
  36. // Function Prototypes
  37. //
  38. BOOL APIENTRY
  39. DvdPropPageProvider(LPVOID pinfo,
  40. LPFNADDPROPSHEETPAGE pfnAdd,
  41. LPARAM lParam);
  42. HPROPSHEETPAGE
  43. DvdCreatePropertyPage(PROPSHEETPAGE * ppsp,
  44. PPAGE_INFO ppi);
  45. UINT CALLBACK
  46. DvdDlgCallback(HWND hwnd,
  47. UINT uMsg,
  48. LPPROPSHEETPAGE ppsp);
  49. INT_PTR APIENTRY
  50. DvdDlgProc(IN HWND hDlg,
  51. IN UINT uMessage,
  52. IN WPARAM wParam,
  53. IN LPARAM lParam);
  54. BOOL
  55. DvdApplyChanges(PPAGE_INFO ppi,
  56. HWND hDlg);
  57. void
  58. DvdUpdateNewRegionBox (PPAGE_INFO ppi,
  59. HWND hDlg);
  60. ULONG
  61. DvdCountryToRegion (LPCTSTR Country);
  62. BOOL
  63. GetCurrentRpcData(
  64. PPAGE_INFO ppi,
  65. PDVD_REGION regionData
  66. );
  67. ULONG
  68. DvdRegionMaskToRegionNumber(
  69. UCHAR PlayMask
  70. );
  71. void
  72. DvdUpdateCurrentSettings (PPAGE_INFO ppi,
  73. HWND hDlg);
  74. HANDLE
  75. GetDeviceHandle (
  76. PPAGE_INFO ppi,
  77. DWORD desiredAccess
  78. );
  79. typedef struct _LCID_2_DVD_TABLE {
  80. DWORD Lcid;
  81. DWORD DvdRegion;
  82. } LCID_2_DVD_TABLE, *PLCID_2_DVD_TABLE;
  83. DWORD
  84. SystemLocale2DvdRegion (
  85. LCID Lcid
  86. );
  87. DWORD
  88. DvdClassInstaller(
  89. IN DI_FUNCTION InstallFunction,
  90. IN HDEVINFO DeviceInfoSet,
  91. IN PSP_DEVINFO_DATA DeviceInfoData OPTIONAL
  92. );
  93. BOOL
  94. DvdContextMenu(HWND HwndControl,
  95. WORD Xpos,
  96. WORD Ypos);
  97. void
  98. DvdHelp(HWND ParentHwnd,
  99. LPHELPINFO HelpInfo
  100. );
  101. #endif // ___dvdprop_h___