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.

183 lines
3.4 KiB

  1. #include "printscanpch.h"
  2. #pragma hdrstop
  3. #include <objbase.h>
  4. #include <shtypes.h>
  5. #include <prsht.h>
  6. #include <winspool.h>
  7. #include <winprtp.h>
  8. static
  9. VOID
  10. vPrinterPropPages(
  11. HWND hwndOwner,
  12. LPCTSTR pszPrinterName,
  13. INT nCmdShow,
  14. LPARAM lParam
  15. )
  16. {
  17. return;
  18. }
  19. static
  20. HRESULT
  21. ShowErrorMessageHR(
  22. OUT INT *piResult,
  23. IN HINSTANCE hModule,
  24. IN HWND hwnd,
  25. IN LPCTSTR pszTitle,
  26. IN LPCTSTR pszMessage,
  27. IN UINT uType,
  28. IN HRESULT hr
  29. )
  30. {
  31. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  32. }
  33. static
  34. HRESULT
  35. RegisterPrintNotify(
  36. IN LPCTSTR pszDataSource,
  37. IN IFolderNotify *pClientNotify,
  38. OUT LPHANDLE phFolder,
  39. OUT PBOOL pbAdministrator OPTIONAL
  40. )
  41. {
  42. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  43. }
  44. static
  45. HRESULT
  46. UnregisterPrintNotify(
  47. IN LPCTSTR pszDataSource,
  48. IN IFolderNotify *pClientNotify,
  49. OUT LPHANDLE phFolder
  50. )
  51. {
  52. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  53. }
  54. static
  55. BOOL
  56. bFolderRefresh(
  57. IN HANDLE hFolder,
  58. OUT PBOOL pbAdministrator
  59. )
  60. {
  61. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  62. }
  63. static
  64. HRESULT
  65. ShowErrorMessageSC(
  66. OUT INT *piResult,
  67. IN HINSTANCE hModule,
  68. IN HWND hwnd,
  69. IN LPCTSTR pszTitle,
  70. IN LPCTSTR pszMessage,
  71. IN UINT uType,
  72. IN DWORD dwCode
  73. )
  74. {
  75. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  76. }
  77. static
  78. BOOL
  79. bFolderGetPrinter(
  80. IN HANDLE hFolder,
  81. IN LPCTSTR pszPrinter,
  82. OUT PFOLDER_PRINTER_DATA pData,
  83. IN DWORD cbData,
  84. OUT PDWORD pcbNeeded
  85. )
  86. {
  87. return FALSE;
  88. }
  89. static
  90. BOOL
  91. bFolderEnumPrinters(
  92. IN HANDLE hFolder,
  93. OUT PFOLDER_PRINTER_DATA pData,
  94. IN DWORD cbData,
  95. OUT PDWORD pcbNeeded,
  96. OUT PDWORD pcbReturned
  97. )
  98. {
  99. return FALSE;
  100. }
  101. static
  102. VOID
  103. vQueueCreate(
  104. HWND hwndOwner,
  105. LPCTSTR pszPrinter,
  106. INT nCmdShow,
  107. LPARAM lParam
  108. )
  109. {
  110. return;
  111. }
  112. static
  113. VOID
  114. vServerPropPages(
  115. HWND hwndOwner,
  116. LPCTSTR pszServerName,
  117. INT nCmdShow,
  118. LPARAM lParam
  119. )
  120. {
  121. return;
  122. }
  123. static
  124. VOID
  125. vDocumentDefaults(
  126. HWND hwndOwner,
  127. LPCTSTR pszPrinterName,
  128. INT nCmdShow,
  129. LPARAM lParam
  130. )
  131. {
  132. return;
  133. }
  134. static
  135. BOOL
  136. bPrinterSetup(
  137. HWND hwnd,
  138. UINT uAction,
  139. UINT cchPrinterName,
  140. LPTSTR pszPrinterName,
  141. UINT* pcchPrinterName,
  142. LPCTSTR pszServerName
  143. )
  144. {
  145. return FALSE;
  146. }
  147. //
  148. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  149. //
  150. DEFINE_PROCNAME_ENTRIES(printui)
  151. {
  152. DLPENTRY(RegisterPrintNotify)
  153. DLPENTRY(ShowErrorMessageHR)
  154. DLPENTRY(ShowErrorMessageSC)
  155. DLPENTRY(UnregisterPrintNotify)
  156. DLPENTRY(bFolderEnumPrinters)
  157. DLPENTRY(bFolderGetPrinter)
  158. DLPENTRY(bFolderRefresh)
  159. DLPENTRY(bPrinterSetup)
  160. DLPENTRY(vDocumentDefaults)
  161. DLPENTRY(vPrinterPropPages)
  162. DLPENTRY(vQueueCreate)
  163. DLPENTRY(vServerPropPages)
  164. };
  165. DEFINE_PROCNAME_MAP(printui)