Cancels a previous registration for event notification
#include <nwadv.h>
int UnregisterForEvent (
LONG eventHandle);
(IN) Specifies the event handle that was returned by RegisterForEvent.
This function returns a value of 0 if successful. Otherwise, it returns an error code (nonzero value).