Common/PrinterInstall.cpp File Reference

#include "stdafx.h"
#include <winspool.h>
#include <tchar.h>
#include "PrinterInstall.h"
#include <windows.h>
Include dependency graph for PrinterInstall.cpp:

Go to the source code of this file.

Defines

#define ENVIRONMENT   _T("Windows NT x86")
 Supported printer driver OS.
#define DRIVER_DATA_TYPE   _T("")
 Printer driver data type.
#define PRINTER_DATA_TYPE   _T("RAW")
 Printed material data type.
#define DRIVER_MANUFACTURER   _T("Cogniview Systems")
 Driver manufacturer.
#define DEFAULT_PORT_MONITOR   _T("Local Port")
 Default system port monitor.
#define PARAM_INSTALLPRINTER   _T("/InstallPrinter")
 Install printer flag.
#define PARAM_REMOVEPRINTER   _T("/UninstallPrinter")
 Remove printer flag.
#define PARAM_NOUI   _T("/NoUI")
 No error messages flag.

Functions

std::tstring ConcatPaths (const std::tstring &sFolder, const std::tstring &sPathname, bool bAllowAbsoluteOverride)
 Helper function for combining paths.
bool ExistsAsFile (LPCTSTR pPath)

Detailed Description

Definition in file PrinterInstall.cpp.


Function Documentation

std::tstring ConcatPaths ( const std::tstring &  sFolder,
const std::tstring &  sPathname,
bool  bAllowAbsoluteOverride 
)

Helper function for combining paths.

Parameters:
sFolder Folder to combine
sPathname Path to combine (probably relative to sFolder)
bAllowAbsoluteOverride true to allow sPathname to have an absolute path, false to make sure it's relative
Returns:
The combined path

Definition at line 61 of file PrinterInstall.cpp.

References tstring.

Referenced by PrinterInstall::AddPortMonitor(), PrinterInstall::DoCopyFiles(), CCPDFPrinterInstaller::DoInstall(), and PrinterInstall::DoRemoveFiles().

bool ExistsAsFile ( LPCTSTR  pPath  ) 
Parameters:
pPath Path to test
Returns:
true if a file (not folder) exists in the path

Definition at line 100 of file PrinterInstall.cpp.

Referenced by PrinterInstall::AddPortMonitor().


Generated on Mon Jun 18 12:40:28 2012 for CC PDF Converter by doxygen 1.6.1