Share via


EXPERTCONFIG

The EXPERTCONFIG structure contains the configuration data of the expert. The expert overlays the RawConfigData member with an expert-specific structure.

typedef struct {
  DWORD RawConfigLength;
  BYTE RawConfigData[];
} EXPERTCONFIG, 
 *PEXPERTCONFIG;

Members

  • RawConfigLength
    Total length of the structure, including the four bytes used for the member. Network Monitor uses the value when the structure is saved-to and read-from a disk drive.

  • RawConfigData
    Configuration data. The expert must add the configuration data. For example, suppose that you had a data structure that looked like this.

    typedef struct
    {
        DWORD       RawConfigLength;   // Overlay of structure
        DWORD       PickNumEvents;
        DWORD       NumEventsSpecific;
        DWORD       PickSpeedThroughCapture;
        DWORD       PickStartup;
        DWORD       PickAttachProperties;
    } TESTEXPERTCONFIG;
    typedef TESTEXPERTCONFIG* LPTESTEXPERTCONFIG;
    

    Note that RawConfigLength ensures that the overlay works correctly. When you use the data, your code might look like this:

    BOOL WINAPI Configure( 
        HEXPERTKEY ExpertKey,
        PEXPERTCONFIG * ppConfig,
        PEXPERTSTARTUPINFO pStartupInfo,
        DWORD StartupFlags,
        HWND hWnd
    )
    {
        LPTESTEXPERTCONFIG  lpConfig;
    
        //...
        lpConfig = (LPTESTEXPERTCONFIG)(*ppConfig);
        //...
    }
    

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.