nn::applet::CTR::CloseApplication Function

Syntax

Result CloseApplication(
     const u8 * pParam = NULL,
     size_t paramSize = 0,
     Handle handle = NN_APPLET_HANDLE_NONE
);

Arguments

Name Description
in pParam Parameter buffer.
in paramSize Parameter buffer size.
in handle Handle

Return Values

Returns the result of the operation.

Description

Exits the program.

You must call the nn::applet::CTR::PrepareToCloseApplication function before this one.

This function does not return. The function has a return value, but the process exits, so there is no way to actually return a value.

You can pass data to the next program launched by specifying it in the pParam, paramSize, and handle arguments, but since this cannot be utilized by normal applications, use the default values instead. Nintendo recommends calling without any arguments.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL