大网数据广告活动
网络与域名解析

Registering NDF Helper Class Extensions

· 52CE 我爱测

Each helper class extension has a number of registry keys associated with it. Some keys are required by COM, and some keys are required by NDF.

Each helper class extension has a number of registry keys associated with it. Some keys are required by COM, and some keys are required by NDF.

COM Registry Keys

Helper class extensions must be implemented as COM servers. COM registration must be completed for each helper class extension. The object's CLSID, the INetDiagHelperInfo interface, and the INetDiagHelper interface must be registered. Registration creates a number of COM-related registry keys for the NDF helper class extension.

NDF Registry Keys

Helper class extensions must be registered before interacting with the Network Diagnostics Framework and with other related helper classes. This is accomplished by populating the registry.

The following procedure shows how to add helper class extensions to the registry.

  1. Publish the names of helper classes implemented by the DLL and their dependencies by creating a key for the DLL under

    HKLM\System\CurrentControlSet\Control\NetDiagFx\VendorName\HostDLLs\Helper Class DLL\HelperClasses\Helper Class Name

    Replace VendorName, Helper Class DLL, and Helper Class Name with user-defined values as described below.

    Value Type Meaning
    VendorName REG_SZ The name of the vendor.
    Helper Class DLL REG_SZ Name of the DLL, without extension.
    Helper Class Name REG_SZ The name of the helper class on which the current helper class is dependent.

  2. Under each Helper Class Name key, publish the following information.

    Value Type Meaning
    CLSID REG_SZ A string that contains the COM class ID of the helper class.
    Version REG_SZ A string the contains the major and minor versions of the helper class in the format <major><minor>.
    Published REG_DWORD A value of 1 means that this helper class is expected to be directly invoked from the Diagnostics client. 0 means that it can be called only from another helper class.
    Parent REG_SZ A string that names the Microsoft extensible helper class that is being extended.

  3. For each helper class, publish the list of matching attributes by creating a key under

    HKLM\System\CurrentControlSet\Control\NetDiagFx\VendorName\HostDLLs\Helper Class DLL\HelperClasses\Helper Class Name\MatchAttributes

    They key must contain one or more values (one per attribute) of the following type.

    Value Type Meaning
    AttributeName REG_SZ|REG_DWORD|REG_BINARY A value that completes the name and value pair for a particular attribute.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。