public static string GetPassword(ulong hSocket) { char[] pwd = new char[256]; unsafe { fixed(char *p = pwd) { uint res = ServerCoreLoader.GetPassword(hSocket, p, 256); return(new string(p)); } } }