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.

64 lines
2.9 KiB

  1. #ifndef _FAX_ROUTE_P_H_
  2. #define _FAX_ROUTE_P_H_
  3. //
  4. // Define the FAX_ROUTE_CALLBACKROUTINES_P structure which extends the
  5. // FAX_ROUTE_CALLBACKROUTINES structure (defined in FxsRoute.h) with a pointer
  6. // to a critical section in the service which protects configuration objects.
  7. //
  8. typedef struct _FAX_SERVER_RECEIPTS_CONFIGW
  9. {
  10. DWORD dwSizeOfStruct; // For version checks
  11. DWORD dwAllowedReceipts; // Any combination of DRT_EMAIL and DRT_MSGBOX
  12. FAX_ENUM_SMTP_AUTH_OPTIONS SMTPAuthOption; // SMTP server authentication type
  13. LPWSTR lptstrReserved; // Reserved; must be NULL
  14. LPWSTR lptstrSMTPServer; // SMTP server name
  15. DWORD dwSMTPPort; // SMTP port number
  16. LPWSTR lptstrSMTPFrom; // SMTP sender address
  17. LPWSTR lptstrSMTPUserName; // SMTP user name (for authenticated connections)
  18. LPWSTR lptstrSMTPPassword; // SMTP password (for authenticated connections)
  19. // This value is always NULL on get and may be NULL
  20. // on set (won't be written in the server).
  21. BOOL bIsToUseForMSRouteThroughEmailMethod;
  22. HANDLE hLoggedOnUser; // handle to a logged on user token for NTLM authentication
  23. } FAX_SERVER_RECEIPTS_CONFIGW, *PFAX_SERVER_RECEIPTS_CONFIGW;
  24. //
  25. // Private callback for MS Routing Extension
  26. //
  27. typedef DWORD (*PGETRECIEPTSCONFIGURATION)(PFAX_SERVER_RECEIPTS_CONFIGW*, BOOL);
  28. DWORD
  29. GetRecieptsConfiguration(
  30. PFAX_SERVER_RECEIPTS_CONFIGW* ppServerRecieptConfig,
  31. BOOL bNeedNTLMToken
  32. );
  33. typedef void ( *PFREERECIEPTSCONFIGURATION)( PFAX_SERVER_RECEIPTS_CONFIGW pServerRecieptConfig, BOOL fDestroy );
  34. void
  35. FreeRecieptsConfiguration(
  36. PFAX_SERVER_RECEIPTS_CONFIGW pServerRecieptConfig,
  37. BOOL fDestroy
  38. );
  39. #ifdef _FAXROUTE_
  40. typedef struct _FAX_ROUTE_CALLBACKROUTINES_P {
  41. DWORD SizeOfStruct; // size of the struct set by the fax service
  42. PFAXROUTEADDFILE FaxRouteAddFile;
  43. PFAXROUTEDELETEFILE FaxRouteDeleteFile;
  44. PFAXROUTEGETFILE FaxRouteGetFile;
  45. PFAXROUTEENUMFILES FaxRouteEnumFiles;
  46. PFAXROUTEMODIFYROUTINGDATA FaxRouteModifyRoutingData;
  47. PGETRECIEPTSCONFIGURATION GetRecieptsConfiguration;
  48. PFREERECIEPTSCONFIGURATION FreeRecieptsConfiguration;
  49. LPTSTR lptstrFaxQueueDir;
  50. } FAX_ROUTE_CALLBACKROUTINES_P, *PFAX_ROUTE_CALLBACKROUTINES_P;
  51. #endif //#ifdef _FAXROUTE_
  52. #endif // _FAX_ROUTE_P_H_