ExpertSubmitEvent function

The ExpertSubmitEvent function indicates that an event condition exists and provides a data structure that describes the condition.

Syntax

DWORD WINAPI ExpertSubmitEvent(
  _In_ HEXPERTKEY   hExpertKey,
  _In_ PNMEVENTDATA pExpertEvent
);

Parameters

hExpertKey [in]

Unique identifier of the expert. Network Monitor passes hExpertKey to the expert when it calls the Run function.

pExpertEvent [in]

A pointer to an NMEVENTDATA structure that describes the event condition.

Return value

If the function is successful, the return value is NMERR_SUCCESS.

If the function is unsuccessful, the return value indicates the reason for the failure. If the return value is NMERR_EXPERT_TERMINATE, the expert immediately cleans up and returns.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Netmon.h
Library
Nmapi.lib
DLL
Nmapi.dll