G5410

所属分类:驱动编程
开发工具:Visual C++
文件大小:87KB
下载次数:7
上传日期:2012-03-08 10:12:35
上 传 者diaoweibin
说明:  比较简单的打印机驱动源码和打印机信息获取源码
(Printer driver source code and printer access to information source)

文件列表:
G5410\BITMAP.C (16010, 2000-12-30)
G5410\BITMAP.DEF (2729, 1998-06-03)
G5410\BITMAP.DLG (1748, 1996-09-12)
G5410\BITMAP.EXE (14400, 2005-10-14)
G5410\BITMAP.GP$ (770, 2001-03-20)
G5410\BITMAP.GPC (770, 2002-11-16)
G5410\BITMAP.H (2537, 1996-07-16)
G5410\BITMAP.MAP (10359, 2005-10-14)
G5410\BITMAP.OBJ (4302, 2000-12-30)
G5410\BITMAP.RC (1077, 2002-11-16)
G5410\BITMAP.RC$ (1077, 2001-03-20)
G5410\BITMAP.RCV (1404, 1998-06-03)
G5410\BITMAP.RES (3694, 2005-10-14)
G5410\BITMAP.SYM (1028, 2005-10-14)
G5410\COMBINE.ICO (766, 1996-04-02)
G5410\G5410.drv (14400, 2005-10-14)
G5410\G5425.drv (13760, 2005-10-13)
G5410\LANDSCAP.ICO (766, 1996-04-02)
G5410\LIBINIT.ASM (3929, 1998-06-03)
G5410\LIBINIT.OBJ (409, 2000-12-28)
G5410\MAKEFILE (3084, 2005-10-13)
G5410\MAKEFILE.bak (3084, 2002-11-16)
G5410\MEMORY.H (1957, 1994-09-16)
G5410\MINIDLG.C (28740, 1999-10-10)
G5410\MINIDRIV.C (26795, 2005-10-14)
G5410\MINIDRIV.OBJ (7666, 2005-10-14)
G5410\MSVC.PDB (6038, 1999-10-12)
G5410\NODLG.C (28788, 1999-10-10)
G5410\OEMSETUP.INF (62, 2002-11-16)
G5410\PORTRAIT.ICO (766, 1996-04-02)
G5410\RCa04076 (2276, 2005-10-09)
G5410\SEC.TXT (1426, 1999-10-13)
G5410\SOURCES (84, 1998-06-03)
G5410\STANDARD.PFM (139, 1998-06-03)
G5410\WINIOCTL.H (86979, 1998-04-24)
G5410 (0, 2006-01-11)

***************************************************************************** * * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR * * PURPOSE. * * * * Copyright (C) 1993-95 Microsoft Corporation. All Rights Reserved. * * * ***************************************************************************** The BITMAP.DRV takes an application's "print out" and stores it in device-independent format (DIB). The structure of a DIB is as follows: =============================== = BITMAPFILEHEADER = = = = BITMAPINFOHEADER = = = = DIB's color table (if one) = = = = DIB's image = =============================== The BITMAP.DRV is very simplistic (no extensive error checking, keeps the whole "print out" in a global allocated buffer before writing to disk). The BITMAP.DRV is intended to be a starting point for fax/bitmap drivers that want to use UNIDRV.DLL. The BITMAP.DRV is installed as a normal printer driver would be. The source in BITMAP.C demonstrates the use of UNIDRV's Dump() callback function. Basically, UNIDRV will write all of its printer escape sequences (specified as escape 0 in RC file) to the nul file. The BITMAP.DRV doesn't want these escape sequences to be written to the DIB file. So, the BITMAP.DRV intercepts the raster output from UNIDRV through the use of fnDump() in BITMAP.C. BITMAP.DRV takes care of DWORD aligning the scan lines and opening, writing to, and closing the DIB file. The BITMAP.DRV creates the DIB file at STARTDOC time and will write the image to the file at ENDDOC time and then close the file. NOTE: You may have to add the BITMAPFILEHEADER declaration to your GDIDEFS.INC (or some other include file) if the compiler doesn't recognize it.

近期下载者

相关文件


收藏者