Condividi tramite


DestroyPropertyDatabase Function

The DestroyPropertyDatabase function releases the resources used to create the protocol property database.

Syntax

DWORD WINAPI DestroyPropertyDatabase(
  __in  HPROTOCOL hProtocol
);

Parameters

  • hProtocol [in]
    Handle to the property database to be destroyed. The handle is passed to the parser DLL when Network Monitor calls the Deregister function.

Return Value

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

If the function is unsuccessful, the return value is an error code.

Return code Description
NMERR_INTERNAL_ERROR

An internal error occurred.

NMERR_INVALID_HPROTOCOL

Invalid handle in hProtocol.

 

Remarks

The DestroyPropertyDatabase function should be called only when implementing the Deregister export function for the protocol. For parser DLLs that support multiple protocols, the DestroyPropertyDatabase function is called for each implementation of Deregister.

For information on See
What parsers are, and how they work with Network Monitor. Parsers
Which entry points are included in the parser DLL. Parser DLL Architecture
How to implement Deregister— includes an example. Implementing Deregister

 

Requirements

Minimum supported client Windows 2000 Professional
Minimum supported server Windows 2000 Server
Header Netmon.h
Library Nmapi.lib
DLL Nmapi.dll

See Also

Deregister

Send comments about this topic to Microsoft

Build date: 11/9/2009