IRTC::Configure
The Configure method submits configuration data for a data capture.
HRESULT STDMETHODCALLTYPE Configure(HBLOBhConfigurationBlob,
HBLOBhErrorBlob);
Parameters
- hConfigurationBlob
[in] A handle to the BLOB that is configured by the caller. - hErrorBlob
[out] A handle to an error BLOB that contains additional error data.
Return Values
If the method is successful, the return value is NMERR_SUCCESS.
If the method is unsuccessful, the return value is one of the following error codes:
Return code | Description |
---|---|
NMERR_BLOB_NOT_INITIALIZED | The CreateBlob method has not been called. |
NMERR_INVALID_BLOB | The object pointed to is not a BLOB. |
NMERR_UPLEVEL_BLOB | The BLOB version number is incorrect. |
NMERR_BLOB_ENTRY_ALREADY_EXISTS | Duplicate BLOB. |
NMERR_BLOB_ENTRY_DOES_NOT_EXIST | The configuration BLOB specified by hConfigurationBlob lacks an entry needed to perform this operation. View the error BLOB returned by hErrorBlob to determine which entry was not found. |
NMERR_AMBIGUOUS_SPECIFIER | The BLOB Owner or Category data is missing. |
NMERR_BLOB_OWNER_NOT_FOUND | The BLOB Owner section was not found. |
NMERR_BLOB_CATEGORY_NOT_FOUND | The BLOB Category section was not found. |
NMERR_UNKNOWN_CATEGORY | The BLOB Category section was found, but not understood. |
NMERR_UNKNOWN_TAG | The BLOB Tag section was found, but not understood. |
NMERR_BLOB_CONVERSION_ERROR | The BLOB is corrupt. |
NMERR_ILLEGAL_TRIGGER | The trigger portion of the BLOB is corrupt. |
NMERR_BLOB_STRING_INVALID | The string is not null-terminated. |
Remarks
You must apply this method to restart an NPP that has been started, stopped, but not disconnected.
The error BLOB returned by hErrorBlob contains entries that Network Monitor could not understand or find in the configuration BLOB specified in hConfigurationBlob. The returned error BLOB contains error data that the application can use for troubleshooting. For example, if NMERR_BLOB_ENTRY_DOES_NOT_EXIST is returned, the entry Network Monitor cannot find is included in the returned error BLOB.
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. |
DLL | Requires Ndisnpp.dll. Requires Rmtnpp.dll. |