要传递给函数的设备 VID 和 PID

发布于 2025-01-08 03:24:18 字数 494 浏览 3 评论 0 原文

我正在尝试使用以下函数:

PCHAR pVID_PID="vid_04D8&pid_fc5f";
DWORD n= MPUSBGetDeviceCount(pVID_PID);

它是从 mpusbapi.h,它的定义如下:

DWORD (*MPUSBGetDeviceCount)(PCHAR pVID_PID);

我想知道在哪里可以找到我的 USB 设备的 VID&PID 信息。我正在使用的似乎不起作用,因为 cout< 输出 0!预先感谢您的任何帮助。

I am trying to use the following function:

PCHAR pVID_PID="vid_04D8&pid_fc5f";
DWORD n= MPUSBGetDeviceCount(pVID_PID);

It is imported from mpusbapi.h, where it is defined as such:

DWORD (*MPUSBGetDeviceCount)(PCHAR pVID_PID);

I was wondering where I can find my USB device's VID&PID information. The one I am using doesn't seem to be working because cout<<n ouputs 0! Thanks in advance for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧城烟雨 2025-01-15 03:24:18

您通常会在与您正在使用的设备关联的驱动程序“.inf”文件中找到它们。

You will normally find them in the driver '.inf' files associated with the device you are using.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文