Source code of Windows XP (NT5)
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.

186 lines
3.5 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. sysmig.h
  5. Abstract:
  6. This file declares the functions for the main Win9x side lib.
  7. See w95upg\sysmig for implementation details.
  8. Author:
  9. Jim Schmidt (jimschm) 11-Nov-1996
  10. Revision History:
  11. mvander 27-May-1999 Added OBJECTTYPEs and DEAD_FILE
  12. ovidiut 09-Mar-1999 UndoChangedFileProps
  13. jimschm 01-Oct-1998 TWAIN support
  14. calinn 10-Jul-1998 Reorganization
  15. jimschm 01-Jul-1998 Progress bar changes
  16. jimschm 05-May-1998 Icon extraction
  17. jimschm 10-Mar-1998 ExpandNtEnvVars
  18. calinn 05-Mar-1998 MapFileIntoMemory
  19. jimschm 22-Jan-1998 Domain enumeration
  20. jimschm 06-Jan-1998 Name fix routines
  21. jimschm 31-Jul-1997 User profile enumeration
  22. --*/
  23. #pragma once
  24. #define DEAD_FILE TEXT("dead.ini")
  25. #define OBJECTTYPE_COUNT 5
  26. #define OBJECTTYPE_UNKNOWN 0
  27. #define OBJECTTYPE_APP 1
  28. #define OBJECTTYPE_CPL 2
  29. #define OBJECTTYPE_RUNKEY 3
  30. #define OBJECTTYPE_LINK 4
  31. VOID
  32. ExpandNtEnvVars (
  33. IN OUT PTSTR PathBuf,
  34. IN PCTSTR UserProfileDir
  35. );
  36. BOOL
  37. ExtractIconIntoDatFile (
  38. IN PCTSTR LongPath,
  39. IN INT IconIndex,
  40. IN OUT PICON_EXTRACT_CONTEXT Context,
  41. OUT PINT NewIconIndex OPTIONAL
  42. );
  43. #define REQUEST_QUERYTICKS 1
  44. #define REQUEST_RUN 2
  45. #define REQUEST_BEGINUSERPROCESSING 3
  46. #define REQUEST_ENDUSERPROCESSING 4
  47. VOID
  48. PrepareProcessingProgressBar (
  49. VOID
  50. );
  51. DWORD
  52. RunSysFirstMigrationRoutines (
  53. VOID
  54. );
  55. DWORD
  56. RunUserMigrationRoutines (
  57. VOID
  58. );
  59. DWORD
  60. RunSysLastMigrationRoutines (
  61. VOID
  62. );
  63. //
  64. // compacct.c
  65. //
  66. #define MAX_NETENUM_DEPTH 2
  67. typedef enum {
  68. NETRES_INIT,
  69. NETRES_OPEN_ENUM,
  70. NETRES_ENUM_BLOCK,
  71. NETRES_ENUM_BLOCK_NEXT,
  72. NETRES_RETURN_ITEM,
  73. NETRES_CLOSE_ENUM,
  74. NETRES_DONE
  75. } NETRESSTATE;
  76. typedef struct {
  77. //
  78. // Members returned to the caller
  79. //
  80. BOOL Connected:1;
  81. BOOL GlobalNet:1;
  82. BOOL Persistent:1;
  83. BOOL DiskResource:1;
  84. BOOL PrintResource:1;
  85. BOOL TypeUnknown:1;
  86. BOOL Domain:1;
  87. BOOL Generic:1;
  88. BOOL Server:1;
  89. BOOL Share:1;
  90. BOOL Connectable:1;
  91. BOOL Container:1;
  92. PCTSTR RemoteName;
  93. PCTSTR LocalName;
  94. PCTSTR Comment;
  95. PCTSTR Provider;
  96. //
  97. // Private enumeration members
  98. //
  99. DWORD EnumScope;
  100. DWORD EnumType;
  101. DWORD EnumUsage;
  102. NETRESSTATE State;
  103. HANDLE HandleStack[MAX_NETENUM_DEPTH];
  104. UINT StackPos;
  105. PBYTE ResStack[MAX_NETENUM_DEPTH];
  106. UINT Entries[MAX_NETENUM_DEPTH];
  107. UINT Pos[MAX_NETENUM_DEPTH];
  108. } NETRESOURCE_ENUM, *PNETRESOURCE_ENUM;
  109. LONG
  110. DoesComputerAccountExistOnDomain (
  111. IN PCTSTR DomainName,
  112. IN PCTSTR LookUpName,
  113. IN BOOL WaitCursorEnable
  114. );
  115. BOOL
  116. EnumFirstNetResource (
  117. OUT PNETRESOURCE_ENUM EnumPtr,
  118. IN DWORD WNetScope, OPTIONAL
  119. IN DWORD WNetType, OPTIONAL
  120. IN DWORD WNetUsage OPTIONAL
  121. );
  122. BOOL
  123. EnumNextNetResource (
  124. IN OUT PNETRESOURCE_ENUM EnumPtr
  125. );
  126. VOID
  127. AbortNetResourceEnum (
  128. IN OUT PNETRESOURCE_ENUM EnumPtr
  129. );
  130. BOOL
  131. ReadNtFilesEx (
  132. IN PCSTR FileListName, //optional, if null default is opened
  133. IN BOOL ConvertPath
  134. );
  135. BOOL
  136. UndoChangedFileProps (
  137. VOID
  138. );
  139. //
  140. // Beta only!!
  141. //
  142. //VOID
  143. //SaveConfigurationForBeta (
  144. // VOID
  145. // );