Page 1 of 1

Create new process with libctru

Posted: Fri Nov 16, 2018 12:02 pm
by Djesteur
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) ?

A big thanks for those who could help me ! :mrgreen:

Re: Create new process with libctru

Posted: Thu Jan 03, 2019 2:34 pm
by WinterMute
What you want to do isn't possible, sorry. The 3DS OS doesn't work like that.