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.

109 lines
2.8 KiB

  1. #ifndef __MIGRATE_H
  2. #define __MIGRATE_H
  3. /*++
  4. migrate.h
  5. Copyright (c) 1997 Microsoft Corporation
  6. This file contains prototypes & definitions for the Win95->XP Fax
  7. migration DLL.
  8. Author:
  9. Brian Dewey (t-briand) 1997-7-14
  10. --*/
  11. //
  12. // Vendor Info Stucture
  13. //
  14. typedef struct {
  15. CHAR CompanyName[256];
  16. CHAR SupportNumber[256];
  17. CHAR SupportUrl[256];
  18. CHAR InstructionsToUser[1024];
  19. } VENDORINFO, *PVENDORINFO;
  20. // ------------------------------------------------------------
  21. // Prototypes
  22. // All of these functions are required in a migration DLL.
  23. LONG
  24. CALLBACK
  25. QueryVersion (
  26. OUT LPCSTR *ProductID, // Unique identifier string.
  27. OUT LPUINT DllVersion, // Version number. Cannot be zero.
  28. OUT LPINT *CodePageArray, // OPTIONAL. Language dependencies.
  29. OUT LPCSTR *ExeNamesBuf, // OPTIONAL. Executables to look for.
  30. PVENDORINFO *VendorInfo // Vendor Info
  31. );
  32. LONG
  33. CALLBACK
  34. Initialize9x(
  35. IN LPCSTR WorkingDirectory, // Place to store files.
  36. IN LPCSTR SourceDirectories, // Location of the Windows XP source. MULTI-SZ.
  37. IN LPCSTR MediaDirectory // Path to the original media directory
  38. );
  39. LONG
  40. CALLBACK
  41. MigrateUser9x(
  42. IN HWND ParentWnd, // Parent (if need a UI)
  43. IN LPCSTR UnattendFile, // Name of unattend file
  44. IN HKEY UserRegKey, // Key to this user's registry settings.
  45. IN LPCSTR UserName, // Account name of user.
  46. LPVOID Reserved
  47. );
  48. LONG
  49. CALLBACK
  50. MigrateSystem9x(
  51. IN HWND ParentWnd, // Parent for UI.
  52. IN LPCSTR UnattendFile, // Name of unattend file
  53. LPVOID Reserved
  54. );
  55. LONG
  56. CALLBACK
  57. InitializeNT(
  58. IN LPCWSTR WorkingDirectory, // Working directory for temporary files.
  59. IN LPCWSTR SourceDirectory, // Directory of winNT source.
  60. LPVOID Reserved // It's reserved.
  61. );
  62. LONG
  63. CALLBACK
  64. MigrateUserNT(
  65. IN HINF UnattendInfHandle, // Access to the unattend.txt file.
  66. IN HKEY UserRegHandle, // Handle to registry settings for user.
  67. IN LPCWSTR UserName, // Name of the user.
  68. LPVOID Reserved
  69. );
  70. LONG
  71. CALLBACK
  72. MigrateSystemNT(
  73. IN HINF UnattendInfHandle, // Access to the unattend.txt file.
  74. LPVOID Reserved
  75. );
  76. // ------------------------------------------------------------
  77. // defines
  78. #define FAX_MIGRATION_VERSION (1)
  79. // ------------------------------------------------------------
  80. // global data
  81. extern LPCTSTR lpLogonUser; // Holds the logon user name for faxuser.ini
  82. extern TCHAR szInfFileName[MAX_PATH]; // Name of the generated INF file.
  83. extern HINSTANCE hinstMigDll; // Handle to the migration DLL instance.
  84. #define INF_RULE_LOCAL_ID _T("LocalID")
  85. #define INF_RULE_NUM_RINGS _T("NumRings")
  86. #define INF_RULE_ANSWER_MODE _T("AnswerMode")
  87. #endif // __MIGRATE_H