Windows.Devices.Custom.IOControlCode in Windows 10 Universal

本文关键字:Windows Universal in IOControlCode Devices Custom | 更新日期: 2023-09-27 18:06:53

我可以在Windows 10通用应用程序中使用Windows. devices . custom . iocontrolcode吗?我正在尝试使用自定义驱动程序,微软说这是Windows 8.1应用程序使用的。有人知道变通的办法吗?

当我尝试在我的Windows 10通用应用程序中使用Windows. devices . custom . iocontrolcode时,我得到错误:

错误CS1069类型名称'IOControlCode'无法在名称空间"Windows.Devices.Custom"。此类型已转发给Windows, Version=255.255.255.255,文化=中性PublicKeyToken=null, ContentType=WindowsRuntime'考虑添加对该程序集的引用

我不明白它说要添加什么汇编?Windows运行时?它位于哪里?

Windows.Devices.Custom.IOControlCode in Windows 10 Universal

Add a Reference -> Universal Windows-> Extensions-> Microsoft Desktop Extension SDK for Universal App Platform.