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.

141 lines
2.9 KiB

  1. /* Copyright (c) 1996, Microsoft Corporation, all rights reserved
  2. **
  3. ** tapiutil.h
  4. ** TAPI helper routines
  5. ** Public header
  6. **
  7. ** 06/18/95 Steve Cobb
  8. */
  9. #ifndef _TAPIUTIL_H_
  10. #define _TAPIUTIL_H_
  11. #include <tapi.h>
  12. /*----------------------------------------------------------------------------
  13. ** Datatypes
  14. **----------------------------------------------------------------------------
  15. */
  16. /* Information about a TAPI location. See GetLocationInfo.
  17. */
  18. #define LOCATION struct tagLOCATION
  19. LOCATION
  20. {
  21. TCHAR* pszName;
  22. DWORD dwId;
  23. };
  24. /* Information about a TAPI country. See GetCountryInfo.
  25. */
  26. #define COUNTRY struct tagCOUNTRY
  27. COUNTRY
  28. {
  29. TCHAR* pszName;
  30. DWORD dwId;
  31. DWORD dwCode;
  32. };
  33. /*----------------------------------------------------------------------------
  34. ** Prototypes (alphabetically)
  35. **----------------------------------------------------------------------------
  36. */
  37. VOID
  38. FreeCountryInfo(
  39. IN COUNTRY* pCountries,
  40. IN DWORD cCountries );
  41. VOID
  42. FreeLocationInfo(
  43. IN LOCATION* pLocations,
  44. IN DWORD cLocations );
  45. DWORD
  46. GetCountryInfo(
  47. OUT COUNTRY** ppCountries,
  48. OUT DWORD* pcCountries,
  49. IN DWORD dwCountryID );
  50. DWORD
  51. GetCurrentLocation(
  52. IN HINSTANCE hInst,
  53. IN OUT HLINEAPP* pHlineapp );
  54. DWORD
  55. GetLocationInfo(
  56. IN HINSTANCE hInst,
  57. IN OUT HLINEAPP* pHlineapp,
  58. OUT LOCATION** ppLocations,
  59. OUT DWORD* pcLocations,
  60. OUT DWORD* pdwCurLocation );
  61. DWORD
  62. SetCurrentLocation(
  63. IN HINSTANCE hInst,
  64. IN OUT HLINEAPP* pHlineapp,
  65. IN DWORD dwLocationId );
  66. DWORD
  67. TapiConfigureDlg(
  68. IN HWND hwndOwner,
  69. IN DWORD dwDeviceId,
  70. IN OUT BYTE** ppBlob,
  71. IN OUT DWORD* pcbBlob );
  72. DWORD
  73. TapiInit(
  74. IN HINSTANCE hInst,
  75. IN OUT HLINEAPP* pHlineapp,
  76. OUT DWORD* pcDevices );
  77. DWORD
  78. TapiLocationDlg(
  79. IN HINSTANCE hInst,
  80. IN OUT HLINEAPP* pHlineapp,
  81. IN HWND hwndOwner,
  82. IN DWORD dwCountryCode,
  83. IN TCHAR* pszAreaCode,
  84. IN TCHAR* pszPhoneNumber,
  85. IN DWORD dwDeviceId );
  86. DWORD APIENTRY
  87. TapiNewLocation(
  88. IN TCHAR* pszName );
  89. DWORD
  90. TapiNoLocationDlg(
  91. IN HINSTANCE hInst,
  92. IN HLINEAPP* pHlineapp,
  93. IN HWND hwndOwner );
  94. DWORD APIENTRY
  95. TapiRemoveLocation(
  96. IN DWORD dwID );
  97. DWORD APIENTRY
  98. TapiRenameLocation(
  99. IN TCHAR* pszOldName,
  100. IN TCHAR* pszNewName );
  101. DWORD
  102. TapiShutdown(
  103. IN HLINEAPP hlineapp );
  104. DWORD
  105. TapiTranslateAddress(
  106. IN HINSTANCE hInst,
  107. IN OUT HLINEAPP* pHlineapp,
  108. IN DWORD dwCountryCode,
  109. IN TCHAR* pszAreaCode,
  110. IN TCHAR* pszPhoneNumber,
  111. IN DWORD dwDeviceId,
  112. IN BOOL fDialable,
  113. OUT TCHAR** ppszResult );
  114. #endif // _TAPIUTIL_H_