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.

95 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: ideprop.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef ___ideprop_h___
  11. #define ___ideprop_h___
  12. #include "..\ide\inc\ideuser.h"
  13. //
  14. // Defines for context sensitive help
  15. //
  16. #define IDH_DEVMGR_IDE_NOHELP (DWORD)-1
  17. #define IDH_DEVMGR_IDE_MASTER_DEVICE_TYPE 2003130
  18. #define IDH_DEVMGR_IDE_MASTER_XFER_MODE 2003140
  19. #define IDH_DEVMGR_IDE_SLAVE_DEVICE_TYPE 2003150
  20. #define IDH_DEVMGR_IDE_SLAVE_XFER_MODE 2003160
  21. #define IDH_DEVMGR_IDE_MASTER_CURRENT_XFER_MODE 2003161
  22. #define IDH_DEVMGR_IDE_SLAVE_CURRENT_XFER_MODE 2003162
  23. #define UDMA_MODE6 (1 << 17)
  24. //
  25. // PageInfo and Prototypes
  26. //
  27. typedef struct _PAGE_INFO {
  28. HDEVINFO deviceInfoSet;
  29. PSP_DEVINFO_DATA deviceInfoData;
  30. HKEY hKeyDev;
  31. IDE_DEVICETYPE deviceType[2];
  32. IDE_DEVICETYPE currentDeviceType[2];
  33. ULONG currentTransferMode[2];
  34. ULONG transferModeAllowed[2];
  35. ULONG transferModeAllowedForAtapiDevice[2];
  36. } PAGE_INFO, * PPAGE_INFO;
  37. PPAGE_INFO
  38. IdeCreatePageInfo(IN HDEVINFO deviceInfoSet,
  39. IN PSP_DEVINFO_DATA deviceInfoData);
  40. void
  41. IdeDestroyPageInfo(PPAGE_INFO * ppPageInfo);
  42. //
  43. // Function Prototypes
  44. //
  45. BOOL APIENTRY
  46. IdePropPageProvider(LPVOID pinfo,
  47. LPFNADDPROPSHEETPAGE pfnAdd,
  48. LPARAM lParam);
  49. HPROPSHEETPAGE
  50. IdeCreatePropertyPage(PROPSHEETPAGE * ppsp,
  51. PPAGE_INFO ppi);
  52. UINT CALLBACK
  53. IdeDlgCallback(HWND hwnd,
  54. UINT uMsg,
  55. LPPROPSHEETPAGE ppsp);
  56. INT_PTR APIENTRY
  57. IdeDlgProc(IN HWND hDlg,
  58. IN UINT uMessage,
  59. IN WPARAM wParam,
  60. IN LPARAM lParam);
  61. void
  62. IdeApplyChanges(PPAGE_INFO ppi,
  63. HWND hDlg);
  64. void
  65. IdeUpdate (PPAGE_INFO ppi,
  66. HWND hDlg);
  67. BOOL
  68. IdeContextMenu(HWND HwndControl,
  69. WORD Xpos,
  70. WORD Ypos);
  71. void
  72. IdeHelp(HWND ParentHwnd,
  73. LPHELPINFO HelpInfo);
  74. #endif // ___ideprop_h___