Funzione SysEvent_UnregisterForEventNotificationsSysEvent_UnregisterForEventNotifications Function
Intestazione: #include <applibs/sysevent.h>Header: #include <applibs/sysevent.h>
Annulla la registrazione per le notifiche di sistema registrate da SysEvent_RegisterForEventNotifications.Unregisters from the system notifications that were registered by SysEvent_RegisterForEventNotifications.
Lo struct EventRegistration deve essere già registrato e la registrazione di ogni EventRegistration
può essere annullata una sola volta.The EventRegistration struct must already be registered, and each EventRegistration
may only be unregistered once.
int SysEvent_UnregisterForEventNotifications(EventRegistration *reg);
ParametriParameters
reg
Lo structEventRegistration
da rimuovere dal ciclo di eventi.reg
TheEventRegistration
struct to remove from the event loop.
ErrorsErrors
Restituisce-1 se viene rilevato un errore e imposta sul errno
valore di errore.Returns -1 if an error is encountered and sets errno
to the error value.
- EFAULT: Il parametro
reg
è NULL.EFAULT: Thereg
parameter is NULL.
errno
È possibile che vengano restituiti anche tutti gli altri, ma lo stesso comportamento potrebbe non essere mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be returned, but the same behavior might not be retained through system updates.
Valore restituitoReturn value
Restituisce 0 per l'esito positivo o-1 per l'esito negativo, nel qual caso errno
viene impostato sul valore di errore.Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Il manifesto dell'applicazione deve includere la funzionalità SystemEventNotifications.The application manifest must include the SystemEventNotifications capability.