Re: Is C# support load device driver?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Richard Blewett [DevelopMentor] (richardb_at_develop.com)
Date: 09/24/04


To: microsoft.public.dotnet.languages.csharp
Date: Fri, 24 Sep 2004 01:11:53 -0700

DeviceIOControl is simply a way of passing "op-codes" to a kernel mode device driver and retrieving the results. You obviously can't *write* a device driver in C# but you can interrogate a device driver via pinvoke.

 Regards

 Richard Blewett - DevelopMentor
 http://staff.develop.com/richardb/weblog

   nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/>

 Richard Blewett [DevelopMentor] wrote:
 
> Nope, yoou can interact directly with them vice the DeviceIOControl API.
> I've done this in the past to write to area of the physical disk that win32
> doesn't support.
>
> So I guess to be able to interact with a device driver from C# you'd have
> to P/Invoke to DeviceIOControl
 
 (just to make it clear to me, not to nittpick ;))
 But isn't this just a wrapper around Windows' device manager? There is no
 way you will be able to poke into hardware without a kernel space module, as
 everything is virtualized: you can't simply throw an interrupt or set an
 address to a value to change some hardware's internal settings (at least
 that's what I know of it).
 
 Frans.
 
>
> Regards
>
> Richard Blewett - DevelopMentor
>
http://staff.develop.com/richardb/weblog
>
>
> nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/
> z388pq003@msnews.microsoft.com>
>
> Steve wrote:
>
> > I wrote a simple virtual device driver int15.sys, Is C# support load the
> > device driver from AP?
>
> Aren't drivers used by the OS (windows) ? So how did you plan to use this
> driver?
 
 
 --
 Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
 My .NET Blog: http://weblogs.asp.net/fbouma
 Microsoft C# MVP
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

 
 [microsoft.public.dotnet.languages.csharp]



Relevant Pages

  • Re: getting timestamp of last interrupt?
    ... >>I'm writing a kernel mode device driver. ... >>In that device driver I need the timestamp of the last event for another ... >>I do not care if that timestamp is in jiffies or in gettimeofday ...
    (Linux-Kernel)
  • Re: Cant copy files named SOUND to my hard drive.
    ... The last time I wrote a device driver, ... Please do not send email directly to this alias. ... >> Regards, ... >> John Banes ...
    (microsoft.public.platformsdk.security)
  • Re: Device Driver programming
    ... but i have no idea about device driver. ... > Thanks & Regards, ... > India. ... Prev by Date: ...
    (microsoft.public.windowsxp.embedded)
  • Re: Which USB hub port is a device connected to?
    ... Beste Grüsse / Best regards / Votre bien devoue ... would like to do this either from within the device driver or from my ...
    (microsoft.public.development.device.drivers)
  • Re: [ANN] Atheros 802.11n USB firmware source code released
    ... compile and use it with the upstream ar9170 device driver. ... Is this source for same firmware that was closed? ... possible to fix AP mode for this firmware. ... Best regards, ...
    (Linux-Kernel)