nn::dlp::CTR::FakeClient::Initialize Member Function

Syntax

static nn::Result Initialize(
     u8 scanNum,
     nn::Handle eventHandle,
     void * pBuffer,
     const size_t bufferSize
);

Arguments

Name Description
in scanNum Specifies the number of child programs that can be received by a single scan request. The maximum value is MAX_SCAN_NUM.
in eventHandle Specifies a handle to the nn::os::Event object waiting for a signal from download play. Initialize the event in the application. Use the GetEventDesc function to get the event information.
in pBuffer Pointer to the DLP working buffer. Must be 4096-byte aligned.
in bufferSize Size of working buffer. Must be 4096-byte aligned.

Return Values

The following Result values are returned as the result of the operation.

Value Description
ResultSuccess Initialization successful.
ResultInvalidPointer pBuffer is either NULL or not 4096-byte aligned.
ResultOutOfRange Either scanNum or bufferSize is invalid.
ResultInvalidHandle eventHandle is invalid.
ResultAlreadyOccupiedWirelessDevice The wireless device is already occupied for another purpose. Exit the other wireless process.
ResultWirelessOff Communications cannot occur in this state (sleep or the Wifi button is off).
ResultInternalError An irrecoverable error occurred internally.

Description

Initializes a fake client.

For the pBuffer argument, specify a 4096-byte aligned buffer of the size specified by the GetBufferSize function. Do not use device memory for the buffer. This function may block for a long time because it finalizes communications in the background, and the DLP library takes control of the communication device until Finalize is run.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL