SLFireEvent function (slpublic.h)
Sends a specified event to a registered listener.
Syntax
HRESULT SLFireEvent(
[in] HSLC hSLC,
[in] PCWSTR pwszEventId,
[in] const SLID *pApplicationId
);
Parameters
[in] hSLC
Type: HSLC
The handle to the current SLC context.
[in] pwszEventId
Type: PCWSTR
The ID of the event to be fired.
[in] pApplicationId
Type: const SLID*
A pointer to the application ID.
Return value
Type: HRESULT WINAPI
If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.
Return code/value | Description |
---|---|
|
Access denied (API requires admin privileges). |
|
The requested event ID is not valid. |
|
The requested event is not registered with the service. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | slpublic.h |
Library | Slc.lib |
DLL | Slc.dll |