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.

88 lines
2.4 KiB

  1. /****************************************************************************
  2. *
  3. * mcipionr.h
  4. *
  5. * Copyright (c) 1991-1993 Microsoft Corporation. All Rights Reserved.
  6. *
  7. ***************************************************************************/
  8. #define IDS_PRODUCTNAME 1
  9. #define IDS_COMMANDS 2
  10. #define MCIERR_PIONEER_ILLEGAL_FOR_CLV (MCIERR_CUSTOM_DRIVER_BASE)
  11. #define MCIERR_PIONEER_NOT_SPINNING (MCIERR_CUSTOM_DRIVER_BASE + 1)
  12. #define MCIERR_PIONEER_NO_CHAPTERS (MCIERR_CUSTOM_DRIVER_BASE + 2)
  13. #define MCIERR_PIONEER_NO_TIMERS (MCIERR_CUSTOM_DRIVER_BASE + 3)
  14. /* custom command support */
  15. #define VDISC_FLAG_ON 0x00000100L
  16. #define VDISC_FLAG_OFF 0x00000200L
  17. /* must use literals to satisfy the RC compiler */
  18. #define VDISC_INDEX 1000
  19. #define VDISC_KEYLOCK 1002
  20. #define VDISC_FIRST VDISC_INDEX
  21. #define VDISC_LAST VDISC_KEYLOCK
  22. /* Default baud rate */
  23. #define DEFAULT_BAUD_RATE 4800
  24. extern HINSTANCE hInstance;
  25. extern void FAR PASCAL pionGetComportAndRate(LPTSTR lpstrBuf, PUINT pPort,
  26. PUINT pRate);
  27. extern DWORD FAR PASCAL mciDriverEntry(UINT wDeviceID, UINT message,
  28. LPARAM lParam1, LPARAM lParam2);
  29. extern void pionSetBaudRate(UINT nPort, UINT nRate);
  30. #ifdef WIN32
  31. #define _LOADDS
  32. #else
  33. #define _LOADDS _loadds
  34. #endif /* WIN32 */
  35. /****************************************************************************
  36. Tasking
  37. ****************************************************************************/
  38. #ifdef WIN32
  39. #define EnterCrit(nPort) EnterCriticalSection(&comport[nPort].DeviceCritSec)
  40. #define LeaveCrit(nPort) LeaveCriticalSection(&comport[nPort].DeviceCritSec)
  41. UINT pionDriverYield(UINT wDeviceId, UINT nPort);
  42. #else
  43. #define EnterCrit(nPort) (TRUE)
  44. #define LeaveCrit(nPort) (TRUE)
  45. #define pionDriverYield(wDeviceId, nPort) mciDriverYield(wDeviceId)
  46. #endif /* WIN32 */
  47. /****************************************************************************
  48. Debug support
  49. ***************************************************************************/
  50. #ifndef WIN32
  51. #define OutputDebugStringA OutputDebugString
  52. #endif /* WIN32 */
  53. #if DBG
  54. #define DOUT(sz) (wDebugLevel != 0 ? OutputDebugStringA("\r\n"), OutputDebugStringA(sz), 0 : 0 )
  55. #define DOUTX(sz) (wDebugLevel != 0 ? OutputDebugStringA(sz), 0 : 0 )
  56. #else
  57. #define DOUT(sz) 0
  58. #define DOUTX(sz) 0
  59. #endif