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.

100 lines
3.6 KiB

  1. //--------------------------------------------------------------------------
  2. //
  3. // Module Name: DEVLAYER.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: Rajeev Dujari
  9. //
  10. // Copyright (c) 1994 Microsoft Corporation
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef _DEVLAYER_
  14. #define _DEVLAYER_
  15. #include <windows.h>
  16. #ifndef WIN32
  17. #include <print.h>
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. // Function Prototypes
  23. DWORD WINAPI AtWkFax_Open
  24. (LPDEVMODE lpdv, LPTSTR lpszPort);
  25. BOOL WINAPI AtWkFax_StartDoc
  26. (DWORD dwContext, LPBYTE lpszHeader, DWORD cbHeader, DWORD hDC, LPTSTR lpszTitle);
  27. BOOL WINAPI AtWkFax_SetCopyCount
  28. (DWORD dwContext, UINT iCopies);
  29. BOOL WINAPI AtWkFax_StartPage
  30. (DWORD dwContext);
  31. BOOL WINAPI AtWkFax_WriteData
  32. (DWORD dwContext, LPBYTE lpszData, DWORD cbData);
  33. BOOL WINAPI AtWkFax_EndPage
  34. (DWORD dwContext);
  35. BOOL WINAPI AtWkFax_EndDoc
  36. (DWORD dwContext, LPBYTE lpszHeader, DWORD cbHeader);
  37. BOOL WINAPI AtWkFax_Abort
  38. (DWORD dwContext);
  39. BOOL WINAPI AtWkFax_Close
  40. (DWORD dwContext);
  41. BOOL WINAPI AtWkFax_ExtDeviceMode
  42. (LPDEVMODE lpdv, LPTSTR lpszPort);
  43. BOOL WINAPI AtWkFax_ResetDevice
  44. (DWORD dwContext, LPDEVMODE lpdv);
  45. BOOL WINAPI AtWkFax_GetResolutions
  46. (LPTSTR lpszPrinterName,LPTSTR lpszPortName, LPDWORD lpdwResolutions) ;
  47. BOOL WINAPI AtWkFax_GetPaperSizes
  48. (LPTSTR lpszPrinterName,LPTSTR lpszPortName, LPDWORD lpdwPaperSizes) ;
  49. // Function Pointers
  50. typedef DWORD (WINAPI *AWF_OPEN)
  51. (LPDEVMODE lpdv, LPTSTR lpszPort);
  52. typedef BOOL (WINAPI *AWF_STARTDOC)
  53. (DWORD dwContext, LPBYTE lpszHeader, DWORD cbHeader, DWORD hDC, LPTSTR lpszTitle);\
  54. typedef BOOL (WINAPI *AWF_SETCOPYCOUNT)
  55. (DWORD dwContext, UINT iCopies);
  56. typedef BOOL (WINAPI *AWF_STARTPAGE)
  57. (DWORD dwContext);
  58. typedef BOOL (WINAPI *AWF_WRITEDATA)
  59. (DWORD dwContext, LPBYTE lpszData, DWORD cbData);
  60. typedef BOOL (WINAPI *AWF_ENDPAGE)
  61. (DWORD dwContext);
  62. typedef BOOL (WINAPI *AWF_ENDDOC)
  63. (DWORD dwContext, LPBYTE lpszHeader, DWORD cbHeader);
  64. typedef BOOL (WINAPI *AWF_CLOSE)
  65. (DWORD dwContext);
  66. typedef BOOL (WINAPI *AWF_ABORT)
  67. (DWORD dwContext);
  68. typedef BOOL (WINAPI *AWF_EXTDEVICEMODE)
  69. (LPDEVMODE lpdv, LPTSTR lpszPort);
  70. typedef BOOL (WINAPI *AWF_RESETDEVICE)
  71. (DWORD dwOld, DWORD dwNew);
  72. typedef BOOL (WINAPI *AWF_GETRESOLUTIONS)
  73. (LPTSTR lpszPrinterName,LPTSTR lpszPortName, LPDWORD lpdwResolutions) ;
  74. typedef BOOL (WINAPI *AWF_GETPAPERSIZES)
  75. (LPTSTR lpszPrinterName,LPTSTR lpszPortName, LPDWORD lpdwPaperSizes) ;
  76. // Exported Names
  77. #define AWS_OPEN MAKEINTRESOURCE(10) //"AtWkFax_Open"
  78. #define AWS_STARTDOC MAKEINTRESOURCE(11) //"AtWkFax_StartDoc"
  79. #define AWS_SETCOPYCOUNT MAKEINTRESOURCE(12) //"AtWkFax_SetCopyCount"
  80. #define AWS_STARTPAGE MAKEINTRESOURCE(13) //"AtWkFax_StartPage"
  81. #define AWS_WRITEDATA MAKEINTRESOURCE(14) //"AtWkFax_WriteData"
  82. #define AWS_ENDPAGE MAKEINTRESOURCE(15) //"AtWkFax_EndPage"
  83. #define AWS_ENDDOC MAKEINTRESOURCE(16) //"AtWkFax_EndDoc"
  84. #define AWS_CLOSE MAKEINTRESOURCE(17) //"AtWkFax_Close"
  85. #define AWS_ABORT MAKEINTRESOURCE(18) //"AtWkFax_Abort"
  86. #define AWS_EXTDEVICEMODE MAKEINTRESOURCE(19) //"AtWkFax_ExtDeviceMode"
  87. #define AWS_RESETDEVICE MAKEINTRESOURCE(20) //"AtWkFax_ResetDevice"
  88. #define AWS_GETRESOLUTIONS MAKEINTRESOURCE(30) //"AtWkFax_GetResolutions"
  89. #define AWS_GETPAPERSIZES MAKEINTRESOURCE(31) //"AtWkFax_GetPaperSizes"
  90. #ifdef __cplusplus
  91. } // extern "C"
  92. #endif
  93. #endif // _DEVLAYER_