/// <summary> /// Gets the net bios information. /// </summary> /// <param name="ip">The ip.</param> /// <returns></returns> public static NetBiosInfo GetNetBiosInfo(IPAddress ip) { var wk = getMachineNetBiosInfo(ip); if (wk == null) { return(null); } var nbi = new NetBiosInfo((WKSTA_INFO_100)wk); return(nbi); }
/// <summary> /// Gets the net bios information. /// </summary> /// <param name="ip">The ip.</param> /// <returns></returns> public static NetBiosInfo GetNetBiosInfo(IPAddress ip) { var wk = getMachineNetBiosInfo(ip); if (wk == null) return null; var nbi = new NetBiosInfo((WKSTA_INFO_100)wk); return nbi; }