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.

113 lines
2.0 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1998
  3. All rights reserved.
  4. Module Name:
  5. addprn.cxx
  6. Abstract:
  7. Add Printer Connection UI header.
  8. Author:
  9. Steve Kiraly (SteveKi) 10-Feb-1997
  10. Revision History:
  11. --*/
  12. #ifndef _ADDPRN_HXX
  13. #define _ADDPRN_HXX
  14. /********************************************************************
  15. Add Printer Connection class
  16. ********************************************************************/
  17. class TAddPrinterConnectionData : public TAsyncData
  18. {
  19. public:
  20. TAddPrinterConnectionData(
  21. VOID
  22. );
  23. ~TAddPrinterConnectionData(
  24. VOID
  25. );
  26. BOOL
  27. bAsyncWork(
  28. IN TAsyncDlg *pDlg
  29. );
  30. TString _strPrinter;
  31. BOOL _bShowConnectionUI;
  32. DWORD _ReturnValue;
  33. private:
  34. //
  35. // Operator = and copy are not defined.
  36. //
  37. TAddPrinterConnectionData &
  38. operator =(
  39. const TAddPrinterConnectionData &
  40. );
  41. TAddPrinterConnectionData(
  42. const TAddPrinterConnectionData &
  43. );
  44. };
  45. /********************************************************************
  46. Async version of add printer connection UI.
  47. ********************************************************************/
  48. BOOL
  49. PrintUIAddPrinterConnectionUI(
  50. IN HWND hwnd,
  51. IN LPCTSTR pszPrinter,
  52. IN BOOL bShowConnectionUI = TRUE
  53. );
  54. BOOL
  55. PrintUIGetPrinterInformation(
  56. IN HANDLE hPrinter,
  57. IN TString *pstrPrinterName = NULL,
  58. IN TString *pstrComment = NULL,
  59. IN TString *pstrLocation = NULL,
  60. IN TString *pstrShareName = NULL
  61. );
  62. BOOL
  63. PrintUIAddPrinterConnectionUIEx(
  64. IN HWND hwnd,
  65. IN LPCTSTR pszPrinter,
  66. IN TString *pstrPrinterName = NULL,
  67. IN TString *pstrComment = NULL,
  68. IN TString *pstrLocation = NULL,
  69. IN TString *pstrShareName = NULL
  70. );
  71. BOOL
  72. PrintUIAddPrinterConnection(
  73. IN LPCTSTR pszConnection,
  74. IN TString *pstrPrinter
  75. );
  76. BOOL
  77. ConvertDomainNameToShortName(
  78. IN LPCTSTR pszPrinter,
  79. IN LPCTSTR pszDomain,
  80. IN OUT TString &strShort
  81. );
  82. #endif