I have written earlier in C/C++ but currently, I need it to convert into C#.
Can anyone tell me the code/way How to write drivers in 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#.
Actually, you can write some drivers in C# if you use UMDF because it runs in usermode (see Getting Started with UMDF). But my recommendation is to use C/C++.