Examples of RASPPPIP


Examples of com.sun.jna.platform.win32.WinRas.RASPPPIP

   * @param hrasConn the RAS connection handle
   * @return the IP projection
   * @throws Ras32Exception errors
   */
  public static RASPPPIP getIPProjection(HANDLE hrasConn) throws Ras32Exception {
    RASPPPIP pppIpProjection = new RASPPPIP();
    IntByReference lpcb = new IntByReference(pppIpProjection.size());
    pppIpProjection.write();
    int err = Rasapi32.INSTANCE.RasGetProjectionInfo(hrasConn, RASP_PppIp, pppIpProjection.getPointer(), lpcb);
    if (err != WinError.ERROR_SUCCESS) throw new Ras32Exception(err);
    pppIpProjection.read();
    return pppIpProjection;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.