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.

153 lines
3.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation 1993-1996
  4. //
  5. // File: unimdmp.h
  6. //
  7. // This file contains private modem structures and defines shared
  8. // between Unimodem components, and components that invoke the Unimodem
  9. // class installer.
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __UNIMDMP_H__
  13. #define __UNIMDMP_H__
  14. #include <unimodem.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #ifndef __ROVCOMM_H__
  19. #define MAX_BUF_SHORT 32
  20. #endif // __ROVCOMM_H__
  21. // Unattended install parameters
  22. // This structure is published in
  23. // sdk\inc\unimodem.h as UM_INSTALLPARAMS;
  24. // do not alter it
  25. typedef struct _tagInstallParams
  26. {
  27. DWORD Flags;
  28. TCHAR szPort[MAX_BUF_SHORT];
  29. TCHAR szInfName[MAX_PATH];
  30. TCHAR szInfSect[LINE_LEN];
  31. } INSTALLPARAMS, FAR *LPINSTALLPARAMS;
  32. // Unattended install flags;
  33. // published in sdk\inc\unimodem.h;
  34. // keep sinchronized with sdk\inc\unimodem.h
  35. #define MIPF_NT4_UNATTEND 0x1
  36. // Take the information about what modem to install
  37. // from the unattended.txt file
  38. #define MIPF_DRIVER_SELECTED 0x2
  39. // The modem driver is selected, just register
  40. // and install it
  41. #define MIPF_CLONE_MODEM 0x4
  42. // The (hdi, pdevinfo) the class installer is called for
  43. // has to be installed on aditional ports
  44. // This structure may be specified in
  45. // the SP_INSTALLWIZARD_DATA's PrivateData field.
  46. // It is published in sdk\inc\unimodem.h as
  47. // UM_INSTALL_WIZARD; do not alter it
  48. typedef struct tagMODEM_INSTALL_WIZARD
  49. {
  50. DWORD cbSize;
  51. DWORD Flags; // MIWF_ bit field
  52. DWORD ExitButton; // PSBTN_ value
  53. LPARAM PrivateData;
  54. INSTALLPARAMS InstallParams;
  55. } MODEM_INSTALL_WIZARD, * PMODEM_INSTALL_WIZARD;
  56. //
  57. // Private Exports from MODEMUI.DLL
  58. //
  59. DWORD
  60. APIENTRY
  61. UnimodemGetDefaultCommConfig(
  62. IN HKEY hKey,
  63. IN OUT LPCOMMCONFIG pcc,
  64. IN OUT LPDWORD pdwSize
  65. );
  66. typedef DWORD
  67. (*PFNUNIMODEMGETDEFAULTCOMMCONFIG)(
  68. IN HKEY hKey,
  69. IN OUT LPCOMMCONFIG pcc,
  70. IN OUT LPDWORD pdwSize
  71. );
  72. DWORD
  73. APIENTRY
  74. UnimodemDevConfigDialog(
  75. IN LPCTSTR pszFriendlyName,
  76. IN HWND hwndOwner,
  77. IN DWORD dwType, // One of UMDEVCFGTYPE_*
  78. IN DWORD dwFlags, // Reserved, must be 0
  79. IN void *pvConfigBlobIn,
  80. OUT void *pvConfigBlobOut,
  81. IN LPPROPSHEETPAGE pExtPages, OPTIONAL // PPages to add
  82. IN DWORD cExtPages
  83. );
  84. typedef DWORD
  85. (*PFNUNIMODEMDEVCONFIGDIALOG)(
  86. IN LPCTSTR,
  87. IN HWND,
  88. IN DWORD,
  89. IN DWORD,
  90. IN void *,
  91. OUT void *,
  92. IN LPPROPSHEETPAGE, OPTIONAL
  93. IN DWORD
  94. );
  95. DWORD
  96. APIENTRY
  97. UnimodemGetExtendedCaps(
  98. IN HKEY hKey,
  99. IN OUT LPDWORD pdwTotalSize,
  100. OUT MODEM_CONFIG_HEADER *pFirstObj // OPTIONAL
  101. );
  102. typedef DWORD
  103. (*PFNUNIMODEMGETEXTENDEDCAPS)(
  104. IN HKEY hKey,
  105. IN OUT MODEM_CONFIG_HEADER *pFirstObj,
  106. IN OUT LPDWORD pdwTotalSize
  107. );
  108. #define UMDEVCFGTYPE_COMM 0x1
  109. //
  110. // TAPI3 CSA TSP-MSP BLOB
  111. //
  112. typedef struct
  113. {
  114. DWORD dwSig; // Set to SIG_CSAMSPTSPBLOB
  115. #define SIG_CSATSPMSPBLOB 0x840cb29c
  116. DWORD dwTotalSize;
  117. DWORD dwCmd; // One of the CSATSPMSPCMD_ constants.
  118. #define CSATSPMSPCMD_CONNECTED 0x1
  119. #define CSATSPMSPCMD_DISCONNECTED 0x2
  120. GUID PermanentGuid;
  121. } CSATSPMSPBLOB;
  122. #ifdef __cplusplus
  123. }
  124. #endif
  125. #endif // __UNIMDMP_H__