IESP::QueryStatus method

The QueryStatus method retrieves the NPP status.

Syntax

HRESULT STDMETHODCALLTYPE QueryStatus(
  [out] NETWORKSTATUS *pNetworkStatus
);

Parameters

pNetworkStatus [out]

A pointer to a returned NETWORKSTATUS structure that indicates the current state (capturing, paused, stopped, and so on) of the NPP. The user must allocate and free the memory for the NETWORKSTATUS structure.

Return value

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

If the method is unsuccessful, the return value is the following error code:

Return code Description
NMERR_INVALID_PARAMETER
The pNetworkStatus parameter is not pointing to a valid NETWORKSTATUS structure. Allocate memory for this structure and call IESP::QueryStatus again.

Remarks

This method can be called at any time after the CreateNPPInterface is called. You can call this method to see if the NPP is connected to the network, to find out the status of the current capture, and to see if any triggers are pending.

Before calling this method, allocate the memory required for the NETWORKSTATUS structure and free that memory when the structure is no longer required.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Netmon.h
DLL
Ndisnpp.dll;
Rmtnpp.dll

See also

IESP

CreateNPPInterface

NETWORKSTATUS