// 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: 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);
 }