Re: bitmap printer driver.

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



Hi Vipin and All,

I have wrote bitmap printer driver,

How can i get then page no, that is being printed?

For example, if user selects only page#4 for printing, how do i get 4?

Thanks,

jrc


Vipin wrote:
what do you mean by usermode/kernel mode in your post? what is the context?

--
Vipin Aravind
http://www.explorewindows.com/Blogs


<jrc.src@xxxxxxxxx> wrote in message
news:1156764880.148181.127740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I am writing bitmap printer driver in which i want output of print
command to bmp file.

after a searching and reading previous post for this i found that
oemuni\interface.cpp
IOemUni::ImageProcessing() is idle place to get bmp file. Am i correct?

i tried very simple thing is to create one file using
CreateFile/WriteFile/CloseHandle() api's but when i tried to build this
i get following errors..

oemuni\kmode\intrface.obj : error LNK2019: unresolved external symbol
__imp__CloseHandle@4 referenced in function "public: virtual long
__stdcall IOemUni::ImageProcessing(struct _DEVOBJ *,unsigned char
*,struct tagBITMAPINFOHEADER *,unsigned char *,unsigned long,struct
IPPARAMS *,unsigned char * *)"
(?ImageProcessing@IOemUni@@UAGJPAU_DEVOBJ@@PAEPAUtagBITMAPINFOHEADER@@1KPAUIPPARAMS@@PAPAE@Z)

NOTE: i am running winxp checked build environment.
similarly for createfile/writefile.

i have added following code in interface.cpp
CreateFile()
WriteFile()
Closehandle()


And also Which component i should go for usermode/kernel mode?

Please point me if i m on correct path...

Thanks in advance.

jrc


.



Relevant Pages

  • Re: bitmap printer driver.
    ... IOemUni::ImageProcessingis idle place to get bmp file. ... CreateFile/WriteFile/CloseHandle() api's but when i tried to build this ... *,struct tagBITMAPINFOHEADER *,unsigned char *,unsigned long,struct ... And also Which component i should go for usermode/kernel mode? ...
    (microsoft.public.development.device.drivers)
  • bitmap printer driver.
    ... after a searching and reading previous post for this i found that ... IOemUni::ImageProcessingis idle place to get bmp file. ... CreateFile/WriteFile/CloseHandle() api's but when i tried to build this ... *,struct tagBITMAPINFOHEADER *,unsigned char *,unsigned long,struct ...
    (microsoft.public.development.device.drivers)