nn::friends::CTR::AttachToEventNotification Function

Syntax

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

Arguments

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
ResultSuccess Process succeeded.
ResultInvalidPointer An invalid pointer was passed in as an argument.
ResultInvalidHandle An invalid nn::os::Event handle was passed in as an argument.
ResultNotInitialized The friend presence library has not been initialized.
Other Some other result may be returned as a result of factors such as the daemon's internal state.

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