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.

136 lines
2.1 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. miglib.h
  5. Abstract:
  6. Declares the interfaces for miglib.lib, a library of Win9x
  7. migration functions.
  8. Author:
  9. Jim Schmidt (jimschm) 08-Feb-1999
  10. Revision History:
  11. <alias> <date> <comments>
  12. --*/
  13. //
  14. // Constants (needed by outside projects)
  15. //
  16. #ifndef HASHTABLE
  17. #define HASHTABLE PVOID
  18. #endif
  19. //
  20. // General
  21. //
  22. VOID
  23. InitializeMigLib (
  24. VOID
  25. );
  26. VOID
  27. TerminateMigLib (
  28. VOID
  29. );
  30. //
  31. // hwcomp.dat interface
  32. //
  33. DWORD
  34. OpenHwCompDatA (
  35. IN PCSTR HwCompDatPath
  36. );
  37. DWORD
  38. LoadHwCompDat (
  39. IN DWORD HwCompDatId
  40. );
  41. DWORD
  42. GetHwCompDatChecksum (
  43. IN DWORD HwCompDatId
  44. );
  45. VOID
  46. DumpHwCompDatA (
  47. IN PCSTR HwCompDatPath,
  48. IN BOOL IncludeInfName
  49. );
  50. DWORD
  51. OpenAndLoadHwCompDatA (
  52. IN PCSTR HwCompDatPath
  53. );
  54. DWORD
  55. OpenAndLoadHwCompDatExA (
  56. IN PCSTR HwCompDatPath,
  57. IN HASHTABLE PnpIdTable, OPTIONAL
  58. IN HASHTABLE UnSupPnpIdTable, OPTIONAL
  59. IN HASHTABLE InfFileTable OPTIONAL
  60. );
  61. VOID
  62. SetWorkingTables (
  63. IN DWORD HwCompDatId,
  64. IN HASHTABLE PnpIdTable,
  65. IN HASHTABLE UnSupPnpIdTable,
  66. IN HASHTABLE InfFileTable
  67. );
  68. VOID
  69. TakeHwCompHashTables (
  70. IN DWORD HwCompDatId,
  71. OUT HASHTABLE *PnpIdTable,
  72. OUT HASHTABLE *UnsupportedPnpIdTable,
  73. OUT HASHTABLE *InfFileTable
  74. );
  75. VOID
  76. CloseHwCompDat (
  77. IN DWORD HwCompDatId
  78. );
  79. BOOL
  80. IsPnpIdSupportedByNtA (
  81. IN DWORD HwCompDatId,
  82. IN PCSTR PnpId
  83. );
  84. BOOL
  85. IsPnpIdUnsupportedByNtA (
  86. IN DWORD HwCompDatId,
  87. IN PCSTR PnpId
  88. );
  89. //
  90. // A & W macros -- note, no W versions here
  91. //
  92. #ifndef UNICODE
  93. #define OpenHwCompDat OpenHwCompDatA
  94. #define DumpHwCompDat DumpHwCompDatA
  95. #define OpenAndLoadHwCompDat OpenAndLoadHwCompDatA
  96. #define OpenAndLoadHwCompDatEx OpenAndLoadHwCompDatExA
  97. #define IsPnpIdSupportedByNt IsPnpIdSupportedByNtA
  98. #define IsPnpIdUnsupportedByNt IsPnpIdUnsupportedByNtA
  99. #endif