Homebrew [Help] Create a 2nd process with libctru

  • Thread starter Thread starter Djesteur
  • Start date Start date
  • Views Views 1,051
  • Replies Replies 0

Djesteur

Member
Newcomer
Joined
Nov 8, 2018
Messages
5
Reaction score
0
Trophies
0
Age
29
XP
105
Country
France
I don't understand how to create a new process that it a copy of the current process with ctru.
I have to use svcOpenProcess + svrRun ?
If yes:
- Use CUR_PROCESS_HANDLE + svcGetProcessId is a good way for getting current process id ?
- For the svcRun function, a StartupInfo is asked. Which priority I have to give to my new process ? What is the stack size argument ?

If no, how to do that I want ?

By the way, I don't undersand how to interpret error messages when I use ERRF_ThrowResult.
For example, how do you understand this error: 0xd900060C (Error type: generic, Address: 0x00100D34) ?

EDIT: Finally I think I'll not need to use it, but I still interesting to know how to do !
 
Last edited by Djesteur,

Site & Scene News

Popular threads in this forum