资源简介
这个是ImagePrinter_2.1 虚拟打印机及安装包的源码,包含了打印机开发和安装一切的源码,由于64位驱动签名关系,此限定了只能安装32位系统,要想支持64位可在代码进行64位编译后修改安装源码和禁用电脑系统的驱动签名即可安装。
代码片段和文件信息
/*
Monitor.cpp
Project Full Name: imageprinter
http://sourceforge.net/projects/imageprinter/
http://code-industry.net
Copyright (C) 2007-2008 Ibadov Tariel
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#define MONITOR_EXPORTS
#include
#include
#include “PortList.h“
#include “Monitor.h“
#include “pcl/rpcl.h“
#include “p2jpg.h“
#include “utils.h“
#define szLocalMonitor _T(“ImagePrinter Port“)
HINSTANCE hInst=NULL;
HINSTANCE hSpoolssDll=NULL;
CRITICAL_SECTION SpoolerSection;
HANDLE m_hEvent=NULL;
CPortList *m_portlist=NULL;
TCHAR *m_sRegistryRoot=NULL;
bool default_ext_app;
bool select_ext_app;
extern long PageNo;
string NamePrintFile;
string NameTempFile;
TCHAR tempfilename[MAX_PATH];
TCHAR image_name[MAX_PATH];
bool onefile=false;
int qjpg=100;
bool multipage_tiff=false;
bool multipage_pdf=false;
extern int tif_quality;
TCHAR ext_app_name[MAX_PATH];
typedef BOOL (WINAPI *fpENUMPORTS)
(
LPWSTR pName
DWORD Level
LPBYTE pPorts
DWORD cbBuf
LPDWORD pcbNeeded
LPDWORD pcReturned
);
BOOL APIENTRY DllMain(HINSTANCE hModule DWORD dwReason LPVOID lpRes)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
hInst = hModule;
InitializeCriticalSection(&SpoolerSection);
DisableThreadLibraryCalls((HINSTANCE)hModule);
m_portlist=new CPortList();
return TRUE;
case DLL_PROCESS_DETACH:
case DLL_THREAD_DETACH:
if(m_hEvent)
CloseHandle(m_hEvent);
if(m_sRegistryRoot)
free((void*)m_sRegistryRoot);
if(hSpoolssDll)
FreeLibrary(hSpoolssDll);
delete m_portlist;
return TRUE;
}
UNREFERENCED_PARAMETER( lpRes );
return TRUE;
}
void EnterCritSection()
{
EnterCriticalSection(&SpoolerSection);
}
void LeaveCritSection()
{
LeaveCriticalSection(&SpoolerSection);
}
BOOL WINAPI iEnumPorts(LPWSTR pNameDWORD dwLevelLPBYTE pPortsDWORD cbBufLPDWORD pdwNeededLPDWORD pdwReturned)
{
EnterCritSection();
BOOL bResult = m_portlist->EnumPorts(pNamedwLevelpPortscbBufpdwNeededpdwReturned);
LeaveCritSection();
return bResult;
}
BOOL WINAPI iOpenPortEx(LPWSTR pNameLPWSTR pPrinterNamePHANDLE pHandle struct _MONITOR *pMonitor)
{
EnterCritSection();
PORT *pPort=m_portlist->FindPort(pName);
*pHandle=(HANDLE)pPort;
pPort->dwSt
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-14 08:47 ImagePrinter_2.1.src\
目录 0 2017-02-14 08:47 ImagePrinter_2.1.src\ImagePrinter_2.1.src\
目录 0 2017-02-14 08:47 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\
目录 0 2017-02-14 08:47 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\
文件 1159 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\adler32.o
文件 9377 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\bmpf.o
文件 795 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\cdjpeg.o
文件 1084 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\compress.o
文件 10149 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\crc32.o
文件 14584 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\deflate.o
文件 11422 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\gzio.o
文件 1614 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\imgport_private.res
文件 7722 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\infback.o
文件 1612 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\inffast.o
文件 14102 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\inflate.o
文件 2196 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\inftrees.o
文件 2282 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcapimin.o
文件 1311 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcapistd.o
文件 3268 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jccoefct.o
文件 2883 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jccolor.o
文件 2778 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcdctmgr.o
文件 6613 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jchuff.o
文件 1390 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcinit.o
文件 1060 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcmainct.o
文件 8227 2016-02-13 18:20 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcmarker.o
文件 4763 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcmaster.o
文件 839 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcomapi.o
文件 7842 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcparam.o
文件 7025 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcphuff.o
文件 2649 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcprepct.o
文件 4026 2016-02-13 18:21 ImagePrinter_2.1.src\ImagePrinter_2.1.src\imgport\.obj\jcsample.o
............此处省略314个文件信息
- 上一篇:opencv识别单行数字
- 下一篇:通达OA2016 最新破解补丁
相关资源
- smartprinter3.6免注册
- 虚拟打印机 将各类文档转换为图片输
- [PDF虚拟打印机]pdffactoryproV4.5注册码
- PDF虚拟打印机winXP完美版
- XPS虚拟打印机 驱动Microsoft XPS Documen
- 虚拟打印机驱动源码(C DDK)
- Adobe_PDF_Printer7
- 福昕PDF虚拟打印机+PDF文档阅读器
- win7下使用pdf虚拟打印机
- PDF虚拟打印机专业中文版-支持x64系统
- Vprint虚拟打印机 源代码
- windows虚拟打印开发设计
- 迅捷PDF虚拟打印机破解版
- Foxit PDF Creator v3.1.0.1210 虚拟打印机无
- 迅捷PDF虚拟打印机破解版.rar
评论
共有 条评论