EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

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

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2014 Microsoft