UnregisterHealthMonitor

Is a prototype function for unregistering a health monitor.

Syntax

    #include <pexports.h>
    
    UINT32 UnregisterHealthMonitor (
      UINT32   moduleHandle,
      UINT32   handle,
      UINT8    category);
    

Parameters

moduleHandle
(IN) Specifies the NLM handle that was passed to you at startup. This parameter ensures that only the module that registered the monitor can unregister it.
handle
(IN) Specifies the handle that was returned to you when you registered your health monitor.
category
(IN) Specifies the category into which you grouped your health monitor. For available categories, see Section 6.7, Categories.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code. See Section 6.6, Health Monitor Error Codes.

Remarks

The UnregisterHealthMonitor function allows you to unregister a previously registered health monitor. The function requires the moduleHandle for your NLM and the handle that was returned when the health monitor was registered.