如何在设备驱动程序中支持VendorID [保留]

问题描述 投票:0回答:1

我有一个串行设备,该驱动程序包含总线驱动程序和端口驱动程序,总线驱动程序是Microsoft的mf.sys,端口驱动程序是我自己的。当我用自己的总线驱动程序替换Microsoft的mf.sys时出现了问题。替换为mf.sys时,该应用程序无法获取供应商信息,即,当应用程序调用QT功能QSerialPortInfo :: vendorIdentifier()和QSerialPortInfo :: productIdentifier()时,它返回0,表示该信息不可用。谁可以知道我该如何使其正常工作。非常感谢您的宝贵时间。

c++ c winapi registry device-driver
1个回答
0
投票

这通常在内核模式下使用注册表API,例如Zw*

请参阅以下文档以了解更多详细信息:

Using the Registry in a Driver

以及一些Windows驱动程序示例:https://github.com/microsoft/Windows-driver-samples/blob/master/general/registry/regfltr/sys/pre.c

© www.soinside.com 2019 - 2024. All rights reserved.