Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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;
        }