Funzione SysEvent_EventsCallbackSysEvent_EventsCallback Function
Intestazione: #include <applibs/sysevent.h>Header: #include <applibs/sysevent.h>
Questa funzione viene chiamata quando cambia lo stato di un evento di sistema registrato.This function is called when the status of a registered system event changes. Viene impostato un solo flag SysEvent_Events perché viene eseguita una sola chiamata di callback per ogni modifica di stato dell'evento.Only one SysEvent_Events flag is set because there is only one callback call for each event status change.
typedef void SysEvent_EventsCallback(SysEvent_Events event, SysEvent_Status state,
const SysEvent_Info *info, void *context);
ParametriParameters
event
Evento.event
The event.state
Nuovo stato dell'evento.state
The new status of the event.info
Informazioni aggiuntive sulla modifica dello stato.info
Additional info about the status change. Per poter recuperare le informazioni, è necessario passare questo puntatore a una funzione specifica dell'evento, ad esempio SysEvent_Info_GetUpdateData.To retrieve the information, pass this pointer to an event-specific function, such as SysEvent_Info_GetUpdateData. Il puntatore è valido solo fino a quando il callback non viene restituito.The pointer is valid only until the callback returns.context
Puntatore di contesto facoltativo che è stato passato a SysEvent_RegisterForEventNotifications.context
An optional context pointer that was passed to SysEvent_RegisterForEventNotifications.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Il manifesto dell'applicazione deve includere la funzionalità SystemEventNotifications.The application manifest must include the SystemEventNotifications capability.