示例#1
0
 public uint[] GetProcesses()
 {
     uint[] processes = new uint[0x10];
     if (success(FunctionsSNMAPI.GetProcesses(processes)))
     {
         return(processes);
     }
     return(new uint[0x10]);
 }
示例#2
0
 public bool ConnectPS3(string IP)
 {
     if (success(FunctionsSNMAPI.ConnectToPS3(IP + "\0")))
     {
         _ip = IP;
         return(true);
     }
     return(false);
 }
示例#3
0
        public string GetFirmware()
        {
            StringBuilder firmware = new StringBuilder(15);

            if (!success(FunctionsSNMAPI.GetFirmware(firmware)))
            {
                return(null);
            }
            return(firmware.ToString());
        }
示例#4
0
        public uint GetGameProcessID()
        {
            uint processID = 0;

            if (success(FunctionsSNMAPI.GetGameProcessID(out processID)))
            {
                return(processID);
            }
            return(0);
        }
示例#5
0
        public string GetVersion()
        {
            StringBuilder version = new StringBuilder(10);

            if (success(FunctionsSNMAPI.GetVersion(version)))
            {
                return(version.ToString());
            }
            return("");
        }
示例#6
0
        public string GetProcessName(uint processID)
        {
            StringBuilder name = new StringBuilder(0x200);

            if (success(FunctionsSNMAPI.GetProcessName(processID, name)))
            {
                return(_gamename = name.ToString());
            }
            return(null);
        }
示例#7
0
        public uint GetFreeMemory()
        {
            uint memory = 0;

            if (success(FunctionsSNMAPI.GetFreeMemory(out memory)))
            {
                return(memory);
            }
            return(0);
        }
示例#8
0
        public uint GetFreeSpace()
        {
            uint space = 0;

            if (success(FunctionsSNMAPI.GetFreeSpace(out space)))
            {
                return(_freeSpace = space);
            }
            return(0);
        }
示例#9
0
        public bool AutoconnectPS3()
        {
            StringBuilder iP = new StringBuilder(20);

            if (success(FunctionsSNMAPI.AutoconnectPS3(iP)))
            {
                _ip = iP.ToString();
                return(true);
            }
            return(false);
        }
示例#10
0
        public string GetConnectionType()
        {
            int type = 0;

            if (success(FunctionsSNMAPI.GetConnectionType(out type)))
            {
                if (type == 0)
                {
                    return("LAN");
                }
                if (type == 1)
                {
                    return("WLAN");
                }
            }
            return(null);
        }
示例#11
0
 public bool SetMemory(uint offset, byte[] buffer)
 {
     return(success(FunctionsSNMAPI.SetMemory(_processID, offset, (uint)buffer.Length, buffer)));
 }
示例#12
0
 public bool SetIDPS(byte[] idps)
 {
     return(success(FunctionsSNMAPI.SetIDPS(idps)));
 }
示例#13
0
 public bool NotifySmall(string message)
 {
     return(success(FunctionsSNMAPI.NotifySmall(message + "\0")));
 }
示例#14
0
 public bool LoadSPRX(string path)
 {
     return((_processID != 0) && success(FunctionsSNMAPI.LoadSPRX(_processID, path, out _prxid)));
 }
示例#15
0
 public SNMAPI()
 {
     FunctionsSNMAPI.InitFuncs();
     _extension = new SNMAPINetLib.Extension(this);
 }
示例#16
0
 public bool SetIDPS(string idps)
 {
     return(SetIDPS(FunctionsSNMAPI.StringToByteArray(idps)));
 }
示例#17
0
 public bool DisconnectPS3()
 {
     return(success(FunctionsSNMAPI.DisconnectPS3()));
 }