public static SNRESULT GetTargetInfo(ref TargetInfo targetInfo) { TargetInfoPriv targetInfoPriv = new TargetInfoPriv { Flags = targetInfo.Flags, Target = targetInfo.Target }; SNRESULT res = Is32Bit() ? GetTargetInfoX86(ref targetInfoPriv) : GetTargetInfoX64(ref targetInfoPriv); if (!FAILED(res)) { targetInfo.Flags = targetInfoPriv.Flags; targetInfo.Target = targetInfoPriv.Target; targetInfo.Name = Utf8ToString(targetInfoPriv.Name, uint.MaxValue); targetInfo.Type = Utf8ToString(targetInfoPriv.Type, uint.MaxValue); targetInfo.Info = Utf8ToString(targetInfoPriv.Info, uint.MaxValue); targetInfo.HomeDir = Utf8ToString(targetInfoPriv.HomeDir, uint.MaxValue); targetInfo.FSDir = Utf8ToString(targetInfoPriv.FSDir, uint.MaxValue); targetInfo.Boot = targetInfoPriv.Boot; } return(res); }
private static extern SNRESULT GetTargetInfoX86(ref TargetInfoPriv targetInfoPriv);