自定义驱动程序访问 - Win32 [英] Custom driver access - Win32

查看:107
本文介绍了自定义驱动程序访问 - Win32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CreateFile和DeviceIoControl调用自定义设备的Windows 10 IoT文档。

Windows 10 IoT documents calling a custom device using CreateFile and DeviceIoControl.

https://developer.microsoft.com/en-us/windows/iot/Samples/ CustomDeviceAccessor

https://developer.microsoft.com/en-us/windows/iot/Samples/CustomDeviceAccessor

这对于Windows 10中的企业应用程序是否可用?

Is this same available for an Enterprise App in Windows 10?

我们拥有的是基于赛普拉斯Fx2的定制USB硬件。我们还有自定义驱动程序,它使用共享内存进行一些非常有效的等时传输。一切正常Win32。现在我们想转移到UWP。

What we have is a custom USB hardware based on Cypress Fx2. We also have custom driver that uses shared memory for some very efficient Isochronous transfers. All works fine with Win32. Now we would like to move to UWP.

我们更喜欢win32 API到Windows.Devices.Usb的编程模型,因为后者需要多年的移植时间。我们还需要共享内存和等时支持的性能。

We prefer the programming model of the win32 APIs to Windows.Devices.Usb as the later would take us years in porting. Also we need the performance of shared memory and Isochronous support.

允许使用Win32访问我们的设备,如Windows IoT中所述,这将是非常有益的。

Permitting our device to be accessed using Win32 as documented in Windows IoT would be immensely beneficial.

物联网中推荐的那些指南在桌面上似乎不起作用。我无法"授予对AppContainer进程的访问权限"通过修改安全性注册表项,CreateFile失败并显示"拒绝访问"。

Those guidelines recommended in IoT do not seem to work in the desktop. I am unable to "Grant Access to AppContainer Processes" by modifying the Security registry key and CreateFile fails with "access denied".

我是否遗漏了某些内容或者甚至企业在UWP中完全阻止了CreateFile?

Am I missing something or CreateFile is entirely blocked in the UWP even for enterprises?

TIA

Ravi

推荐答案

Hello Sibi Sar,

Hello Sibi Sar,

>>我们更喜欢win32 API到Windows.Devices.Usb的编程模型,因为后者需要多年的移植时间。

>>We prefer the programming model of the win32 APIs to Windows.Devices.Usb as the later would take us years in porting.

您能举例说明您使用的win32 API吗?基于以下文档:

Can you take a example of the win32 APIs that you used. Based on the following doc:

https://msdn.microsoft.com/en-us/library/mt186162.aspx?f=255&MSPPError=-2147217396  (我还建议您查看此文档作为参考)

https://msdn.microsoft.com/en-us/library/mt186162.aspx?f=255&MSPPError=-2147217396 (I also recommend you check this doc as a reference)

我想检查您请求的API是否可以从
Win32获得和Windows for Windows运行时应用程序和通用Windows平台(UWP)应用程序

CRT / ZW不支持的功能

I want to check whether the API you request is available from Win32 and COM for Windows Runtime Apps and Universal Windows platform (UWP) Apps and CRT Functions Not Supported with /ZW.

祝你好运,

Barry


这篇关于自定义驱动程序访问 - Win32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆