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...
(adsbygoogle = window.adsbygoogle || []).push({});

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-14-2014, 09:47 PM #2
ErasedDev
Climbing up the ladder
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...

This belong on the ps3 sections , i think is dead over there
03-14-2014, 10:19 PM #3
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...


Thanks Man
Just what i was needed
I was wondering how Primetime43 coded his PS3 Connector v2.0 Winky Winky
03-14-2014, 10:34 PM #4
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...


but when
you got "Set Bytes" Code?
Like exmple:

You must login or register to view this content.
03-14-2014, 10:36 PM #5
seb5594
Proud Former Admin
Nice BuC if you mess arround with some Target Manager Functions, can you look also to get the Firmware Version, Target name and stuff?
03-15-2014, 12:16 AM #6
Originally posted by seb5594 View Post
Nice BuC if you mess arround with some Target Manager Functions, can you look also to get the Firmware Version, Target name and stuff?


ya i have almost all the functions made for tmapi
03-15-2014, 02:22 AM #7
BuC-ShoTz
TeamMvKâ?¢
Originally posted by Knife View Post
but when
you got "Set Bytes" Code?
Like exmple:

You must login or register to view this content.


the code i post is just a connect function, when you click the button on your app that window will pop up.. then it will close after you select target.
03-15-2014, 08:07 AM #8
Mango_Knife
In my man cave
Originally posted by ShoTz View Post
the code i post is just a connect function, when you click the button on your app that window will pop up.. then it will close after you select target.


I Know man
but my question was if you also got a code to set bytes?
like that?
You must login or register to view this content.
03-17-2014, 10:35 PM #9
Esker
Samurai Poster
So helpful thanks alot !
03-18-2014, 03:11 AM #10
BuC-ShoTz
TeamMvKâ?¢
Originally posted by Knife View Post
I Know man
but my question was if you also got a code to set bytes?
like that?
You must login or register to view this content.


yes, and i never got the skype contact...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo