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.

430 lines
10 KiB

  1. /*++
  2. Copyright (c) 1991-1992 Microsoft Corporation
  3. Module Name:
  4. DosPrint.h
  5. Abstract:
  6. This contains prototypes for the DosPrint routines
  7. Author:
  8. Dave Snipp (DaveSn) 16-Apr-1991
  9. Environment:
  10. Revision History:
  11. 22-Apr-1991 JohnRo
  12. Use constants from <lmcons.h>.
  13. 18-Jun-1992 JohnRo
  14. RAID 10324: net print vs. UNICODE.
  15. --*/
  16. #ifndef _DosPRINT_
  17. #define _DosPRINT_
  18. #include "rxprint.h"
  19. /****************************************************************
  20. * *
  21. * Function prototypes *
  22. * *
  23. ****************************************************************/
  24. SPLERR SPLENTRY DosPrintDestEnumA(
  25. LPSTR pszServer,
  26. WORD uLevel,
  27. PBYTE pbBuf,
  28. WORD cbBuf,
  29. PUSHORT pcReturned,
  30. PUSHORT pcTotal
  31. );
  32. SPLERR SPLENTRY DosPrintDestEnumW(
  33. LPWSTR pszServer,
  34. WORD uLevel,
  35. PBYTE pbBuf,
  36. WORD cbBuf,
  37. PUSHORT pcReturned,
  38. PUSHORT pcTotal
  39. );
  40. #ifdef UNICODE
  41. #define DosPrintDestEnum DosPrintDestEnumW
  42. #else
  43. #define DosPrintDestEnum DosPrintDestEnumA
  44. #endif // !UNICODE
  45. SPLERR SPLENTRY DosPrintDestControlA(
  46. LPSTR pszServer,
  47. LPSTR pszDevName,
  48. WORD uControl
  49. );
  50. SPLERR SPLENTRY DosPrintDestControlW(
  51. LPWSTR pszServer,
  52. LPWSTR pszDevName,
  53. WORD uControl
  54. );
  55. #ifdef UNICODE
  56. #define DosPrintDestControl DosPrintDestControlW
  57. #else
  58. #define DosPrintDestControl DosPrintDestControlA
  59. #endif // !UNICODE
  60. SPLERR SPLENTRY DosPrintDestGetInfoA(
  61. LPSTR pszServer,
  62. LPSTR pszName,
  63. WORD uLevel,
  64. PBYTE pbBuf,
  65. WORD cbBuf,
  66. PUSHORT pcbNeeded
  67. );
  68. SPLERR SPLENTRY DosPrintDestGetInfoW(
  69. LPWSTR pszServer,
  70. LPWSTR pszName,
  71. WORD uLevel,
  72. PBYTE pbBuf,
  73. WORD cbBuf,
  74. PUSHORT pcbNeeded
  75. );
  76. #ifdef UNICODE
  77. #define DosPrintDestGetInfo DosPrintDestGetInfoW
  78. #else
  79. #define DosPrintDestGetInfo DosPrintDestGetInfoA
  80. #endif // !UNICODE
  81. SPLERR SPLENTRY DosPrintDestAddA(
  82. LPSTR pszServer,
  83. WORD uLevel,
  84. PBYTE pbBuf,
  85. WORD cbBuf
  86. );
  87. SPLERR SPLENTRY DosPrintDestAddW(
  88. LPWSTR pszServer,
  89. WORD uLevel,
  90. PBYTE pbBuf,
  91. WORD cbBuf
  92. );
  93. #ifdef UNICODE
  94. #define DosPrintDestAdd DosPrintDestAddW
  95. #else
  96. #define DosPrintDestAdd DosPrintDestAddA
  97. #endif // !UNICODE
  98. SPLERR SPLENTRY DosPrintDestSetInfoA(
  99. LPSTR pszServer,
  100. LPSTR pszName,
  101. WORD uLevel,
  102. PBYTE pbBuf,
  103. WORD cbBuf,
  104. WORD uParmNum
  105. );
  106. SPLERR SPLENTRY DosPrintDestSetInfoW(
  107. LPWSTR pszServer,
  108. LPWSTR pszName,
  109. WORD uLevel,
  110. PBYTE pbBuf,
  111. WORD cbBuf,
  112. WORD uParmNum
  113. );
  114. #ifdef UNICODE
  115. #define DosPrintDestSetInfo DosPrintDestSetInfoW
  116. #else
  117. #define DosPrintDestSetInfo DosPrintDestSetInfoA
  118. #endif // !UNICODE
  119. SPLERR SPLENTRY DosPrintDestDelA(
  120. LPSTR pszServer,
  121. LPSTR pszPrinterName
  122. );
  123. SPLERR SPLENTRY DosPrintDestDelW(
  124. LPWSTR pszServer,
  125. LPWSTR pszPrinterName
  126. );
  127. #ifdef UNICODE
  128. #define DosPrintDestDel DosPrintDestDelW
  129. #else
  130. #define DosPrintDestDel DosPrintDestDelA
  131. #endif // !UNICODE
  132. SPLERR SPLENTRY DosPrintQEnumA(
  133. LPSTR pszServer,
  134. WORD uLevel,
  135. PBYTE pbBuf,
  136. WORD cbBuf,
  137. PUSHORT pcReturned,
  138. PUSHORT pcTotal
  139. );
  140. SPLERR SPLENTRY DosPrintQEnumW(
  141. LPWSTR pszServer,
  142. WORD uLevel,
  143. PBYTE pbBuf,
  144. WORD cbBuf,
  145. PUSHORT pcReturned,
  146. PUSHORT pcTotal
  147. );
  148. #ifdef UNICODE
  149. #define DosPrintQEnum DosPrintQEnumW
  150. #else
  151. #define DosPrintQEnum DosPrintQEnumA
  152. #endif // !UNICODE
  153. SPLERR SPLENTRY DosPrintQGetInfoA(
  154. LPSTR pszServer,
  155. LPSTR pszQueueName,
  156. WORD uLevel,
  157. PBYTE pbBuf,
  158. WORD cbBuf,
  159. PUSHORT pcbNeeded
  160. );
  161. SPLERR SPLENTRY DosPrintQGetInfoW(
  162. LPWSTR pszServer,
  163. LPWSTR pszQueueName,
  164. WORD uLevel,
  165. PBYTE pbBuf,
  166. WORD cbBuf,
  167. PUSHORT pcbNeeded
  168. );
  169. #ifdef UNICODE
  170. #define DosPrintQGetInfo DosPrintQGetInfoW
  171. #else
  172. #define DosPrintQGetInfo DosPrintQGetInfoA
  173. #endif // !UNICODE
  174. SPLERR SPLENTRY DosPrintQSetInfoA(
  175. LPSTR pszServer,
  176. LPSTR pszQueueName,
  177. WORD uLevel,
  178. PBYTE pbBuf,
  179. WORD cbBuf,
  180. WORD uParmNum
  181. );
  182. SPLERR SPLENTRY DosPrintQSetInfoW(
  183. LPWSTR pszServer,
  184. LPWSTR pszQueueName,
  185. WORD uLevel,
  186. PBYTE pbBuf,
  187. WORD cbBuf,
  188. WORD uParmNum
  189. );
  190. #ifdef UNICODE
  191. #define DosPrintQSetInfo DosPrintQSetInfoW
  192. #else
  193. #define DosPrintQSetInfo DosPrintQSetInfoA
  194. #endif // !UNICODE
  195. SPLERR SPLENTRY DosPrintQPauseA(
  196. LPSTR pszServer,
  197. LPSTR pszQueueName
  198. );
  199. SPLERR SPLENTRY DosPrintQPauseW(
  200. LPWSTR pszServer,
  201. LPWSTR pszQueueName
  202. );
  203. #ifdef UNICODE
  204. #define DosPrintQPause DosPrintQPauseW
  205. #else
  206. #define DosPrintQPause DosPrintQPauseA
  207. #endif // !UNICODE
  208. SPLERR SPLENTRY DosPrintQContinueA(
  209. LPSTR pszServer,
  210. LPSTR pszQueueName
  211. );
  212. SPLERR SPLENTRY DosPrintQContinueW(
  213. LPWSTR pszServer,
  214. LPWSTR pszQueueName
  215. );
  216. #ifdef UNICODE
  217. #define DosPrintQContinue DosPrintQContinueW
  218. #else
  219. #define DosPrintQContinue DosPrintQContinueA
  220. #endif // !UNICODE
  221. SPLERR SPLENTRY DosPrintQPurgeA(
  222. LPSTR pszServer,
  223. LPSTR pszQueueName
  224. );
  225. SPLERR SPLENTRY DosPrintQPurgeW(
  226. LPWSTR pszServer,
  227. LPWSTR pszQueueName
  228. );
  229. #ifdef UNICODE
  230. #define DosPrintQPurge DosPrintQPurgeW
  231. #else
  232. #define DosPrintQPurge DosPrintQPurgeA
  233. #endif // !UNICODE
  234. SPLERR SPLENTRY DosPrintQAddA(
  235. LPSTR pszServer,
  236. WORD uLevel,
  237. PBYTE pbBuf,
  238. WORD cbBuf
  239. );
  240. SPLERR SPLENTRY DosPrintQAddW(
  241. LPWSTR pszServer,
  242. WORD uLevel,
  243. PBYTE pbBuf,
  244. WORD cbBuf
  245. );
  246. #ifdef UNICODE
  247. #define DosPrintQAdd DosPrintQAddW
  248. #else
  249. #define DosPrintQAdd DosPrintQAddA
  250. #endif // !UNICODE
  251. SPLERR SPLENTRY DosPrintQDelA(
  252. LPSTR pszServer,
  253. LPSTR pszQueueName
  254. );
  255. SPLERR SPLENTRY DosPrintQDelW(
  256. LPWSTR pszServer,
  257. LPWSTR pszQueueName
  258. );
  259. #ifdef UNICODE
  260. #define DosPrintQDel DosPrintQDelW
  261. #else
  262. #define DosPrintQDel DosPrintQDelA
  263. #endif // !UNICODE
  264. SPLERR SPLENTRY DosPrintJobGetInfoA(
  265. LPSTR pszServer,
  266. BOOL bRemote,
  267. WORD uJobId,
  268. WORD uLevel,
  269. PBYTE pbBuf,
  270. WORD cbBuf,
  271. PUSHORT pcbNeeded
  272. );
  273. SPLERR SPLENTRY DosPrintJobGetInfoW(
  274. LPWSTR pszServer,
  275. BOOL bRemote,
  276. WORD uJobId,
  277. WORD uLevel,
  278. PBYTE pbBuf,
  279. WORD cbBuf,
  280. PUSHORT pcbNeeded
  281. );
  282. #ifdef UNICODE
  283. #define DosPrintJobGetInfo DosPrintJobGetInfoW
  284. #else
  285. #define DosPrintJobGetInfo DosPrintJobGetInfoA
  286. #endif // !UNICODE
  287. SPLERR SPLENTRY DosPrintJobSetInfoA(
  288. LPSTR pszServer,
  289. BOOL bRemote,
  290. WORD uJobId,
  291. WORD uLevel,
  292. PBYTE pbBuf,
  293. WORD cbBuf,
  294. WORD uParmNum
  295. );
  296. SPLERR SPLENTRY DosPrintJobSetInfoW(
  297. LPWSTR pszServer,
  298. BOOL bRemote,
  299. WORD uJobId,
  300. WORD uLevel,
  301. PBYTE pbBuf,
  302. WORD cbBuf,
  303. WORD uParmNum
  304. );
  305. #ifdef UNICODE
  306. #define DosPrintJobSetInfo DosPrintJobSetInfoW
  307. #else
  308. #define DosPrintJobSetInfo DosPrintJobSetInfoA
  309. #endif // !UNICODE
  310. SPLERR SPLENTRY DosPrintJobPauseA(
  311. LPSTR pszServer,
  312. BOOL bRemote,
  313. WORD uJobId
  314. );
  315. SPLERR SPLENTRY DosPrintJobPauseW(
  316. LPWSTR pszServer,
  317. BOOL bRemote,
  318. WORD uJobId
  319. );
  320. #ifdef UNICODE
  321. #define DosPrintJobPause DosPrintJobPauseW
  322. #else
  323. #define DosPrintJobPause DosPrintJobPauseA
  324. #endif // !UNICODE
  325. SPLERR SPLENTRY DosPrintJobContinueA(
  326. LPSTR pszServer,
  327. BOOL bRemote,
  328. WORD uJobId
  329. );
  330. SPLERR SPLENTRY DosPrintJobContinueW(
  331. LPWSTR pszServer,
  332. BOOL bRemote,
  333. WORD uJobId
  334. );
  335. #ifdef UNICODE
  336. #define DosPrintJobContinue DosPrintJobContinueW
  337. #else
  338. #define DosPrintJobContinue DosPrintJobContinueA
  339. #endif // !UNICODE
  340. SPLERR SPLENTRY DosPrintJobDelA(
  341. LPSTR pszServer,
  342. BOOL bRemote,
  343. WORD uJobId
  344. );
  345. SPLERR SPLENTRY DosPrintJobDelW(
  346. LPWSTR pszServer,
  347. BOOL bRemote,
  348. WORD uJobId
  349. );
  350. #ifdef UNICODE
  351. #define DosPrintJobDel DosPrintJobDelW
  352. #else
  353. #define DosPrintJobDel DosPrintJobDelA
  354. #endif // !UNICODE
  355. SPLERR SPLENTRY DosPrintJobEnumA(
  356. LPSTR pszServer,
  357. LPSTR pszQueueName,
  358. WORD uLevel,
  359. PBYTE pbBuf,
  360. WORD cbBuf,
  361. PWORD pcReturned,
  362. PWORD pcTotal
  363. );
  364. SPLERR SPLENTRY DosPrintJobEnumW(
  365. LPWSTR pszServer,
  366. LPWSTR pszQueueName,
  367. WORD uLevel,
  368. PBYTE pbBuf,
  369. WORD cbBuf,
  370. PWORD pcReturned,
  371. PWORD pcTotal
  372. );
  373. #ifdef UNICODE
  374. #define DosPrintJobEnum DosPrintJobEnumW
  375. #else
  376. #define DosPrintJobEnum DosPrintJobEnumA
  377. #endif // !UNICODE
  378. SPLERR SPLENTRY DosPrintJobGetIdA(
  379. HANDLE hFile,
  380. PPRIDINFO pInfo,
  381. WORD cbInfo
  382. );
  383. SPLERR SPLENTRY DosPrintJobGetIdW(
  384. HANDLE hFile,
  385. PPRIDINFO pInfo,
  386. WORD cbInfo
  387. );
  388. #ifdef UNICODE
  389. #define DosPrintJobGetId DosPrintJobGetIdW
  390. #else
  391. #define DosPrintJobGetId DosPrintJobGetIdA
  392. #endif // !UNICODE
  393. #endif // ndef _DosPRINT_