Device driver in C#?

  • Thread starter Thread starter Constantin Werner
  • Start date Start date
C

Constantin Werner

Hello,

I want to write a virtual networking adapter, preferably in C#. Is this
possible? Or can I only write windows xp device drivers in C / C++? Does
anyone know good resources for device driver programming in C# (if
possible)?

Thank you
 
Hello Constantin,

It's very unlikely it is possible to develop a device driver in managed
code. Managed code requires CLR to run, and CLR relies on Windows API to
perform its tasks. I think it's impossible for the CLR to run in the
low-level inside-OS environment drivers run in.
 
I first have to say that C# is like Java unadequate for driver development,
at least for now.
Even if you try, you have to heavily use p/invoke which has an additionally
overhead. I'd never use such an extremely lame driver which requires
lots of memory and stops every few seconds my internet connection because GC
is running, playing online games would then be impossible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top