Debugging oemuni

device driver

    Sponsored Links

    Next

  • 1. NDISWDM: what to do with pnp + power management IRPs
    NDIS will forward the PNP and Power IRPs to the lower edge automatically. You have no way to do that yourself in a miniport. -- "Hornik Valentin (CPR FEC)" < XXXX@XXXXX.COM > wrote in message news:bj74m5$of1$ XXXX@XXXXX.COM ... > hello, > > i am trying to attach serenum.sys to the lower edge of eliyas yakub's > ndiswdm driver. for plug n play, will i have to add dispatchpnp and > dispatchpower routines? or can i just pass pnp and power irps down to > serenum without any extra processing? > >
  • 2. PIO Examples
    I am very new at writing device drivers and I am busy developing a generic function driver. I am very uncertain about where and how to handle my IRP_MJ_WRITE and -READ IRPs and also about the way interrupts should be handled. Are there any simple examples for PIO-devices? I tried to look in the DDK examples but can't find one that is simple enough for me to understand. Did I miss one? Thank you for any assistance. Braam.
  • 3. About a ddk's function
    I have a big problem :-> I defined a var. for getting/retrieving the date from RtlTimeToTimeFields(); >> What I wanna do is when the year is either < or > than 2003 the driver must & must permanently disable the driver and also when the year is ==2003 than, driver will enable itself, well, the problem here is, when I do change the system date either < or > 2003 it works fine but when I change the date to the year == 2003 then, my driver don't do any required work ? here is the code fragment >> tfld=ExAllocatePool(PagedPool,sizeof(tfld)); RtlTimeToTimeFields(&ti,tfld); if(tfld->Year > 2003) { return 0; } if(tfld->Year < 2003) { return 0; } What sort of change is needed here ?
  • 4. MC file woes
    Hi y'all, I had successfully incorporated an mc file into my driver. My driver wrote System Event log messages which then I could happily decipher; the EventLog registry entry for my driver had EventMessageFile set up to point to my driver.sys file. All worked fine. Then I decided to follow the Microsoft model of using a dll (such as IoLogMsg.dll) to hold the event log messages. So I created a dummy dll, a dummy rc to include the msg.rc generated by the mc compiler. I installed the dll and changed EventMessageFile to point to drivermsg.dll instead of driver.sys. But now Event Viewer cannot locate the messge descriptions. When view the System Event log entry generated by my driver, I get "The description for EventID x in Source y cannot be found. blah blah..." And it is nothing as simple as: the file is missing. Something else is missing. Has anyone done this and if so, does anyone recall any step I might have missed that might result in this behavior? Thanks in advance, usha
  • 5. Copying files using device handles
    Wrong approach. LOCK does not invalidate the cached metadata. You need to call LOCK then DISMOUNT, and then copy the file sectorwise (good luck with NTFS with this). Then UNLOCK, then close the handle. Then the next new CreateFile to the volume will re-mount it back. "andrew" < XXXX@XXXXX.COM > wrote in message news:52d301c37677$79ab2170$ XXXX@XXXXX.COM ... > Having retrieved a handle using CreateFile() and locked > the volume using DeviceIoControl() with > FSCTL_LOCK_VOLUME, I now wish to copy a file from another > resource to the locked volume. Problem is I cannot find > any copy-file functions where you can pass the handle of > a volume as a parameter. Any assistance greatly > appreciated. > > Thanks

Debugging oemuni

Postby Mark Sargent » Fri, 19 Dec 2003 04:52:04 GMT

Hi all,
  I am having an issue debugging the oemuni printer driver.

I attach to the either Notepad or the spooler, which breaks correctly upon
printing.
I hit Go, and watch the modules load until it hits the errors:

ModLoad: 763e0000 76441000
C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\UNIDRV.DLL
ModLoad: 70000000 7000a000
C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\OEMUNI.DLL
OEMUNI:  IOemUni::QueryInterface {B91220AC-15CC-4E7A-A21E-9591F34D6F6C} not
supported.
ModLoad: 754c0000 75559000
C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\unires.dll
ERR fminit.c (302): Can't Load the font data for res_id= 136
WRN fminit.c (169): BFillinDeviceFM Fails
ERR fminit.c (193): Bad IFI Metrics Pointer

   I have installed windbg, built a checked version of oemuni driver
customisation and installed it.
I have copied the unidrv.dll, unidrvui.dll and unires.dll from a checked
build of windows.

I would appreciate any advice on debugging the ddk samples

Kind Regards

Mark



Similar Threads:

1.Debugging OEMUNI Sample

2.OEMUNI example from WinDDK

I'm very interested into adapting the OEM Microsoft universal printer driver 
example for my project.  However, before proceeding, I would just like to 
ensure if this example prints from client format data -> EMF -> PJL/PCL 
format. It would be superb if that could be clarified. 

3.OEMUNI & OEMUI, communication at start and end

Hi all,

How to get document or page setting from UI ? or how to retrieve same
from oemuni driver?

Thanks in advance.

 XXXX@XXXXX.COM  wrote:
> Hi all,
>
> I am writing bitmap printer driver, i have modified OEMUNI sample and
> after lots of efforts i am able to generate the bmp files as output of
> print command.
>
> Now, I want to notify the completion of this job to my user-mode UI.
>
> Can I Send message to my UI from oemuni.dll--oemenddoc()?
>
> Can I do CreateProcess from oemuni.dll--oemenddoc() ?
>
> Do i Need to write Ui-plugin dll for printer driver? if so which source
> code of DDK,XP, i need to look up? and which functions i need to
> override?
>
> Which approach should be taken into account?
>
> I also want to have my bmp file to be fixed height/width based on
> portrait mode or landscape mode ? how to achive this? How to Set page
> margins (top, left, etc) to zero or some fixed values rather than rely
> on user? For this do i need to have ui-dll? which source code i need to
> look at? is it oemui or psuirep?
> 
> Thanks in advance
> 
> jrc
> 
> Regards,
> jrc

4.OEMUI and OEMUNI

5.Perform Task upon print finish.(OEMUNI)

Hi all,

I am writing bitmap printer driver, i have modified OEMUNI sample and
after lots of efforts i am able to generate the bmp files as output of
print command.

Now, I want to notify the completion of this job to my user-mode UI.

Can I Send message to my UI from oemuni.dll--oemenddoc()?

Can I do CreateProcess from oemuni.dll--oemenddoc() ?

Do i Need to write Ui-plugin dll for printer driver? if so which source
code of DDK,XP, i need to look up? and which functions i need to
override?

Which approach should be taken into account?

I also want to have my bmp file to be fixed height/width based on
portrait mode or landscape mode ? how to achive this? How to Set page
margins (top, left, etc) to zero or some fixed values rather than rely
on user? For this do i need to have ui-dll? which source code i need to
look at? is it oemui or psuirep?

Thanks in advance

jrc

Regards,
jrc

6. Specify different DPI values in OemUni printerdriver

7. Printer Driver(OEMUNI): Black Output

8. NT4 kernel mode oemuni printer driver



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 13 guest