windows-nt/Source/XPSP1/NT/printscan/print/spooler/splsetup/srvinst.hxx

79 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1995-97 Microsoft Corporation
All rights reserved.
Module Name:
SrvInst.h
Purpose:
Server side install class. Used to install a printer driver from the server side.
Author:
Patrick Vine (pvine) - 22 March 2000
Revision History:
--*/
#ifndef _SRVINST_H
#define _SRVINST_H
class CServerInstall
{
public:
CServerInstall();
~CServerInstall();
BOOL ParseCommand( LPTSTR pszCommandStr );
BOOL GetInstallParameters();
BOOL InstallDriver();
BOOL OpenPipe();
BOOL ClosePipe();
BOOL SendError();
DWORD GetLastError();
private:
void SetMaxTimeOut();
BOOL GetOneParam( TString * tString );
BOOL SetInfDir();
BOOL SetInfToNTPRINTDir();
BOOL bValidateSourcePath();
BOOL WriteOverlapped( HANDLE hFile,
LPVOID lpBuffer,
DWORD nNumberOfBytesToRead,
LPDWORD lpNumberOfBytesRead );
BOOL ReadOverlapped( HANDLE hFile,
LPVOID lpBuffer,
DWORD nNumberOfBytesToRead,
LPDWORD lpNumberOfBytesRead );
BOOL DriverNotInstalled();
DWORD _dwLastError;
TString _tsDriverName;
TString _tsInf;
TString _tsSource;
TString _tsFlags;
TString _tsPipeName;
HANDLE _hPipe;
DWORD _dwMaxTimeOut;
};
#endif