nn::dlp::CTR::FakeClient::Initialize Member Functionstatic nn::Result Initialize( u8 scanNum, nn::Handle eventHandle, void * pBuffer, const size_t bufferSize );
| 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. |
Result values are returned as the result of the operation.| Value | Description |
|---|---|
Result::IsSuccess |
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 |
Communication is impossible (the system is in Sleep Mode or wireless-disabled mode). |
ResultInternalError |
An irrecoverable error occurred internally. |
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 might block for a long time. This can happen because communications in the background have been completed and the DLP library has taken control of the communications device.
This control of the communications device will continue until the Finalize function is called.
CONFIDENTIAL