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.

98 lines
3.3 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // File Name: faxocm.h
  4. //
  5. // Abstract: Header file used by Faxocm source files
  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. // 15-Mar-2000 Oren Rosenbloom (orenr) Created
  16. //////////////////////////////////////////////////////////////////////////////
  17. #ifndef _FAXOCM_H_
  18. #define _FAXOCM_H_
  19. #include <windows.h>
  20. #include <setupapi.h>
  21. #include <ocmanage.h>
  22. #include <winspool.h>
  23. #include <tapi.h>
  24. #include <shlobj.h>
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #include <tchar.h>
  28. #include <sddl.h>
  29. #include <advpub.h>
  30. #include "fxsapip.h"
  31. #define NO_FAX_LIST
  32. #include "faxutil.h"
  33. #include "faxreg.h"
  34. #include "debugex.h"
  35. #include "routemapi.h"
  36. #include "resource.h"
  37. // submodule include files
  38. #include "fxconst.h"
  39. #include "fxocDbg.h"
  40. #include "fxocFile.h"
  41. #include "fxocLink.h"
  42. #include "fxState.h"
  43. #include "fxocMapi.h"
  44. #include "fxocPrnt.h"
  45. #include "fxocReg.h"
  46. #include "fxocSvc.h"
  47. #include "fxocUtil.h"
  48. #include "fxUnatnd.h"
  49. #include "fxocUpgrade.h"
  50. // some useful macros
  51. #define SecToNano(_sec) (DWORDLONG)((_sec) * 1000 * 1000 * 10)
  52. #define MinToNano(_min) SecToNano((_min)*60)
  53. BOOL faxocm_IsInited(void);
  54. HINSTANCE faxocm_GetAppInstance(void);
  55. DWORD faxocm_GetComponentID(TCHAR *pszComponentID,
  56. DWORD dwNumBufChars);
  57. HINF faxocm_GetComponentInf(void);
  58. BOOL faxocm_GetComponentInfName(TCHAR* szInfFileName);
  59. HSPFILEQ faxocm_GetComponentFileQueue(void);
  60. DWORD faxocm_GetComponentSetupMode(void);
  61. DWORDLONG faxocm_GetComponentFlags(void);
  62. UINT faxocm_GetComponentLangID(void);
  63. DWORD faxocm_GetComponentSourcePath(TCHAR *pszSourcePath,
  64. DWORD dwNumBufChars);
  65. DWORD faxocm_GetComponentUnattendFile(TCHAR *pszUnattendFile,
  66. DWORD dwNumBufChars);
  67. DWORD faxocm_GetProductType(void);
  68. OCMANAGER_ROUTINES* faxocm_GetComponentHelperRoutines(void);
  69. EXTRA_ROUTINES* faxocm_GetComponentExtraRoutines(void);
  70. void faxocm_GetVersionInfo(DWORD *pdwExpectedOCManagerVersion,
  71. DWORD *pCurrentOCManagerVersion);
  72. void faxocm_GetProductInfo(PRODUCT_SKU_TYPE* pInstalledProductSKU,
  73. DWORD* dwInstalledProductBuild);
  74. DWORD faxocm_HasSelectionStateChanged(LPCTSTR pszSubcomponentId,
  75. BOOL *pbSelectionStateChanged,
  76. BOOL *pbCurrentlySelected,
  77. BOOL *pbOriginallySelected);
  78. typedef enum
  79. {
  80. REPORT_FAX_INSTALLED, // Report fax is installed
  81. REPORT_FAX_UNINSTALLED, // Report fax is uninstalled
  82. REPORT_FAX_DETECT // Detect fax installation state and report it
  83. } FaxInstallationReportType;
  84. extern FaxInstallationReportType g_InstallReportType /* = REPORT_FAX_DETECT*/;
  85. #endif // _FAXOCM_H_