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.

44 lines
1.5 KiB

  1. //****************************************************************************
  2. // Generic Win 3.1 fax printer driver support
  3. //
  4. // History:
  5. // 02-jan-95 nandurir created.
  6. // 14-mar-95 reedb Use GDI hooks to move most functionality to UI.
  7. // 16-aug-95 reedb Move to kernel mode. Many declarations and
  8. // definitions moved from FAXCOMM.H.
  9. //
  10. //****************************************************************************
  11. #include "string.h"
  12. #include "stddef.h"
  13. #include "windows.h"
  14. #include "winddi.h"
  15. #include "faxcomm.h"
  16. BOOL InitPDEV(
  17. LPFAXDEV lpCliFaxDev, // Pointer to the client side FAXDEV
  18. LPFAXDEV lpSrvFaxDev, // Pointer to the server side FAXDEV
  19. ULONG cPatterns, // Count of standard patterns
  20. HSURF *phsurfPatterns, // Buffer for standard patterns
  21. ULONG cjGdiInfo, // Size of buffer for GdiInfo
  22. ULONG *pulGdiInfo, // Buffer for GDIINFO
  23. ULONG cjDevInfo, // Number of bytes in devinfo
  24. DEVINFO *pdevinfo // Device info
  25. );
  26. #define COLOR_INDEX_BLACK 0x0
  27. #define COLOR_INDEX_WHITE 0x1
  28. // user server defn.
  29. #define FW_16BIT 0x1 // look for 16bit windows only
  30. LPVOID UserServerDllInitialization(LPVOID);
  31. typedef HWND (*PFNFW)(LPTSTR, LPTSTR, UINT);
  32. typedef LRESULT (*PFNSM)(HWND, UINT, WPARAM, LPARAM);
  33. typedef LRESULT (*PFNSNM)(HWND, UINT, WPARAM, LPARAM);
  34. #if DBG
  35. #define LOGDEBUG(args) {faxlogprintf args;}
  36. #else
  37. #define LOGDEBUG(args)
  38. #endif