Exemplo n.º 1
0
        public static byte[] GetHostByNameItem(string host, int index)
        {
            byte[] buffer = new byte[32];

            var bufferHandle = Microsoft.Phone.InteropServices.GCHandle.Alloc(buffer, GCHandleType.Pinned);

            int ret = m_netSocketInterface.GetHostByNameItem(host, index, bufferHandle.AddrOfPinnedObject());

            Debug.WriteLine("GetHostByNameItem RET: " + ret);
            bufferHandle.Free();
            return(buffer);
        }