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.

53 lines
1.9 KiB

  1. //File: setuputil.h
  2. #include <TCHAR.h>
  3. #include <windows.h>
  4. #include <winspool.h>
  5. #include <stdio.h>
  6. #include <Msi.h>
  7. #include <DebugEx.h>
  8. #define MIGRATION_KEY TEXT("Software\\Microsoft\\Fax\\Migration")
  9. #define SETUP_KEY TEXT("Software\\Microsoft\\Fax\\Setup")
  10. #define MIGRATION_COVER_PAGES TEXT("CoverPagesDirectory")
  11. #define NEW_COVER_PAGES TEXT("CoverPageDir")
  12. #define REGKEY_SBS45_W9X_ARP TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\FaxWizardDeinstKey")
  13. #define REGKEY_SBS45_W9X_CLIENT TEXT("SOFTWARE\\Microsoft\\Microsoft Fax Server Client")
  14. #define ADDINS_DIRECTORY _T("Addins\\")
  15. #define FXSEXT_ECF_FILE _T("FXSEXT.ecf")
  16. #define DEFERRED_BOOT _T("DeferredBoot")
  17. #define REGKEY_SBS2000_FAX _T("Software\\Microsoft\\SharedFax")
  18. #define REGKEY_SBS2000_FAX_SETUP REGKEY_SBS2000_FAX _T("\\Setup")
  19. #define REGKEY_SBS2000_FAX_SETUP_UPGRADE REGKEY_SBS2000_FAX_SETUP _T("\\Upgrade")
  20. #define REGKEY_SBS2000_FAX_BACKUP TEXT("Software\\Microsoft\\SharedFaxBackup")
  21. #define REGVAL_STORED_PRINTERS TEXT("StoredPrinters")
  22. #define REGVAL_STORED_PRINTERS_COUNT TEXT("StoredPrintersCount")
  23. #define W9X_PRINT_ENV _T("Windows 4.0")
  24. #define NT4_PRINT_ENV _T("Windows NT x86")
  25. //
  26. // fax common setup routines
  27. //
  28. BOOL PrivateMsiGetProperty
  29. (
  30. MSIHANDLE hInstall, // installer handle
  31. LPCTSTR szName, // property identifier, case-sensitive
  32. LPTSTR szValueBuf // buffer for returned property value
  33. );
  34. BOOL
  35. DeleteFaxPrinter(
  36. LPCTSTR lptstrFaxPrinterName // name of the printer to delete
  37. );
  38. BOOL FillDriverInfo(DRIVER_INFO_3* pDriverInfo3,LPCTSTR pEnvironment);
  39. DWORD IsMSIProductInstalled(LPCTSTR pProductGUID,BOOL* pbProductInstalled);