IStats::Configure method
The Configure method submits capture configuration information.
Syntax
HRESULT STDMETHODCALLTYPE Configure(
[in] HBLOB hConfigurationBlob,
[out] HBLOB hErrorBlob
);
Parameters
-
hConfigurationBlob [in]
-
Handle to the BLOB that the caller configures.
-
hErrorBlob [out]
-
Handle to an error BLOB that contains additional error information.
Return value
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 |
---|---|
|
The string is not null-terminated. |
|
The CreateBlob method has not been called. |
|
The object that is pointed to is not a BLOB. |
|
The BLOB version number is incorrect. |
|
A BLOB entry already exists. |
|
The configuration BLOB specified by the hConfigurationBlob parameter lacks an entry needed to perform this operation. Look at the error BLOB returned by the hErrorBlob parameter to determine which entry was not found. |
|
The BLOB lacks owner or category information. |
|
The Owner section of the BLOB was not found. |
|
The Category section of the BLOB was not found. |
|
Category information was found but not understood. |
|
Tag information was found but not understood. |
|
The BLOB is corrupt. |
|
The trigger portion of the BLOB is corrupt. |
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 the hConfigurationBlob parameter. The returned error BLOB contains error information that the application can use for troubleshooting. For example, if NMERR_BLOB_ENTRY_DOES_NOT_EXIST is returned, the entry Network Monitor could not find is included in the returned error BLOB.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
DLL |
|