Leaked source code of windows server 2003
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.

151 lines
2.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1999
  3. All rights reserved.
  4. Module Name:
  5. tstpage.hxx
  6. Abstract:
  7. Print Test Page
  8. Author:
  9. Steve Kiraly (SteveKi) 01/03/96
  10. Revision History:
  11. Lazar Ivanov (LazarI) Jun-2000 (Win64 fixes)
  12. --*/
  13. #ifndef _TSTPAGE_HXX
  14. #define _TSTPAGE_HXX
  15. enum CONSTANT { kInchConversion = 100 };
  16. enum
  17. {
  18. MAX_TESTPAGE_DISPLAYNAME = 64
  19. };
  20. BOOL
  21. bPrintTestPage(
  22. IN HWND hWnd,
  23. IN LPCTSTR pszPrinterName,
  24. IN LPCTSTR pszShareName
  25. );
  26. BOOL
  27. bDoPrintTestPage(
  28. IN HWND hWnd,
  29. IN LPCTSTR pPrinterName
  30. );
  31. INT_PTR
  32. CALLBACK
  33. EndTestPageDlgProc(
  34. IN HWND hDlg,
  35. IN UINT uMsg,
  36. IN WPARAM wParam,
  37. IN LPARAM lParam
  38. );
  39. RECT
  40. GetMarginClipBox(
  41. IN HDC hdcPrint,
  42. IN INT iLeft,
  43. IN INT iRight,
  44. IN INT iTop,
  45. IN INT iBottom
  46. );
  47. HFONT
  48. CreateAndSelectFont(
  49. IN HDC hdc,
  50. IN UINT uResFaceName,
  51. IN UINT uPtSize
  52. );
  53. BOOL
  54. bPrintTestPageHeader(
  55. IN HDC hdc,
  56. IN BOOL bDisplayLogo,
  57. IN BOOL bDoGraphics,
  58. IN RECT *lprcPage,
  59. IN UINT uRightAlign
  60. );
  61. HFONT
  62. CreateAndSelectFont(
  63. IN HDC hdc,
  64. IN UINT uResFaceName,
  65. IN UINT uPtSize
  66. );
  67. BOOL
  68. cdecl
  69. PrintString(
  70. HDC hdc,
  71. LPRECT lprcPage,
  72. UINT uFlags,
  73. UINT uResId,
  74. ...
  75. );
  76. BOOL
  77. bPrintTestPageInfo(
  78. IN HDC hdc,
  79. IN LPRECT lprcPage,
  80. IN LPCTSTR pszPrinterName,
  81. IN UINT uRightAlign
  82. );
  83. BOOL
  84. IsColorDevice(
  85. IN DEVMODE *pDevMode
  86. );
  87. BOOL
  88. bGetPrinterInfo(
  89. IN LPCTSTR pszPrinterName,
  90. IN PRINTER_INFO_2 **ppInfo2,
  91. IN DRIVER_INFO_3 **ppDrvInfo3
  92. );
  93. BOOL
  94. PrintBaseFileName(
  95. IN HDC hdc,
  96. IN LPCTSTR lpFile,
  97. IN OUT LPRECT lprcPage,
  98. IN UINT uResID,
  99. IN UINT uRightAlign
  100. );
  101. BOOL
  102. PrintDependentFile(
  103. HDC hdc,
  104. LPRECT lprcPage,
  105. LPTSTR lpFile,
  106. LPTSTR lpDriver,
  107. UINT uRightAlign
  108. );
  109. BOOL
  110. GetCurrentTimeAndDate(
  111. IN UINT cchText,
  112. IN LPTSTR pszText
  113. );
  114. BOOL
  115. bContainTrailingSpaces(
  116. IN LPCTSTR pszShareName
  117. );
  118. #endif