nn::friends::CTR::AttachToEventNotification FunctionResult AttachToEventNotification( nn::os::Event * pEvent );
| Name | Description | |
|---|---|---|
| out | pEvent | Specifies a pointer to the nn::os::Event that notifies of changes. Initialize this ahead of time using the nn::os::Event::Initialize function. |
| Value | Description |
|---|---|
Result::IsSuccess |
Process succeeded. |
ResultInvalidPointer |
Invalid pointer passed as argument. |
ResultInvalidHandle |
Invalid nn::os::Event handle passed as argument. |
ResultNotInitialized |
The friend presence library is not initialized. |
| Other | Another result may be returned, depending on the internal state of the daemon and other factors. |
Specifies an event that notifies of changes in the local host's login state and friends' login states.
When this function is called multiple times, only the last specified nn::os::Event object is signaled.
CONFIDENTIAL