public static RasPppIp RasGetProjectionInfo(IntPtr handle) { int size = Marshal.SizeOf <RasPppIp>(); var info = new RasPppIp { Size = size }; int result = RasGetProjectionInfo(handle, RasProjection.PppIp, info, ref size); if (result == RasErrorCodes.ERROR_SUCCESS) { return(info); } throw new RasApi32Exception(result); }
public static extern int RasGetProjectionInfo( [In] IntPtr handle, [In] RasProjection projection, [In][Out] RasPppIp projectionInfo, [In][Out] ref int size);