Windows Media Services SDK banner art
PreviousNext

INSSEventNotification::OnEvent

Called when specified events are sent from the server.

Syntax

HRESULT OnEvent(
NSS_EVENT          *pEvent,
INSSUserContext      *pUser,
INSSPresentationContext   *pPresentation,
INSSCommandContext    *pCommand
);

Parameters

[in] pEvent

Specifies a pointer to the event and the results of authorization.

[in] pUser

Specifies a pointer to the user context property map interface. The user context stores information about the client. For more information about the user context and its properties, see Event Notification and Authorization Contexts.

[in] pPresentation

Specifies a pointer to the presentation context property map interface. The presentation context stores information about the presentation. For more information about the presentation context and its properties, see Event  Notification and Authorization Contexts.

[in] pCommand

Specifies a pointer to the command context that contains the request context.

Return Values

This method must return S_OK upon successful completion, or an HRESULT error code.

Remarks

The following code illustrates a skeletal implementation of the INSSEventNotification::OnEvent method:

HRESULT
CEventNotification::OnEvent( 
        NSS_EVENT __RPC_FAR *pEvent,
        INSSUserContext __RPC_FAR *pUser,
        INSSPresentationContext __RPC_FAR *pPresentation,
        INSSCommandContext __RPC_FAR *pCommand
        )
//
// Event logging routine goes here
//
{
  return( S_OK );
}

See Also

INSSEventNotification::GetHandledEvents

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.