#include "stdafx.h"
#include <winspool.h>
#include <tchar.h>
#include "PrinterInstall.h"
#include <windows.h>
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) |
Definition in file PrinterInstall.cpp.
std::tstring ConcatPaths | ( | const std::tstring & | sFolder, | |
const std::tstring & | sPathname, | |||
bool | bAllowAbsoluteOverride | |||
) |
Helper function for combining paths.
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 |
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 | ) |
pPath | Path to test |
Definition at line 100 of file PrinterInstall.cpp.
Referenced by PrinterInstall::AddPortMonitor().