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.

125 lines
2.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: N C R A S . H
  7. //
  8. // Contents: Common code for RAS connections.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 20 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "netconp.h"
  17. #include <ras.h>
  18. #include <rasuip.h>
  19. #include <rasapip.h>
  20. #include <rasuip.h>
  21. VOID
  22. RciFree (
  23. RASCON_INFO* pRasConInfo);
  24. BOOL
  25. FExistActiveRasConnections ();
  26. HRESULT
  27. HrRciGetRasConnectionInfo (
  28. IN INetConnection* pCon,
  29. OUT RASCON_INFO* pRasConInfo);
  30. HRESULT
  31. HrRasEnumAllActiveConnections (
  32. OUT RASCONN** ppRasConn,
  33. OUT DWORD* pcRasConn);
  34. HRESULT
  35. HrRasEnumAllActiveServerConnections (
  36. OUT RASSRVCONN** paRasSrvConn,
  37. OUT DWORD* pcRasSrvConn);
  38. HRESULT
  39. HrRasEnumAllEntriesWithDetails (
  40. IN PCWSTR pszPhonebook,
  41. OUT RASENUMENTRYDETAILS** paRasEntryDetails,
  42. OUT DWORD* pcRasEntryDetails);
  43. HRESULT
  44. HrFindRasConnFromGuidId (
  45. IN const GUID* pguid,
  46. OUT HRASCONN* phRasConn,
  47. OUT RASCONN* pRasConn OPTIONAL);
  48. HRESULT
  49. HrRasGetEntryProperties (
  50. IN PCWSTR pszPhonebook,
  51. IN PCWSTR pszEntry,
  52. OUT RASENTRY** ppRasEntry,
  53. OUT DWORD* pcbRasEntry);
  54. HRESULT
  55. HrRasGetSubEntryProperties (
  56. IN PCWSTR pszPhonebook,
  57. IN PCWSTR pszEntry,
  58. IN DWORD dwSubEntry,
  59. OUT RASSUBENTRY** ppRasSubEntry);
  60. HRESULT
  61. HrRasGetNetconStatusFromRasConnectStatus (
  62. IN HRASCONN hRasConn,
  63. OUT NETCON_STATUS* pStatus);
  64. HRESULT
  65. HrRasHangupUntilDisconnected (
  66. IN HRASCONN hRasConn);
  67. HRESULT
  68. HrNetConToSharedConnection (
  69. IN INetConnection* pCon,
  70. OUT LPRASSHARECONN prsc);
  71. HRESULT
  72. HrRasIsSharedConnection (
  73. IN LPRASSHARECONN prsc,
  74. OUT PBOOL pfShared);
  75. #if 0
  76. HRESULT
  77. HrRasQueryLanConnTable (
  78. IN LPRASSHARECONN prsc,
  79. OUT NETCON_PROPERTIES** ppLanTable,
  80. OUT LPDWORD pdwLanCount);
  81. HRESULT
  82. HrRasShareConnection (
  83. IN LPRASSHARECONN prsc,
  84. IN GUID* pPrivateLanGuid OPTIONAL);
  85. HRESULT
  86. HrRasUnshareConnection (
  87. OUT PBOOL pfWasShared);
  88. #endif
  89. NOTHROW
  90. int
  91. WINAPIV
  92. NcRasMsgBoxWithErrorText (
  93. IN DWORD dwError,
  94. IN HINSTANCE hinst,
  95. IN HWND hwnd,
  96. IN UINT unIdCaption,
  97. IN UINT unIdCombineFormat,
  98. IN UINT unIdFormat,
  99. IN UINT unStyle,
  100. ...);
  101. DWORD
  102. RasSrvTypeFromRasDeviceType(
  103. RASDEVICETYPE rdt
  104. );