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.

81 lines
2.7 KiB

  1. //--------------------------------------------------------------------------
  2. //
  3. // Module Name: AWPDDL32.H
  4. //
  5. // Brief Description: This module contains declarations for the back end
  6. // interfaces for the At Work Fax Printer Device Layer.
  7. //
  8. // Author: Kent Settle (kentse)
  9. // Created: 23-Mar-1994
  10. //
  11. // Copyright (c) 1994 Microsoft Corporation
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef _AWPDDL32_H_
  15. #define _AWPDDL32_H_
  16. #ifndef LPTSTR
  17. #ifdef UNICODE
  18. typedef LPWSTR PTSTR, LPTSTR;
  19. #else
  20. typedef LPSTR PTSTR, LPTSTR;
  21. #endif
  22. #endif
  23. #ifdef UNICODE
  24. #define JOBSUMMARYDATA_NAME L"Microsoft_At_Work_Job_Summary_Data_Shared_Memory"
  25. #else
  26. #define JOBSUMMARYDATA_NAME "Microsoft_At_Work_Job_Summary_Data_Shared_Memory"
  27. #endif
  28. #define ID_JOBSUMMARYDATA 0x44534A44 // "DJSD"
  29. typedef struct _JOBSUMMARYDATA /* jsd */
  30. {
  31. DWORD dwID; // "DJSD" = Device Job Summary Data.
  32. DWORD dwNumPages; // number of pages contained in print job.
  33. DWORD dwError; // error code, if any.
  34. DWORD dwEndID; // "DJSD" = end of JOBSUMMARYDATA signature.
  35. } JOBSUMMARYDATA;
  36. typedef JOBSUMMARYDATA FAR *PJOBSUMMARYDATA;
  37. extern BOOL AtWkFax_SetupPublish(
  38. DWORD xRes,
  39. DWORD yRes,
  40. DWORD PaperSize,
  41. DWORD PaperWidth,
  42. DWORD PaperLength,
  43. DWORD Orientation,
  44. DWORD Halftone,
  45. LPTSTR pstrFileName,
  46. LPTSTR pstrJobEvent,
  47. LPTSTR pstrIDEvent,
  48. LPTSTR pstrErrorEvent);
  49. #if defined _NT_SUR_ || defined _CAIRO_
  50. extern BOOL AtWkFax_EndPage(DWORD);
  51. extern BOOL AtWkFax_StartDoc(DWORD, LPBYTE, DWORD, DWORD, LPTSTR);
  52. extern BOOL AtWkFax_StartPage(DWORD);
  53. extern BOOL AtWkFax_EndDoc(DWORD, LPBYTE, DWORD);
  54. extern BOOL AtWkFax_WriteData(DWORD, LPBYTE, DWORD);
  55. extern BOOL AtWkFax_Close(DWORD);
  56. extern BOOL AtWkFax_Abort(DWORD);
  57. extern BOOL AtWkFax_ExtDeviceMode(DEVMODE FAR *, LPTSTR);
  58. extern BOOL AtWkFax_DeviceCapabilities(LPDEVMODE, LPTSTR);
  59. extern DWORD AtWkFax_Open(LPDEVMODE, LPTSTR);
  60. extern BOOL AtWkFax_Reset(DWORD, LPDEVMODE);
  61. #else
  62. extern BOOL FAR PASCAL AtWkFax_EndPage(DWORD);
  63. extern BOOL FAR PASCAL AtWkFax_StartDoc(DWORD, LPBYTE, DWORD, DWORD, LPTSTR);
  64. extern BOOL FAR PASCAL AtWkFax_StartPage(DWORD);
  65. extern BOOL FAR PASCAL AtWkFax_EndDoc(DWORD, LPBYTE, DWORD);
  66. extern BOOL FAR PASCAL AtWkFax_WriteData(DWORD, LPBYTE, DWORD);
  67. extern BOOL FAR PASCAL AtWkFax_Close(DWORD);
  68. extern BOOL FAR PASCAL AtWkFax_Abort(DWORD);
  69. extern BOOL FAR PASCAL AtWkFax_ExtDeviceMode(DEVMODE FAR *, LPTSTR);
  70. extern BOOL FAR PASCAL AtWkFax_DeviceCapabilities(LPDEVMODE, LPTSTR);
  71. extern DWORD FAR PASCAL AtWkFax_Open(LPDEVMODE, LPTSTR);
  72. extern BOOL FAR PASCAL AtWkFax_Reset(DWORD, LPDEVMODE);
  73. #endif // !_NT_SUR_ || _CAIRO_
  74. #endif // _AWPDDL32_H_