本文介绍了写在C#中的驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C / C早些时候++编写的,但目前,我需要它转换成C#。

I have written earlier in C/C++ but currently, I need it to convert into C#.

谁能告诉我的code /方式如何编写驱动程序在C#中?

Can anyone tell me the code/way How to write drivers in C#?

其实目前我有一些问题,我用C ++编写旧的应用程序,我们必须写我们LPT1,COM打印机和其他USB驱动器的驱动程序在C#。

Actually currently I have some problems with my old application written in C++ and we have to write the drivers of our LPT1,COM Printers and other USB drivers in C#.

推荐答案

只要你不能。 C#产生的中间语言是由虚拟机(.NET)PTED间$ P $。所有这些东西在内核模式下运行在用户模式和WDM驱动程序运行。

Simply you can't. C# produces intermediate language that is interpreted by a virtual machine (.NET). All these stuff runs in user mode and WDM drivers run in kernel mode.

有一个DDK,但它不是在VStudio支持是(但你可以编译生成文件的项目虽然)。

There is a DDK but it is not supported in VStudio either (but you can make a makefile project for compilation though).

驱动开发是复杂的,容易出现蓝屏,并要求C,内核结构和mem操作有很好的理解。所需要的C#的这些技能无,因此.NET有一个漫长而痛苦的培训途径。

Driver development is complex, prone to blue screen and requires a good understanding of C , kernel structures and mem manipulation. None of those skills are required for C# and .NET therefore there is a long and painful training path.

这篇关于写在C#中的驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 11:50