PostHealthState
Is a prototype for a function that updates the health of a component.
#include <pexports.h>
UINT32 PostHealthState (
UINT32 moduleHandle,
UINT32 handle,
char *maxValueString,
char *peakValueString,
char *currentValueString,
UINT8 currentState,
UINT8 *resUINT8,
UINT32 resUINT32);
If successful, returns 0. Otherwise, returns a nonzero error code. See Section 6.6, Health Monitor Error Codes.
The PostHealthState function reports the health of your system. You can only call this function after you have registered as a health monitor.
If you receive the error code HEALTH_MONITOR_REPLACED, stop sending your health state because another NLM has replaced your health monitor. This usually happens only with health monitors that are registered by the Portal NLM. They are replaced by NLMs that are better able to determine a component's health.