Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1995-97 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. SrvInst.h
  6. Purpose:
  7. Server side install class. Used to install a printer driver from the server side.
  8. Author:
  9. Patrick Vine (pvine) - 22 March 2000
  10. Revision History:
  11. --*/
  12. #ifndef _SRVINST_H
  13. #define _SRVINST_H
  14. class CServerInstall
  15. {
  16. public:
  17. CServerInstall();
  18. ~CServerInstall();
  19. BOOL ParseCommand( LPTSTR pszCommandStr );
  20. BOOL GetInstallParameters();
  21. BOOL InstallDriver();
  22. BOOL OpenPipe();
  23. BOOL ClosePipe();
  24. BOOL SendError();
  25. DWORD GetLastError();
  26. private:
  27. void SetMaxTimeOut();
  28. BOOL GetOneParam( TString * tString );
  29. BOOL SetInfDir();
  30. BOOL SetInfToNTPRINTDir();
  31. BOOL bValidateSourcePath();
  32. BOOL WriteOverlapped( HANDLE hFile,
  33. LPVOID lpBuffer,
  34. DWORD nNumberOfBytesToRead,
  35. LPDWORD lpNumberOfBytesRead );
  36. BOOL ReadOverlapped( HANDLE hFile,
  37. LPVOID lpBuffer,
  38. DWORD nNumberOfBytesToRead,
  39. LPDWORD lpNumberOfBytesRead );
  40. BOOL DriverNotInstalled();
  41. DWORD _dwLastError;
  42. TString _tsDriverName;
  43. TString _tsInf;
  44. TString _tsSource;
  45. TString _tsFlags;
  46. TString _tsPipeName;
  47. HANDLE _hPipe;
  48. DWORD _dwMaxTimeOut;
  49. };
  50. #endif