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.

40 lines
929 B

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1998-1999 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: printers.h
  6. //
  7. // Owner: YanL
  8. //
  9. // Description:
  10. //
  11. // Printer detection and installation
  12. // During detection printer
  13. //
  14. //=======================================================================
  15. #ifndef _PRINTERS_H
  16. class CPrinterDriverInfoArray
  17. {
  18. public:
  19. CPrinterDriverInfoArray();
  20. DWORD GetNumDrivers() { return m_dwNumDrivers; }
  21. LPDRIVER_INFO_6 GetDriverInfo(DWORD dwDriverIdx);
  22. bool GetHardwareID(LPDRIVER_INFO_6 pinfo, tchar_buffer& bufHardwareID);
  23. LPCTSTR GetArchitecture(LPDRIVER_INFO_6 pinfo);
  24. private:
  25. DWORD m_dwNumDrivers;
  26. byte_buffer m_bufInfo;
  27. WORD m_wCurArchitecture;
  28. };
  29. DWORD InstallPrinterDriver(
  30. IN LPCTSTR szDriverName,
  31. IN LPCTSTR szInstallFolder,
  32. IN LPCTSTR szArchitecture
  33. );
  34. #define _PRINTERS_H
  35. #endif