Source code of Windows XP (NT5)
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.

91 lines
3.5 KiB

  1. //===========================================================================
  2. // dmtcfg.h
  3. //
  4. // History:
  5. // 08/20/1999 - davidkl - created
  6. //===========================================================================
  7. #ifndef _DMTCFG_H
  8. #define _DMTCFG_H
  9. //---------------------------------------------------------------------------
  10. // property sheet "Apply" button ID
  11. #define IDC_PS_APPLY 0x3021
  12. //---------------------------------------------------------------------------
  13. // prototypes
  14. HRESULT dmtcfgCreatePropertySheet(HINSTANCE hinst,
  15. HWND hwndParent,
  16. LPSTR szSelectedGenre,
  17. DMTGENRE_NODE *pGenreList,
  18. DMTDEVICE_NODE *pDeviceNode,
  19. BOOL fStartWithDefaults);
  20. BOOL CALLBACK dmtcfgDlgProc(HWND hwnd,
  21. UINT uMsg,
  22. WPARAM wparam,
  23. LPARAM lparam);
  24. BOOL dmtcfgOnInitDialog(HWND hwnd,
  25. HWND hwndFocus,
  26. LPARAM lparam);
  27. BOOL dmtcfgOnCommand(HWND hwnd,
  28. WORD wId,
  29. HWND hwndCtrl,
  30. WORD wNotifyCode);
  31. BOOL dmtcfgOnNotify(HWND hwnd,
  32. PSHNOTIFY *pNotify);
  33. BOOL dmtcfgOnUpdateLists(HWND hwnd);
  34. BOOL dmtcfgOnFileSave(HWND hwnd);
  35. BOOL CALLBACK dmtcfgSourceDlgProc(HWND hwnd,
  36. UINT uMsg,
  37. WPARAM wparam,
  38. LPARAM lparam);
  39. BOOL dmtcfgSourceOnInitDialog(HWND hwnd,
  40. HWND hwndFocus,
  41. LPARAM lparam);
  42. BOOL dmtcfgSourceOnCommand(HWND hwnd,
  43. WORD wId,
  44. HWND hwndCtrl,
  45. WORD wNotifyCode);
  46. BOOL dmtcfgSourceOnUpdateLists(HWND hwnd);
  47. HRESULT dmtcfgCreateGenreList(DMTGENRE_NODE **ppdmtgList);
  48. HRESULT dmtcfgFreeGenreList(DMTGENRE_NODE **ppdmtgList);
  49. HRESULT dmtcfgCreateSubGenreList(LPSTR szGenre,
  50. DMTSUBGENRE_NODE **ppdmtsgList);
  51. HRESULT dmtcfgFreeSubGenreList(DMTSUBGENRE_NODE **ppdmtsgList);
  52. HRESULT dmtcfgCreateActionList(LPSTR szGenreSubgenre,
  53. DMTACTION_NODE **ppdmtaList);
  54. HRESULT dmtcfgFreeActionList(DMTACTION_NODE **ppdmtaList);
  55. HRESULT dmtcfgCreateMappingList(DMTDEVICE_NODE *pDevice,
  56. DMTACTION_NODE *pActions,
  57. DMTMAPPING_NODE **ppdmtmList);
  58. HRESULT dmtcfgFreeMappingList(DMTMAPPING_NODE **ppdmtmList);
  59. HRESULT dmtcfgCreateAllMappingLists(DMT_APPINFO *pdmtai);
  60. HRESULT dmtcfgFreeAllMappingLists(DMTGENRE_NODE *pdmtgList);
  61. HRESULT dmtcfgMapAction(HWND hwnd,
  62. REFGUID guidInstance,
  63. DIACTIONA *pdia,
  64. UINT uActions);
  65. HRESULT dmtcfgUnmapAction(HWND hwnd,
  66. DIACTIONA *pdia,
  67. UINT uActions);
  68. HRESULT dmtcfgUnmapAllActions(HWND hwnd,
  69. DIACTIONA *pdia,
  70. UINT uActions);
  71. BOOL dmtcfgIsControlMapped(HWND hwnd,
  72. DIACTIONA *pdia,
  73. UINT uActions);
  74. BOOL dmtcfgAreAnyControlsMapped(HWND hwnd,
  75. DIACTIONA *pdia,
  76. UINT uActions);
  77. HRESULT dmtcfgGetGenreGroupName(PSTR szGenreName,
  78. PSTR szGenreGroupName);
  79. //---------------------------------------------------------------------------
  80. #endif // _DMTCFG_H