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.

121 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. config.h
  5. Abstract:
  6. This file contains all typedefs, etc necessary
  7. for reading and writing the fax configuration
  8. information.
  9. Author:
  10. Wesley Witt (wesw) 26-Dec-1993
  11. Environment:
  12. User Mode
  13. --*/
  14. #ifndef _FAXCONFIG_
  15. #define _FAXCONFIG_
  16. #define SEND_ASAP 0
  17. #define SEND_CHEAP 1
  18. #define SEND_AT_TIME 2
  19. #define SEND_BEST 0
  20. #define SEND_EDITABLE 1
  21. #define SEND_PRINTED 2
  22. #define DEFAULT_SEND_AS SEND_BEST
  23. #define PAPER_US_LETTER 0 // US Letter page size
  24. #define PAPER_US_LEGAL 1
  25. #define PAPER_A4 2
  26. #define PAPER_B4 3
  27. #define PAPER_A3 4
  28. #define PRINT_PORTRAIT 0 // Protrait printing
  29. #define PRINT_LANDSCAPE 1
  30. #define DEFAULT_PRINT_ORIENTATION PRINT_PORTRAIT
  31. #define IMAGE_QUALITY_BEST 0
  32. #define IMAGE_QUALITY_STANDARD 1
  33. #define IMAGE_QUALITY_FINE 2
  34. #define IMAGE_QUALITY_300DPI 3
  35. #define IMAGE_QUALITY_400DPI 4
  36. #define DEFAULT_IMAGE_QUALITY IMAGE_QUALITY_BEST
  37. #define NUM_OF_SPEAKER_VOL_LEVELS 4 // Number of speaker volume levels
  38. #define DEFAULT_SPEAKER_VOLUME 2 // Default speaker volume level
  39. #define SPEAKER_ALWAYS_ON 2 // Speaker mode: always on
  40. #define SPEAKER_ON_UNTIL_CONNECT 1 // speaker on unitl connected
  41. #define SPEAKER_ALWAYS_OFF 0 // Speaker off
  42. #define DEFAULT_SPEAKER_MODE SPEAKER_ON_UNTIL_CONNECT // Default speaker mode
  43. #define NUM_OF_RINGS 3
  44. #define ANSWER_NO 0
  45. #define ANSWER_MANUAL 1
  46. #define ANSWER_AUTO 2
  47. #define DEFAULT_ANSWER_MODE ANSWER_NO
  48. #define MakeTime(hh,mm,ampm) ((ULONG)(((BYTE)(ampm)) | ((ULONG)((BYTE)(mm))) << 8) | ((ULONG)((BYTE)(hh))) << 16)
  49. #define GetTime(tv,hh,mm,ampm) \
  50. {\
  51. ampm = (SHORT)((tv) & 0xff);\
  52. mm = (SHORT)(((tv) >> 8) & 0xff);\
  53. hh = (SHORT)(((tv) >> 16) & 0xff);\
  54. }
  55. typedef struct _FAX_CONFIGURATION {
  56. //
  57. // used for versioning
  58. //
  59. ULONG SizeOfStruct;
  60. //
  61. // general
  62. //
  63. ULONG Debug;
  64. TCHAR DataFileDir[MAX_PATH];
  65. //
  66. // messaging
  67. //
  68. ULONG SendTime;
  69. ULONG CheapTimeStart;
  70. ULONG CheapTimeEnd;
  71. ULONG MsgFormat;
  72. ULONG PaperSize;
  73. ULONG ImageQuality;
  74. ULONG Orientation;
  75. ULONG SendCoverPage;
  76. ULONG ChangeSubject;
  77. TCHAR CoverPageName[MAX_PATH];
  78. //
  79. // dialing
  80. //
  81. ULONG NumberRetries;
  82. ULONG RetryDelay;
  83. } FAX_CONFIGURATION, *PFAX_CONFIGURATION;
  84. BOOL
  85. GetFaxConfiguration(
  86. PFAX_CONFIGURATION FaxConfig
  87. );
  88. BOOL
  89. SetFaxConfiguration(
  90. PFAX_CONFIGURATION FaxConfig
  91. );
  92. BOOL
  93. SetDefaultFaxConfiguration(
  94. VOID
  95. );
  96. #endif
  97.