Share via


GetProperty

The GetProperty function returns a handle to a given property.

HPROPERTY WINAPIGetProperty(HPROTOCOLhProtocol,
LPSTRPropertyName);

Parameters

  • hProtocol
    [in] Handle to the protocol.
  • PropertyName
    [in] Name of the property (for example, Checksum).

Return Values

If the function is successful, the return value is the handle to the property.

If the function is unsuccessful, the return value is NULL.

Remarks

The GetProperty function can be used to obtain the property handle needed to locate instances of the property. The functions used to locate property instances are FindPropertyInstance (which locates the first instance) and FindPropertyInstanceRestart (which locates the next instance).

Experts and parsers can call the GetProperty function.

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.

Library

Link to Nmapi.lib.

DLL Requires Nmapi.dll.

See Also

FindPropertyInstance, FindPropertyInstanceRestart