Package com.sun.jna.platform.win32
Klasse Rasapi32Util
java.lang.Object
com.sun.jna.platform.win32.Rasapi32Util
Rasapi32 utility API.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic WinNT.HANDLEDial a phone book entry by name (Synchronously)static WinNT.HANDLEdialEntry(String entryName, WinRas.RasDialFunc2 func2) Dial a phone book entry by name (Asynchronously - callback type 2)static WinRas.RASPPPIPgetIPProjection(WinNT.HANDLE hrasConn) Get the connection's IP projectionstatic WinRas.RASDIALPARAMSgetPhoneBookDialingParams(String entryName) get a phone book entry's dialing parametersstatic WinRas.RASENTRY.ByReferencegetPhoneBookEntry(String entryName) Return the phone book entry.static WinNT.HANDLEgetRasConnection(String connName) Return a RAS connection by namestatic StringgetRasConnectionStatusText(int connStatus) Translate the connection status value to textstatic StringgetRasErrorString(int code) Get the RAS error descriptionstatic voidhangupRasConnection(WinNT.HANDLE hrasConn) Hangup a connectionstatic voidhangupRasConnection(String connName) Hangup a connection by namestatic voidsetPhoneBookEntry(String entryName, WinRas.RASENTRY.ByReference rasEntry) Set a phone book entry
-
Felddetails
-
CONNECTION_STATE_TEXT
-
-
Konstruktordetails
-
Rasapi32Util
public Rasapi32Util()
-
-
Methodendetails
-
getRasErrorString
Get the RAS error description- Parameter:
code- the error code- Gibt zurück:
- the RAS description
-
getRasConnectionStatusText
Translate the connection status value to text- Parameter:
connStatus- the connection status- Gibt zurück:
- the descriptive text
-
getRasConnection
Return a RAS connection by name- Parameter:
connName- the connection name- Gibt zurück:
- the RAS connection structure
- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
hangupRasConnection
Hangup a connection by name- Parameter:
connName- the connection name- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
hangupRasConnection
Hangup a connection- Parameter:
hrasConn- the connection- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
getIPProjection
public static WinRas.RASPPPIP getIPProjection(WinNT.HANDLE hrasConn) throws Rasapi32Util.Ras32Exception Get the connection's IP projection- Parameter:
hrasConn- the RAS connection handle- Gibt zurück:
- the IP projection
- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
getPhoneBookEntry
public static WinRas.RASENTRY.ByReference getPhoneBookEntry(String entryName) throws Rasapi32Util.Ras32Exception Return the phone book entry.- Parameter:
entryName- the entry name- Gibt zurück:
- the RAS entry
- Löst aus:
Rasapi32Util.Ras32Exception- any errors
-
setPhoneBookEntry
public static void setPhoneBookEntry(String entryName, WinRas.RASENTRY.ByReference rasEntry) throws Rasapi32Util.Ras32Exception Set a phone book entry- Parameter:
entryName- the phone book entry namerasEntry- the entry parameters- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
getPhoneBookDialingParams
public static WinRas.RASDIALPARAMS getPhoneBookDialingParams(String entryName) throws Rasapi32Util.Ras32Exception get a phone book entry's dialing parameters- Parameter:
entryName- the phone book entry name- Gibt zurück:
- the entry's dialing parameters parameters
- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
dialEntry
Dial a phone book entry by name (Synchronously)- Parameter:
entryName- The phone book entry name- Gibt zurück:
- result reference
- Löst aus:
Rasapi32Util.Ras32Exception- errors
-
dialEntry
public static WinNT.HANDLE dialEntry(String entryName, WinRas.RasDialFunc2 func2) throws Rasapi32Util.Ras32Exception Dial a phone book entry by name (Asynchronously - callback type 2)- Parameter:
entryName- The phone book entry namefunc2-- Gibt zurück:
- the HRASCONN for this connection
- Löst aus:
Rasapi32Util.Ras32Exception- errors
-