LogCloseEventNotification - Example Code

The following example closes an event-notification mechanism that is connected to the Error Logging service.

  #define INCL_LOGGING
  #include <unidef.h>
  #include <os2.h>
  #include <stdio.h>
  #include <lfdef.h>

  {
   APIRET rc;                           /* return code */
   ULONG service;
   LCENREQUEST close_event_packet;
   HLOGNOTIFY       log_notify;

   service =       ERROR_LOGGING_SERVICE;

   /* Construct the LogChangeEventFilter parameter packet  */
   close_event_packet.packet_size = sizeof(LCENREQUEST);
   close_event_packet.packet_revision_number = LF_UNI_API;
   close_event_packet.LogNotify = log_notify;
   rc = LogCloseEventNotification(service,        /* service */
                 &close_event_packet)        /* parameter packet */
   if (rc |= 0)
      {
       printf("LogCloseEventNotification error: return code = %d",rc);
       return;
      }


[Back: LogCloseEventNotification - Related Functions]
[Next: LogCloseEventNotification - Topics]