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.

290 lines
7.2 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  4. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
  5. // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR
  6. // A PARTICULAR PURPOSE.
  7. //
  8. // Copyright (C) 1993 - 1997 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // mmcaps.h
  13. //
  14. // Description:
  15. //
  16. //
  17. // History:
  18. // 11/ 8/92
  19. //
  20. //==========================================================================;
  21. //
  22. // NOTE! we keep a copy of MMREG.H in this project so we can update
  23. // things by using 'diff'
  24. //
  25. #include "mmreg.h"
  26. #include "zyztlb.h"
  27. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  28. //
  29. // Application Version Information:
  30. //
  31. //
  32. //
  33. //
  34. // NOTE! all string resources that will be used in app.rcv for the
  35. // version resource information *MUST* have an explicit \0 terminator!
  36. //
  37. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  38. #define APP_VERSION_MAJOR 4
  39. #define APP_VERSION_MINOR 0
  40. #define APP_VERSION_BUILD 0
  41. #ifdef UNICODE
  42. #define APP_VERSION_STRING_RC "Version 4.00 (Unicode Enabled)\0"
  43. #else
  44. #define APP_VERSION_STRING_RC "Version 4.00\0"
  45. #endif
  46. #ifdef WIN32
  47. #define APP_VERSION_NAME_RC "mmcaps32.exe\0"
  48. #else
  49. #define APP_VERSION_NAME_RC "mmcaps16.exe\0"
  50. #endif
  51. #define APP_VERSION_COMPANYNAME_RC "Microsoft Corporation\0"
  52. #define APP_VERSION_COPYRIGHT_RC "Copyright \251 Microsoft Corp. 1992-1995\0"
  53. #ifdef WIN32
  54. #if (defined(_X86_)) || (defined(i386))
  55. #define APP_VERSION_PRODUCTNAME_RC "Microsoft Windows NT (i386)\0"
  56. #endif
  57. #if (defined(_MIPS_)) || (defined(MIPS))
  58. #define APP_VERSION_PRODUCTNAME_RC "Microsoft Windows NT (MIPS)\0"
  59. #endif
  60. #if (defined(_ALPHA_)) || (defined(ALPHA))
  61. #define APP_VERSION_PRODUCTNAME_RC "Microsoft Windows NT (Alpha)\0"
  62. #endif
  63. #ifndef APP_VERSION_PRODUCTNAME_RC
  64. #define APP_VERSION_PRODUCTNAME_RC "Microsoft Windows NT\0"
  65. #endif
  66. #else
  67. #define APP_VERSION_PRODUCTNAME_RC "Microsoft Windows\0"
  68. #endif
  69. #ifdef DEBUG
  70. #define APP_VERSION_DESCRIPTION_RC "Multimedia Device Capabilities (debug)\0"
  71. #else
  72. #define APP_VERSION_DESCRIPTION_RC "Multimedia Device Capabilities\0"
  73. #endif
  74. //
  75. // Unicode versions (if UNICODE is defined)... the resource compiler
  76. // cannot deal with the TEXT() macro.
  77. //
  78. #define APP_VERSION_STRING TEXT(APP_VERSION_STRING_RC)
  79. #define APP_VERSION_NAME TEXT(APP_VERSION_NAME_RC)
  80. #define APP_VERSION_COMPANYNAME TEXT(APP_VERSION_COMPANYNAME_RC)
  81. #define APP_VERSION_COPYRIGHT TEXT(APP_VERSION_COPYRIGHT_RC)
  82. #define APP_VERSION_PRODUCTNAME TEXT(APP_VERSION_PRODUCTNAME_RC)
  83. #define APP_VERSION_DESCRIPTION TEXT(APP_VERSION_DESCRIPTION_RC)
  84. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  85. //
  86. // misc defines for misc sizes and things...
  87. //
  88. //
  89. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  90. //
  91. // bilingual. this allows the same identifier to be used in resource files
  92. // and code without having to decorate the id in your code.
  93. //
  94. #ifdef RC_INVOKED
  95. #define RCID(id) id
  96. #else
  97. #define RCID(id) MAKEINTRESOURCE(id)
  98. #endif
  99. //
  100. // misc. defines
  101. //
  102. #define APP_MAX_APP_NAME_CHARS 30
  103. #define APP_MAX_APP_NAME_BYTES (APP_MAX_APP_NAME_CHARS * sizeof(TCHAR))
  104. #define APP_MAX_STRING_RC_CHARS 512
  105. #define APP_MAX_STRING_RC_BYTES (APP_MAX_STRING_RC_CHARS * sizeof(TCHAR))
  106. #define APP_MAX_STRING_ERROR_CHARS 512
  107. #define APP_MAX_STRING_ERROR_BYTES (APP_MAX_STRING_ERROR_CHARS * sizeof(TCHAR))
  108. #define APP_WINDOW_XOFFSET CW_USEDEFAULT
  109. #define APP_WINDOW_YOFFSET CW_USEDEFAULT
  110. #define APP_WINDOW_WIDTH 500 //CW_USEDEFAULT
  111. #define APP_WINDOW_HEIGHT 300 //CW_USEDEFAULT
  112. //
  113. //
  114. //
  115. //
  116. #define MMCAPS_MAX_STRING_MID_CHARS 80
  117. #define MMCAPS_MAX_STRING_MID_BYTES (MMCAPS_MAX_STRING_MID_CHARS * sizeof(TCHAR))
  118. #define MMCAPS_MAX_STRING_PID_CHARS 128
  119. #define MMCAPS_MAX_STRING_PID_BYTES (MMCAPS_MAX_STRING_PID_CHARS * sizeof(TCHAR))
  120. //
  121. // max for pid or mid plus some
  122. //
  123. #define MMCAPS_MAX_STRING_MIDPID_CHARS 132
  124. //
  125. // resource defines...
  126. //
  127. #define ICON_APP RCID(10)
  128. #define ACCEL_APP RCID(15)
  129. //
  130. // the application menu...
  131. //
  132. //
  133. #define MENU_APP RCID(20)
  134. #define APP_MENU_ITEM_FILE 0
  135. #define IDM_FILE_FONT 1000
  136. #define IDM_FILE_ABOUT 1009
  137. #define IDM_FILE_EXIT 1010
  138. #define APP_MENU_ITEM_DRIVERS 1
  139. #define IDM_DRIVERS_LOWLEVEL 1050
  140. #define IDM_DRIVERS_MCI 1051
  141. #define IDM_DRIVERS_ACM 1052
  142. #define IDM_DRIVERS_VIDEO 1053
  143. #define IDM_DRIVERS_DRIVERS 1054
  144. #define IDM_UPDATE 1100
  145. //
  146. //
  147. //
  148. #define MMCAPS_DRIVERTYPE_LOWLEVEL IDM_DRIVERS_LOWLEVEL
  149. #define MMCAPS_DRIVERTYPE_MCI IDM_DRIVERS_MCI
  150. #define MMCAPS_DRIVERTYPE_ACM IDM_DRIVERS_ACM
  151. #define MMCAPS_DRIVERTYPE_VIDEO IDM_DRIVERS_VIDEO
  152. #define MMCAPS_DRIVERTYPE_DRIVERS IDM_DRIVERS_DRIVERS
  153. //
  154. // the main window control id's...
  155. //
  156. #define IDD_APP_LIST_DEVICES 100
  157. //
  158. // misc dlg boxes...
  159. //
  160. #define DLG_ABOUT RCID(50)
  161. #define IDD_ABOUT_VERSION_OS 100
  162. #define IDD_ABOUT_VERSION_PLATFORM 101
  163. #define IDD_ABOUT_VERSION_MMSYSTEM 150
  164. #define DLG_DEVCAPS RCID(55)
  165. #define IDD_DEVCAPS_EDIT_DETAILS 100
  166. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  167. //
  168. // string resources
  169. //
  170. //
  171. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  172. #define IDS_APP_NAME 100
  173. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  174. //
  175. // Public function prototypes
  176. //
  177. //
  178. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  179. //
  180. // mmcaps.c
  181. //
  182. //
  183. //
  184. int FNCGLOBAL AppMEditPrintF
  185. (
  186. HWND hedit,
  187. PCTSTR pszFormat,
  188. ...
  189. );
  190. //
  191. // midspids.c
  192. //
  193. //
  194. //
  195. BOOL FNGLOBAL MMCapsMidAndPid
  196. (
  197. UINT uMid,
  198. PTSTR pszMid,
  199. UINT uPid,
  200. PTSTR pszPid
  201. );
  202. //
  203. //
  204. //
  205. //
  206. BOOL FNGLOBAL MMCapsEnumerateLowLevel(PZYZTABBEDLISTBOX ptlb, BOOL fComplete);
  207. BOOL FNGLOBAL MMCapsEnumerateMCI(PZYZTABBEDLISTBOX ptlb, BOOL fComplete);
  208. BOOL FNGLOBAL MMCapsEnumerateACM(PZYZTABBEDLISTBOX ptlb, BOOL fComplete);
  209. BOOL FNGLOBAL MMCapsEnumerateVideo(PZYZTABBEDLISTBOX ptlb, BOOL fComplete);
  210. BOOL FNGLOBAL MMCapsEnumerateDrivers(PZYZTABBEDLISTBOX ptlb, BOOL fComplete);
  211. BOOL FNGLOBAL MMCapsDetailLowLevel(HWND hedit, LPARAM lParam);
  212. BOOL FNGLOBAL MMCapsDetailMCI(HWND hedit, LPARAM lParam);
  213. BOOL FNGLOBAL MMCapsDetailACM(HWND hedit, LPARAM lParam);
  214. BOOL FNGLOBAL MMCapsDetailVideo(HWND hedit, LPARAM lParam);
  215. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  216. //
  217. // global variables, etc.
  218. //
  219. //
  220. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  221. extern HINSTANCE ghinst;
  222. extern TCHAR gszAppSection[];
  223. extern TCHAR gszNull[];
  224. extern TCHAR gszAppName[APP_MAX_APP_NAME_CHARS];
  225. //
  226. //
  227. //
  228. extern TCHAR gszUnknown[];
  229. extern TCHAR gszNotSpecified[];