Leaked source code of windows server 2003
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.

160 lines
4.7 KiB

  1. #ifndef _FAX_ARCHIVE
  2. #define _FAX_ARCHIVE
  3. const FMTID FMTID_FaxProperties = { 0x6c77ed37, 0x1f3e, 0x4b0a, { 0x9b, 0x89, 0xcd, 0x7f, 0x35, 0xbb, 0x42, 0x82 } };
  4. // 6c77ed37-1f3e-4b0a-9b89-cd7f35bb4282
  5. typedef struct _FAX_QUOTA_WARN {
  6. BOOL bLoggedQuotaEvent; // TRUE if an archive quota warning event was alreagy logged
  7. BOOL bConfigChanged; // TRUE when ever the archive configuration has changed.
  8. // The quota warning thread sets it to FASLE when he wakes up.
  9. } FAX_QUOTA_WARN;
  10. extern FAX_QUOTA_WARN g_FaxQuotaWarn[2];
  11. extern HANDLE g_hArchiveQuotaWarningEvent;
  12. #define PID_FAX_MESSAGE_START 100
  13. #define PID_FAX_CSID 100
  14. #define PID_FAX_TSID 101
  15. #define PID_FAX_PORT 102
  16. #define PID_FAX_ROUTING 103
  17. #define PID_FAX_CALLERID 104
  18. #define PID_FAX_DOCUMENT 105
  19. #define PID_FAX_SUBJECT 106
  20. #define PID_FAX_RETRIES 107
  21. #define PID_FAX_PRIORITY 108
  22. #define PID_FAX_PAGES 109
  23. #define PID_FAX_TYPE 110
  24. #define PID_FAX_START_TIME 111
  25. #define PID_FAX_END_TIME 112
  26. #define PID_FAX_SUBMISSION_TIME 113
  27. #define PID_FAX_ORIGINAL_SCHED_TIME 114
  28. #define PID_FAX_SENDER_USER_NAME 115
  29. #define PID_FAX_STATUS 116
  30. #define PID_FAX_STATUS_EX 117
  31. #define PID_FAX_STATUS_STR_EX 118
  32. #define PID_FAX_BROADCAST_ID 119
  33. #define PID_FAX_MESSAGE_END 119
  34. #define PID_FAX_RECIP_START 200
  35. #define PID_FAX_RECIP_NAME 200
  36. #define PID_FAX_RECIP_NUMBER 201
  37. #define PID_FAX_RECIP_COMPANY 202
  38. #define PID_FAX_RECIP_STREET 203
  39. #define PID_FAX_RECIP_CITY 204
  40. #define PID_FAX_RECIP_STATE 205
  41. #define PID_FAX_RECIP_ZIP 206
  42. #define PID_FAX_RECIP_COUNTRY 207
  43. #define PID_FAX_RECIP_TITLE 208
  44. #define PID_FAX_RECIP_DEPARTMENT 209
  45. #define PID_FAX_RECIP_OFFICE_LOCATION 210
  46. #define PID_FAX_RECIP_HOME_PHONE 211
  47. #define PID_FAX_RECIP_OFFICE_PHONE 212
  48. #define PID_FAX_RECIP_EMAIL 213
  49. #define PID_FAX_RECIP_END 213
  50. #define PID_FAX_SENDER_START 300
  51. #define PID_FAX_SENDER_BILLING 300
  52. #define PID_FAX_SENDER_NAME 301
  53. #define PID_FAX_SENDER_NUMBER 302
  54. #define PID_FAX_SENDER_COMPANY 303
  55. #define PID_FAX_SENDER_STREET 304
  56. #define PID_FAX_SENDER_CITY 305
  57. #define PID_FAX_SENDER_STATE 306
  58. #define PID_FAX_SENDER_ZIP 307
  59. #define PID_FAX_SENDER_COUNTRY 308
  60. #define PID_FAX_SENDER_TITLE 309
  61. #define PID_FAX_SENDER_DEPARTMENT 310
  62. #define PID_FAX_SENDER_OFFICE_LOCATION 311
  63. #define PID_FAX_SENDER_HOME_PHONE 312
  64. #define PID_FAX_SENDER_OFFICE_PHONE 313
  65. #define PID_FAX_SENDER_EMAIL 314
  66. #define PID_FAX_SENDER_TSID 315
  67. #define PID_FAX_SENDER_END 315
  68. BOOL GetUniqueJobIdFromFileName (
  69. LPCWSTR lpctstrFileName,
  70. DWORDLONG* pdwlUniqueJobId
  71. );
  72. BOOL GetMessageMsTags(
  73. LPCTSTR lpctstrFileName,
  74. PFAX_MESSAGE pMessage
  75. );
  76. BOOL GetFaxSenderMsTags(
  77. LPCTSTR lpctstrFileName,
  78. PFAX_PERSONAL_PROFILE pPersonalProfile
  79. );
  80. BOOL GetFaxRecipientMsTags(
  81. LPCTSTR lpctstrFileName,
  82. PFAX_PERSONAL_PROFILE pPersonalProfile
  83. );
  84. BOOL
  85. AddNTFSStorageProperties(
  86. LPTSTR FileName,
  87. PMS_TAG_INFO MsTagInfo,
  88. BOOL fSendJob
  89. );
  90. BOOL GetMessageNTFSStorageProperties(
  91. LPCTSTR lpctstrFileName,
  92. PFAX_MESSAGE pMessage
  93. );
  94. BOOL GetPersonalProfNTFSStorageProperties(
  95. LPCTSTR lpctstrFileName,
  96. FAX_ENUM_PERSONAL_PROF_TYPES PersonalProfType,
  97. PFAX_PERSONAL_PROFILE pPersonalProfile
  98. );
  99. LPWSTR
  100. GetRecievedMessageFileName(
  101. IN DWORDLONG dwlUniqueId
  102. );
  103. LPWSTR
  104. GetSentMessageFileName(
  105. IN DWORDLONG dwlUniqueId,
  106. IN PSID pSid
  107. );
  108. DWORD
  109. IsValidArchiveFolder (
  110. LPWSTR lpwstrFolder,
  111. FAX_ENUM_MESSAGE_FOLDER Folder
  112. );
  113. BOOL
  114. GetMessageIdAndUserSid (
  115. LPCWSTR lpcwstrFullPathFileName,
  116. FAX_ENUM_MESSAGE_FOLDER Folder,
  117. PSID* lppUserSid,
  118. DWORDLONG* pdwlMessageId
  119. );
  120. DWORD
  121. InitializeServerQuota ();
  122. BOOL
  123. GetArchiveSize(
  124. LPCWSTR lpcwstrArchive,
  125. DWORDLONG* lpdwlArchiveSize
  126. );
  127. #endif