Share via


ExpertSubmitEvent

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

DWORD WINAPIExpertSubmitEvent(HEXPERTKEYhExpertKey,
PNMEVENTDATApExpertEvent);

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 Values

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

Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header

Declared in Netmon.h.

Library

Link to Nmapi.lib.

DLL Requires Nmapi.dll.