libctru  v1.6.0
pxipm.h
Go to the documentation of this file.
1 /**
2  * @file pxipm.h
3  * @brief Process Manager PXI service
4  */
5 
6 #pragma once
7 
8 #include <3ds/exheader.h>
9 #include <3ds/services/fs.h>
10 
11 /// Initializes PxiPM.
12 Result pxiPmInit(void);
13 
14 /// Exits PxiPM.
15 void pxiPmExit(void);
16 
17 /**
18  * @brief Gets the current PxiPM session handle.
19  * @return The current PxiPM session handle.
20  */
22 
23 /**
24  * @brief Retrives the exheader information set(s) (SCI+ACI) about a program.
25  * @param exheaderInfos[out] Pointer to the output exheader information set.
26  * @param programHandle The program handle.
27  */
28 Result PXIPM_GetProgramInfo(ExHeader_Info *exheaderInfo, u64 programHandle);
29 
30 /**
31  * @brief Loads a program and registers it to Process9.
32  * @param programHandle[out] Pointer to the output the program handle to.
33  * @param programInfo Information about the program to load.
34  * @param updateInfo Information about the program update to load.
35  */
36 Result PXIPM_RegisterProgram(u64 *programHandle, const FS_ProgramInfo *programInfo, const FS_ProgramInfo *updateInfo);
37 
38 /**
39  * @brief Unloads a program and unregisters it from Process9.
40  * @param programHandle The program handle.
41  */
42 Result PXIPM_UnregisterProgram(u64 programHandle);
s32 Result
Function result.
Definition: types.h:42
Program information.
Definition: fs.h:181
Filesystem Services.
u32 Handle
Resource handle.
Definition: types.h:41
Main extended header data, as returned by PXIPM, Loader and FSREG service commands.
Definition: exheader.h:180
Result PXIPM_UnregisterProgram(u64 programHandle)
Unloads a program and unregisters it from Process9.
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
Result PXIPM_GetProgramInfo(ExHeader_Info *exheaderInfo, u64 programHandle)
Retrives the exheader information set(s) (SCI+ACI) about a program.
Result pxiPmInit(void)
Initializes PxiPM.
NCCH extended header definitions.
void pxiPmExit(void)
Exits PxiPM.
Result PXIPM_RegisterProgram(u64 *programHandle, const FS_ProgramInfo *programInfo, const FS_ProgramInfo *updateInfo)
Loads a program and registers it to Process9.
Handle * pxiPmGetSessionHandle(void)
Gets the current PxiPM session handle.