libctru  v2.4.1
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.
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  */
NCCH extended header definitions.
Filesystem Services.
Result PXIPM_GetProgramInfo(ExHeader_Info *exheaderInfo, u64 programHandle)
Retrives the exheader information set(s) (SCI+ACI) about a program.
void pxiPmExit(void)
Exits PxiPM.
Result PXIPM_UnregisterProgram(u64 programHandle)
Unloads a program and unregisters it from Process9.
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.
Result pxiPmInit(void)
Initializes PxiPM.
Main extended header data, as returned by PXIPM, Loader and FSREG service commands.
Definition: exheader.h:181
Program information.
Definition: fs.h:183
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42