Post: C# PS3TMAPI Pick Target Window
03-14-2014, 09:18 PM #1
BuC-ShoTz
TeamMvKâ?¢
(adsbygoogle = window.adsbygoogle || []).push({}); You must login or register to view this content.

    
public static PS3TMAPI.SNRESULT snr;
private int target;
private string ipaddr;
private uint processID;

private string GetTitleID()
{
PS3TMAPI.ProcessInfo procinfo = new PS3TMAPI.ProcessInfo();
snr = PS3TMAPI.GetProcessInfo(target, processID, out procinfo);
string[] splitpath = procinfo.Hdr.ELFPath.Split('/'Winky Winky;
return splitpath[3];
}
private void buttonConnect_Click(object sender, EventArgs e)
{
snr = PS3TMAPI.InitTargetComms();
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.PickTarget(Handle, out target);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.Connect(target, null);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK || snr == PS3TMAPI.SNRESULT.SN_S_NO_ACTION)
{
PS3TMAPI.TCPIPConnectProperties tcpip = new PS3TMAPI.TCPIPConnectProperties();
PS3TMAPI.GetConnectionInfo(target, out tcpip);
ipaddr = tcpip.IPAddress;

uint[] processIDs;
snr = PS3TMAPI.GetProcessList(target, out processIDs);
processID = processIDs[0];
snr = PS3TMAPI.ProcessAttach(target, PS3TMAPI.UnitType.PPU, processID);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.ProcessContinue(target, processID);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
Text = Application.ProductName + " | " + ipaddr + " | 0x" +
processID.ToString("X8") + " | " + GetTitleID();
Enable();
}
}
}
}
}
}


PS Admins of NGU, please turn off word wrap on the CODE and PHP Tags...
Last edited by BuC-ShoTz ; 03-18-2014 at 01:26 PM.

The following 18 users say thank you to BuC-ShoTz for this useful post:

-SuperMan, ▶DaOriginal209◀, Eddie Mac, ErasedDev, EliteHackzPS3, Esker, ItsLollo1000, TheMightyMoJo, Mango_Knife, milky4444, Notorious, Renton, SC58, SnaY, xBeaTzMoDz, Fatality, zSunriseModz
03-18-2014, 12:39 PM #11
03-18-2014, 12:42 PM #12
Mango_Knife
In my man cave
Originally posted by ShoTz View Post
yes, and i never got the skype contact...


Il add you again man
Skype: Mango_-Knife
I Saw 3 BuC ShoTz so i will add all the 3 :p
03-18-2014, 12:54 PM #13
Mango_Knife
In my man cave
Originally posted by ShoTz View Post
You must login or register to view this content.

    
private void buttonConnect_Click(object sender, EventArgs e)
{
snr = PS3TMAPI.InitTargetComms();
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.PickTarget(Handle, out target);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.Connect(target, null);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK || snr == PS3TMAPI.SNRESULT.SN_S_NO_ACTION)
{
PS3TMAPI.TCPIPConnectProperties tcpip = new PS3TMAPI.TCPIPConnectProperties();
PS3TMAPI.GetConnectionInfo(target, out tcpip);
ipaddr = tcpip.IPAddress;

uint[] processIDs;
snr = PS3TMAPI.GetProcessList(target, out processIDs);
processID = processIDs[0];
snr = PS3TMAPI.ProcessAttach(target, PS3TMAPI.UnitType.PPU, processID);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
snr = PS3TMAPI.ProcessContinue(target, processID);
if (snr == PS3TMAPI.SNRESULT.SN_S_OK)
{
Text = Application.ProductName + " | " + ipaddr + " | 0x" +
processID.ToString("X8") + " | " + GetTitleID();
Enable();
}
}
}
}
}
}


PS Admins of NGU, please turn off word wrap on the CODE and PHP Tags...


WoW!
Bunch of errors!
You must login or register to view this content.
03-18-2014, 01:18 PM #14
BuC-ShoTz
TeamMvKâ?¢
Originally posted by Knife View Post
WoW!
Bunch of errors!
You must login or register to view this content.


well do you know whats missing? lol
private PS3TMAPI.SNRESULT snr;

also you dont have the TitleID function or the ipaddr........
also you need to define processID and target....

    
public static PS3TMAPI.SNRESULT snr;
private int target;
private string ipaddr;
private uint processID;

private string GetTitleID()
{
PS3TMAPI.ProcessInfo procinfo = new PS3TMAPI.ProcessInfo();
snr = PS3TMAPI.GetProcessInfo(target, processID, out procinfo);
string[] splitpath = procinfo.Hdr.ELFPath.Split('/'Winky Winky;
return splitpath[3];
}
Last edited by BuC-ShoTz ; 03-18-2014 at 01:24 PM.
03-18-2014, 01:31 PM #15
Mango_Knife
In my man cave
Originally posted by ShoTz View Post
well do you know whats missing? lol
private PS3TMAPI.SNRESULT snr;

also you dont have the TitleID function or the ipaddr........
also you need to define processID and target....

    
public static PS3TMAPI.SNRESULT snr;
private int target;
private string ipaddr;
private uint processID;

private string GetTitleID()
{
PS3TMAPI.ProcessInfo procinfo = new PS3TMAPI.ProcessInfo();
snr = PS3TMAPI.GetProcessInfo(target, processID, out procinfo);
string[] splitpath = procinfo.Hdr.ELFPath.Split('/'Winky Winky;
return splitpath[3];
}


Now it make more sense Smile
Only 1 error left
You must login or register to view this content.
03-18-2014, 02:01 PM #16
BuC-ShoTz
TeamMvKâ?¢
Originally posted by Knife View Post
Now it make more sense Smile
Only 1 error left
You must login or register to view this content.


Enable(); is your problem, remove it

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo