Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ActivScreen - Ras.bas

Ras.bas

Caricato da: Natamas
Scarica il programma completo

  1. Attribute VB_Name = "Module"
  2. Option Explicit
  3. '***************************
  4. '*Internet connections part*
  5. '***************************
  6. Public Const RAS_MaxEntryName As Integer = 256
  7. Public Const RAS_MaxDeviceType As Integer = 16
  8. Public Const RAS_MaxDeviceName As Integer = 128
  9. Public Const RAS_RASCONNSIZE As Integer = 412
  10. Public Const ERROR_SUCCESS = 0&
  11. Public Type RASCONN
  12.     dwSize As Long
  13.     hRasConn As Long
  14.     szEntryName(RAS_MaxEntryName) As Byte
  15.     szDeviceType(RAS_MaxDeviceType) As Byte
  16.     szDeviceName(RAS_MaxDeviceName) As Byte
  17. End Type
  18. Public Type RASENTRYNAME
  19.     dwSize As Long
  20.     szEntryName(RAS_MaxEntryName) As Byte
  21. End Type
  22. 'Enumerate the active connections
  23. Public Declare Function RasEnumConnections Lib "RasApi32.DLL" Alias "RasEnumConnectionsA" (lprasconn As Any, lpcb As Long, lpcConnections As Long) As Long
  24. 'HangUp the modem
  25. Public Declare Function RasHangUp Lib "RasApi32.DLL" Alias "RasHangUpA" (ByVal hRasConn As Long) As Long