Re: Unidrv Minidriver for Win 9x??

From: vipin aravind (vipin_at_nospam.com)
Date: 04/02/04


Date: Fri, 2 Apr 2004 23:59:16 +0530

Use softice. Nice debugger.
vipin

"Bobby Mattappally [MS]" <bobbym@online.microsoft.com> wrote in message
news:SnBffxCGEHA.612@cpmsftngxa06.phx.gbl...
> Hi Sam,
> Is this an NT 4.0 driver?
> In NT, the rendering dll is run in kernel mode.
> So won't be able to debug it in usemode.
>
> --------------------
> From: "Sam" <anishsam@gnostice.com>
> Hi,
>
> Well, I am trying to create a virtual printer driver which will give me
the
> EMF file. I need to obtain the Metafile which is spooled. According to the
> reading that I've done, I have concluded that I'll need to write a Unidrv
> Minidriver for this, or a print processor (which will be more work). I was
> wondering if this will work for all platforms of Windows -
> 9X/ME/XP/NT/2K/etc. I guess I'll have to write different drivers for each
> platform, but based on the same technology - Unidrv Minidriver!!!!
>
> Are my assumptions right?
>
> Also, I'm having some trouble trying to debug and trace through the OEMDLL
> sample that comes with NTDDK. I created the checked build DLLs and
installed
> them. Then I opened WinDbg and attached to spoolsv.exe process.
>
> I've set the symbol path to windows 200 symbols and the OEMDLL's i386
> directory. These are my symbol paths I've set in WinDbg:
> C:\WinSymbols;C:\NTDDK\src\print\oemdll\i386;
>
> I've set the source path to:
> C:\NTDDK\src\print\oemdll\oemuni
>
> Then, I opened the "enable.cpp" and "dllentry.cpp" files using "Open
Source"
> menu option, and tried to set breakpoints. But it does not get set.
>
> When I invoke printing using WordPad, control comes to WinDbg, and I press
> F10 (Step Over) to go step by step. But the control never comes to any of
> the source files I've opened, and the "Command" window shows a number of
> "DLL ENTRY DLL ENTRY DLL ENTRY..." Nothing else.
>
> How can I trace through the source code? What am I doing wrong in the
above
> steps?
>
> Thanks in advance,
>
> --
> Sam.
>
>
>
> Hope this helps.
>
> Thank you,
> Bobby Mattappally
> Microsoft DDK Support
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>



Relevant Pages

  • Re: AoE for 4.x
    ... > Sam wrote: ... >> important file changes this picked up. ... >> netgraph a chance to get the packets if AoE is not loaded. ... >> TIA to all the curious eyes that skim the driver for glaring flaws. ...
    (freebsd-arch)
  • Re: AoE for 4.x
    ... > Sam wrote: ... >> I decided to write a 4.x driver thinking it would a) be easier to port ... > I can't recommend enough the utility of having a cvs mirror and using cvs to ... netgraph a chance to get the packets if AoE is not loaded. ...
    (freebsd-arch)
  • Re: Setup IBM DS 300 to a Windows 2003 server running on HS20
    ... Sam wrote: ... > Our company recently bought a new DS 300 with one single SCSI connecter ... Did you install the Windows 2003 driver for your SCSI interface? ... need the driver, and when you do the Win2K3 installation, you press the ...
    (comp.arch.storage)
  • Re: install hid driver
    ... "Sam M.H. Tsai" wrote: ... > My Driver was signed WHQL and we've obtained catalog file. ... >> SetupCopyOemInf to prep the system to install your driver when the ...
    (microsoft.public.development.device.drivers)