nn::applet::CTR::CloseApplication Function

Syntax

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

Parameters

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

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
Result::IsSuccess Process was successful.

Description

Exits the program.

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

2011/02/25
Removed information about need to call nn::applet::CTR::PrepareToCloseApplication.
2010/11/10
Initial version.

CONFIDENTIAL