Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Native C++ Win32 RTE programming:
- Credits: Milky444
- 1: add my http://adf.ly/rt6AY ps3mem.h to the "header files"
- 2:make sure you have added imcsx's load lib function:
- */const WCHAR * dllName = L"ps3tmapi.dll";
- HINSTANCE hlib = LoadLibrary(dllName);
- /*also make sure you have #include <Windows.h> in your main source file also add the ps3tmapi.dll into your debug folder
- 3:add this to the top of your main source file: #include "ps3mem.h"
- 4: add this void to your main source file*/
- void conect_n_attach()
- {
- typedef int (__cdecl *InitTargetCommsFunction)(void);
- typedef int (__cdecl *ConnectFunction)(int,LPWSTR);
- typedef int (__cdecl *ProcessListFunction)(int, UINT32*, UINT32*);
- typedef int (__cdecl *ProcessAttachFunction)(int, UINT32 ,UINT32);
- typedef int (__cdecl *ProcessContinueFunction) (int, UINT32);
- typedef int (__cdecl *ProcessInfoFunction)(int, UINT32 ,UINT32*,SNPS3PROCESSINFO*);
- InitTargetCommsFunction InitTargetComms = (InitTargetCommsFunction) GetProcAddress(hlib, "SNPS3InitTargetComms");
- ConnectFunction Connect = (ConnectFunction) GetProcAddress(hlib, "SNPS3Connect");
- ProcessListFunction ProcessList = (ProcessListFunction) GetProcAddress(hlib, "SNPS3ProcessList");
- ProcessInfoFunction ProcessInfo = (ProcessInfoFunction) GetProcAddress(hlib, "SNPS3ProcessInfo");
- ProcessAttachFunction ProcessAttach = (ProcessAttachFunction) GetProcAddress(hlib, "SNPS3ProcessAttach");
- ProcessContinueFunction ProcessContinue = (ProcessContinueFunction) GetProcAddress(hlib,"SNPS3ProcessContinue");
- InitTargetComms();
- Connect(target,NULL);
- ProcessList(target,&puCount,puProcessID);
- ProcessAttach(target, 0,*puProcessID);
- ProcessContinue(target, *puProcessID);
- ProcessInfo(target,*puProcessID,&puBufferSize,pProcessInfo);
- }
- /*that should connect/attach
- step 5: next add void connect_n_attach(); to your main header (stdafx.h)
- step 6: calling the function connect_n_attach();
- and for CLR users you can download the .DLL i made http://adf.ly/rt6Cg here or:
- CLR Steps:
- step 1: download my CLR ps3 header http://adf.ly/rt6DG and put it in your "header files"
- also have the ps3tmapi_net.dll in the source folder and debug folder
- step 2: add this code to your main source file:#include "PS3mem_net.h"
- step 3: call any of the functions that are in the class "PS3" in your main source
- new method for win32 (thanks to aerosoul94 :) )
- step 1:
- download the header i made http://adf.ly/rt6EC"] and add it to your "header files"
- step 2:
- add this code to your main source file*/ #include "SNPS3.h"
- /*now you can call the connect function:*/ PS3::Connect(0);
Add Comment
Please, Sign In to add comment