EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

SLRegisterEvent function

Registers an event in the SL service. The caller can receive notifications when the registered event is fired.

Syntax


HRESULT WINAPI SLRegisterEvent(
  _In_opt_  HSLC hSLC,
  _In_      PCWSTR pwszEventId,
  _In_      const SLID *pApplicationId,
  _In_      HANDLE hEvent
);

Parameters

hSLC [in, optional]

Type: HSLC

The handle to the current SLC session.

pwszEventId [in]

Type: PCWSTR

The predefined SL event identifier.

pApplicationId [in]

Type: const SLID*

A pointer to the application ID to which the event will be registered.

hEvent [in]

Type: HANDLE

The event handle used for notification.

Return value

Type: HRESULT WINAPI

If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.

Return code/valueDescription
SL_E_INVALID_EVENT_ID
0xC004F019

The requested event ID is not valid.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft