nn::friends::CTR::AttachToEventNotification Function

Syntax

Result AttachToEventNotification(
     nn::os::Event * pEvent
);

Parameters

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.

Return Values

Returns the result of the operation.

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.

Description

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.

Revision History

2011/03/14
Added specific examples of return values.
2010/08/16
Initial version.

CONFIDENTIAL