English 中文(简体)
DevMode Structure
原标题:

I have files I need to drive thru a print driver and save then as files. Can I programactly use the DevMode Structure to drive these files without openning the application it was created in? Also can I change the DevMode Structure values to change to other file types programmatically and continue to drive them and save them to files?

最佳回答

When you say "you have files you want to drive thru a print driver" - I assume you mean these files are input (document) files like a Word document, a Text file, a .jpg file etc, correct? If so, then I guess your idea wont hold good. DEVMODE is a driver structure used by the print driver to communicate to the application. It has the settings which are needed for printing the job. However, the application creates the print job by actually converting its content into the GDI format which is then passed to the print driver which converts it into the printer format. So for eg: A Word doc is read by the Word application, its content converted to GDI API calls and sent to GDI which then sends it to the driver which converts it into the printer language (say PCL or PS).

If you can give more details on why you want to do this, I can help you out

问题回答

暂无回答




相关问题
best solution to use a DLL/Driver?

Im working with a CD722UN Customer Display for our POS application. it comes with a USB2.0 connection and a installation package containing a driver ect.. now, for my application. how should i do ...

Unit testing device drivers

I have a situation where I need to write some unit tests for some device drivers for embedded hardware. The code is quite old and big and unfortunately doesn t have many tests. Right now, the only ...

Maximum number of drives in windows?

I m trying to figure out the available disk space programmatically in windows. For this, I need to first get a list of the available drives, then check which of those are local drives and then query ...

Transparent Proxy for Windows XP

I have an experimental TCP/IP stack running under Windows XP. This stack bypasses the Windows TCP/IP stack using a LSP and a NDIS IM. I now have a requirement to provide a proxy service for this to ...

Windows Named Pipe Problem

I m writing a driver that communicates with a userland application through a named pipe. The userland application creates the named pipe by calling CreateNamedPipe() and then passes the pipe name to ...

热门标签