// Token: 0x06000BFC RID: 3068 RVA: 0x0003DBC8 File Offset: 0x0003BDC8
 public static PS3TMAPI.SNRESULT GetTargetInfo(ref PS3TMAPI.TargetInfo targetInfo)
 {
     PS3TMAPI.TargetInfoPriv targetInfoPriv = new PS3TMAPI.TargetInfoPriv
     {
         Flags  = targetInfo.Flags,
         Target = targetInfo.Target
     };
     PS3TMAPI.SNRESULT sNRESULT = PS3TMAPI.Is32Bit() ? PS3TMAPI.GetTargetInfoX86(ref targetInfoPriv) : PS3TMAPI.GetTargetInfoX64(ref targetInfoPriv);
     if (!PS3TMAPI.FAILED(sNRESULT))
     {
         targetInfo.Flags   = targetInfoPriv.Flags;
         targetInfo.Target  = targetInfoPriv.Target;
         targetInfo.Name    = PS3TMAPI.Utf8ToString(targetInfoPriv.Name, 4294967295u);
         targetInfo.Type    = PS3TMAPI.Utf8ToString(targetInfoPriv.Type, 4294967295u);
         targetInfo.Info    = PS3TMAPI.Utf8ToString(targetInfoPriv.Info, 4294967295u);
         targetInfo.HomeDir = PS3TMAPI.Utf8ToString(targetInfoPriv.HomeDir, 4294967295u);
         targetInfo.FSDir   = PS3TMAPI.Utf8ToString(targetInfoPriv.FSDir, 4294967295u);
         targetInfo.Boot    = targetInfoPriv.Boot;
     }
     return(sNRESULT);
 }
        // Token: 0x06000BFF RID: 3071 RVA: 0x0003DD70 File Offset: 0x0003BF70
        public static PS3TMAPI.SNRESULT GetConnectStatus(int target, out PS3TMAPI.ConnectStatus status, out string usage)
        {
            uint   num;
            IntPtr utf;

            PS3TMAPI.SNRESULT result = PS3TMAPI.Is32Bit() ? PS3TMAPI.GetConnectStatusX86(target, out num, out utf) : PS3TMAPI.GetConnectStatusX64(target, out num, out utf);
            status = (PS3TMAPI.ConnectStatus)num;
            usage  = PS3TMAPI.Utf8ToString(utf, 4294967295u);
            return(result);
        }
 // Token: 0x06000BFE RID: 3070 RVA: 0x0003DCF8 File Offset: 0x0003BEF8
 public static PS3TMAPI.SNRESULT GetConnectionInfo(int target, out PS3TMAPI.TCPIPConnectProperties connectProperties)
 {
     connectProperties = null;
     PS3TMAPI.ScopedGlobalHeapPtr scopedGlobalHeapPtr = new PS3TMAPI.ScopedGlobalHeapPtr(Marshal.AllocHGlobal(Marshal.SizeOf(typeof(PS3TMAPI.TCPIPConnectProperties))));
     PS3TMAPI.SNRESULT            sNRESULT            = PS3TMAPI.Is32Bit() ? PS3TMAPI.GetConnectionInfoX86(target, scopedGlobalHeapPtr.Get()) : PS3TMAPI.GetConnectionInfoX64(target, scopedGlobalHeapPtr.Get());
     if (PS3TMAPI.SUCCEEDED(sNRESULT))
     {
         connectProperties = new PS3TMAPI.TCPIPConnectProperties();
         Marshal.PtrToStructure(scopedGlobalHeapPtr.Get(), connectProperties);
     }
     return(sNRESULT);
 }
 // Token: 0x06000BFD RID: 3069 RVA: 0x0003DCB0 File Offset: 0x0003BEB0
 public static PS3TMAPI.SNRESULT GetTargetFromName(string name, out int target)
 {
     PS3TMAPI.ScopedGlobalHeapPtr scopedGlobalHeapPtr = new PS3TMAPI.ScopedGlobalHeapPtr(PS3TMAPI.AllocUtf8FromString(name));
     PS3TMAPI.SNRESULT            result;
     if (!PS3TMAPI.Is32Bit())
     {
         result = PS3TMAPI.GetTargetFromNameX64(scopedGlobalHeapPtr.Get(), out target);
     }
     else
     {
         result = PS3TMAPI.GetTargetFromNameX86(scopedGlobalHeapPtr.Get(), out target);
     }
     return(result);
 }
        // Token: 0x06000BF9 RID: 3065 RVA: 0x0003DA7C File Offset: 0x0003BC7C
        public static PS3TMAPI.SNRESULT GetProcessList(int target, out uint[] processIDs)
        {
            processIDs = null;
            uint num = 0u;

            PS3TMAPI.SNRESULT sNRESULT = PS3TMAPI.Is32Bit() ? PS3TMAPI.GetProcessListX86(target, ref num, IntPtr.Zero) : PS3TMAPI.GetProcessListX64(target, ref num, IntPtr.Zero);
            PS3TMAPI.SNRESULT sNRESULT2;
            PS3TMAPI.SNRESULT result;
            if (!PS3TMAPI.FAILED(sNRESULT))
            {
                PS3TMAPI.ScopedGlobalHeapPtr scopedGlobalHeapPtr = new PS3TMAPI.ScopedGlobalHeapPtr(Marshal.AllocHGlobal((int)(4u * num)));
                sNRESULT = (PS3TMAPI.Is32Bit() ? PS3TMAPI.GetProcessListX86(target, ref num, scopedGlobalHeapPtr.Get()) : PS3TMAPI.GetProcessListX64(target, ref num, scopedGlobalHeapPtr.Get()));
                if (PS3TMAPI.FAILED(sNRESULT))
                {
                    sNRESULT2 = sNRESULT;
                    result    = sNRESULT2;
                    return(result);
                }
                IntPtr unmanagedBuf = scopedGlobalHeapPtr.Get();
                processIDs = new uint[num];
                for (uint num2 = 0u; num2 < num; num2 += 1u)
                {
                    unmanagedBuf = PS3TMAPI.ReadDataFromUnmanagedIncPtr <uint>(unmanagedBuf, ref processIDs[(int)((uint)((UIntPtr)num2))]);
                }
            }
            sNRESULT2 = sNRESULT;
            result    = sNRESULT2;
            return(result);
        }
 // Token: 0x06000BF0 RID: 3056 RVA: 0x0003D868 File Offset: 0x0003BA68
 public static bool FAILED(PS3TMAPI.SNRESULT res)
 {
     return(!PS3TMAPI.SUCCEEDED(res));
 }