SLUnregisterEvent function

Unregisters a registered event in the SL service.

Syntax


HRESULT WINAPI SLUnregisterEvent(
  _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 that will be unregistered.

pApplicationId [in]

Type: const SLID*

A pointer to the application ID that the event will be unregistered from.

hEvent [in]

Type: HANDLE

The registered event handle.

Return value

Type: HRESULT WINAPI

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

Return code/valueDescription
E_INVALIDARG
0x80070057

One or more arguments are not valid.

SL_E_INVALID_EVENT_ID
0xC004F019

The requested event ID is not valid.

SL_E_EVENT_NOT_REGISTERED
0xC004F01A

The requested event is not registered with the service.

 

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

 

 

Show: