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.

89 lines
2.5 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File Name: fxUnatnd.h
  4. //
  5. // Abstract: Fax OCM Unattend file processing
  6. //
  7. // Environment: Windows XP / User Mode
  8. //
  9. // Copyright (c) 2000 Microsoft Corporation
  10. //
  11. // Revision History:
  12. //
  13. // Date: Developer: Comments:
  14. // ----- ---------- ---------
  15. // 27-Mar-2000 Oren Rosenbloom (orenr) Created
  16. //////////////////////////////////////////////////////////////////////////////
  17. #ifndef _FXUNATND_H_
  18. #define _FXUNATND_H_
  19. ///////////////////////////////
  20. // fxUnatnd_UnattendedData_t
  21. //
  22. // This type is used to store
  23. // the unattended data retrieved
  24. // from the unattend.txt file
  25. // and update the registry with
  26. // these values.
  27. //
  28. typedef struct fxUnatnd_UnattendedData_t
  29. {
  30. TCHAR szFaxPrinterName[_MAX_PATH + 1];
  31. DWORD dwIsFaxPrinterShared;
  32. TCHAR szCSID[_MAX_PATH + 1];
  33. TCHAR szTSID[_MAX_PATH + 1];
  34. DWORD dwRings;
  35. DWORD dwSendFaxes;
  36. DWORD dwReceiveFaxes;
  37. // should we run the configuration wizard for this unattended installation.
  38. DWORD dwSuppressConfigurationWizard;
  39. // SMTP configuration
  40. TCHAR szFaxUserName[_MAX_PATH + 1];
  41. TCHAR szFaxUserPassword[_MAX_PATH + 1];
  42. BOOL bSmtpNotificationsEnabled;
  43. TCHAR szSmtpSenderAddress[_MAX_PATH + 1];
  44. TCHAR szSmptServerAddress[_MAX_PATH + 1];
  45. DWORD dwSmtpServerPort;
  46. TCHAR szSmtpServerAuthenticationMechanism[_MAX_PATH + 1];
  47. // route incoming faxes to printer?
  48. BOOL bRouteToPrinter;
  49. TCHAR szRoutePrinterName[_MAX_PATH + 1];
  50. // route incoming faxes to email?
  51. BOOL bRouteToEmail;
  52. TCHAR szRouteEmailName[_MAX_PATH + 1];
  53. // Inbox configuration
  54. BOOL bArchiveIncoming;
  55. TCHAR szArchiveIncomingDir[_MAX_PATH + 1];
  56. // route incoming faxes to a specific directory.
  57. BOOL bRouteToDir;
  58. TCHAR szRouteDir[_MAX_PATH + 1];
  59. // archive outgoing faxes in a specific directory.
  60. BOOL bArchiveOutgoing;
  61. TCHAR szArchiveOutgoingDir[_MAX_PATH + 1];
  62. // Fax Applicaitons uninstalled during Upgrade
  63. DWORD dwUninstalledFaxApps;
  64. } fxUnatnd_UnattendedData_t;
  65. DWORD fxUnatnd_Init(void);
  66. DWORD fxUnatnd_Term(void);
  67. DWORD fxUnatnd_LoadUnattendedData();
  68. DWORD fxUnatnd_SaveUnattendedData();
  69. TCHAR* fxUnatnd_GetPrinterName();
  70. BOOL fxUnatnd_IsPrinterRuleDefined();
  71. BOOL fxUnatnd_GetIsPrinterShared();
  72. #endif // _FXUNATND_H_