Re: Driver code sample for software devices?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mark Roddy (mroddy_at_nospam.spamt)
Date: 02/01/04


Date: Sun, 01 Feb 2004 10:50:54 -0500

On Sun, 1 Feb 2004 06:35:33 -0600, "BobF" <rNfOrSePeAzMe@charter.net>
wrote:

>Bryan,
>
>The problem I'm having is getting started. I'm not new to programming, but
>I am new to Windows drivers. I'm trying get my project laid out at a high
>level.
>
>The first question is "How do I make a piece of software show up as a device
>to other applications that are designed to connect to hardware?" I've
>answered this question for myself with the assumption that my app needs to
>be driven by a device driver. That assumption may not be incorrect, but its
>the one I'm working on for now.
>

See the toaster samples in the DDK - this entire collection of drivers
are 'software' devices.

If you are writing a PNP virtual device, it is enumerated off of
'root'.

>The second is how to generate interrupts - this leads to my next assumption;
>a software interrupt scheme will be required because there is no hardware to
>generate interrupts.
>

Use timer dpcs to simulate interrupts.

=====================
Mark Roddy
Windows .NET/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com



Relevant Pages

  • Re: [Fastboot] Re: [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel
    ... >> you don't reassign IOMMU entries at least). ... >> the hardware, as if all interrupts are shared. ... I guess there could be a problem with drivers ...
    (Linux-Kernel)
  • Re: Corrupt Windows XP Audio affects TAPI programs
    ... I understand what you are saying about Windows drivers, ... (hardware), it no longer showed in Device Manager. ... Wave Driver, its quite clear its an OS issue and not ...
    (microsoft.public.win32.programmer.tapi)
  • Re: masm32
    ... by the time you are done that hardware will be obsolete. ... makers write the Windows drivers. ... with the hardware you want to support. ...
    (comp.lang.asm.x86)
  • Re: [Full-disclosure] Firewire Attack on Windows Vista
    ... can basically be used as a hardware debugger to memory. ... The essential flaw here is that current SBP-2 drivers do not set up a ... (that's the firewire SCSI block protocol) ... don't know enough about windows drivers and disk access to ...
    (Full-Disclosure)
  • Re: Task Manager
    ... Taking Microsoft out of the picture, interrupts are a function of, or ... are really triggered by your hardware and the drivers for the hardware. ... Systems Engineer ...
    (microsoft.public.windows.server.sbs)