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.

120 lines
3.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation 1993-1995
  4. //
  5. // File: modemp.h
  6. //
  7. // This files contains the private modem structures and defines shared
  8. // between Unimodem components.
  9. //
  10. //---------------------------------------------------------------------------
  11. #ifndef __MODEMP_H__
  12. #define __MODEMP_H__
  13. typedef DCB WIN32DCB;
  14. typedef DCB * LPWIN32DCB;
  15. #define COMMCONFIG_VERSION_1 1
  16. //------------------------------------------------------------------------
  17. //------------------------------------------------------------------------
  18. //
  19. // Registry forms of the MODEMDEVCAPS and MODEMSETTINGS structures.
  20. // These should match the ones in unimodem\mcx\internal.h.
  21. //
  22. // The portion of the MODEMDEVCAPS that is saved in the registry
  23. // as Properties
  24. typedef struct _RegDevCaps
  25. {
  26. DWORD dwDialOptions; // bitmap of supported values
  27. DWORD dwCallSetupFailTimer; // maximum in seconds
  28. DWORD dwInactivityTimeout; // maximum in the units specified in the InactivityScale value
  29. DWORD dwSpeakerVolume; // bitmap of supported values
  30. DWORD dwSpeakerMode; // bitmap of supported values
  31. DWORD dwModemOptions; // bitmap of supported values
  32. DWORD dwMaxDTERate; // maximum value in bit/s
  33. DWORD dwMaxDCERate; // maximum value in bit/s
  34. } REGDEVCAPS, FAR * LPREGDEVCAPS;
  35. // The portion of the MODEMSETTINGS that is saved in the registry
  36. // as Default
  37. typedef struct _RegDevSettings
  38. {
  39. DWORD dwCallSetupFailTimer; // seconds
  40. DWORD dwInactivityTimeout; // units specified in the InactivityScale value
  41. DWORD dwSpeakerVolume; // level
  42. DWORD dwSpeakerMode; // mode
  43. DWORD dwPreferredModemOptions; // bitmap
  44. } REGDEVSETTINGS, FAR * LPREGDEVSETTINGS;
  45. //
  46. // DeviceType defines
  47. //
  48. #define DT_NULL_MODEM 0
  49. #define DT_EXTERNAL_MODEM 1
  50. #define DT_INTERNAL_MODEM 2
  51. #define DT_PCMCIA_MODEM 3
  52. #define DT_PARALLEL_PORT 4
  53. #define DT_PARALLEL_MODEM 5
  54. //------------------------------------------------------------------------
  55. //------------------------------------------------------------------------
  56. #ifdef UNICODE
  57. #define drvCommConfigDialog drvCommConfigDialogW
  58. #define drvGetDefaultCommConfig drvGetDefaultCommConfigW
  59. #define drvSetDefaultCommConfig drvSetDefaultCommConfigW
  60. #else
  61. #define drvCommConfigDialog drvCommConfigDialogA
  62. #define drvGetDefaultCommConfig drvGetDefaultCommConfigA
  63. #define drvSetDefaultCommConfig drvSetDefaultCommConfigA
  64. #endif
  65. DWORD
  66. APIENTRY
  67. drvCommConfigDialog(
  68. IN LPCTSTR pszFriendlyName,
  69. IN HWND hwndOwner,
  70. IN OUT LPCOMMCONFIG pcc);
  71. DWORD
  72. APIENTRY
  73. drvGetDefaultCommConfig(
  74. IN LPCTSTR pszFriendlyName,
  75. IN LPCOMMCONFIG pcc,
  76. IN OUT LPDWORD pdwSize);
  77. DWORD
  78. APIENTRY
  79. drvSetDefaultCommConfig(
  80. IN LPTSTR pszFriendlyName,
  81. IN LPCOMMCONFIG pcc,
  82. IN DWORD dwSize);
  83. //------------------------------------------------------------------------
  84. //------------------------------------------------------------------------
  85. // These are the flags for MODEM_INSTALL_WIZARD
  86. #define MIWF_DEFAULT 0x00000000
  87. #define MIWF_INSET_WIZARD 0x00000001 // hwndWizardDlg must be owner's
  88. // wizard frame
  89. #define MIWF_BACKDOOR 0x00000002 // enter wizard thru last page
  90. // The ExitButton field can be:
  91. //
  92. // PSBTN_BACK
  93. // PSBTN_NEXT
  94. // PSBTN_FINISH
  95. // PSBTN_CANCEL
  96. #endif // __MODEMP_H__