public static IntPtr CQ_getLoginNick(int authCode) { FriendsList friendsList = JsonConvert.DeserializeObject <FriendsList>(WebAPI.GetFriendList()); return(Marshal.StringToHGlobalAnsi(friendsList.Friendlist.Where(x => x.FriendUin == Save.curentQQ).FirstOrDefault().NickName)); }