[USETUP][SETUPLIB] Split the registry helper code.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 30 Jun 2017 19:07:02 +0000 (19:07 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 27 Oct 2018 01:16:47 +0000 (03:16 +0200)
commit60d9ea76d1252c80b85e8424e4a84081c20855b1
treef6e137c69a3121dcdc4872a49212034d72bf566b
parented41bd71dd13ad68af40a55b4b36549a834e7eaf
[USETUP][SETUPLIB] Split the registry helper code.

Split the registry helper code into registry utility functions
(create/mount/unmount/verify hives) and registry creation code
(the rest: initializing the system hives) and move it in the
setup library.

svn path=/branches/setup_improvements/; revision=75247

[USETUP][SETUPLIB] Improve how the Setup* INF APIs are interfaced in the code.

Define prototypes compatible (including their calling convention)
with the ones defined by setupapi (.h/.dll) so that it can be possible
to either use an internal implementation of these functions (via the
INFLIB library) as currently being done, or using imported setupapi
functions, as would be done by the future 1st-stage GUI installer.

[SETUPLIB] Cleanup the registry.c file and use the infsupp.h header.

svn path=/branches/setup_improvements/; revision=75345
svn path=/branches/setup_improvements/; revision=75346

[USETUP][SETUPLIB] Move some INF-related code from usetup to the setuplib.

- Move the generic INF_GetDataField() and INF_GetData() helpers to
  setuplib, and rework them a bit so that they explicitly call setupapi
  functions (or implementations thereof when being used in usetup);

- Rework the headers in accordance;
- Fix compilation in lib/registry.c .

- Fix compilation when these headers are used withing usetup (who
  doesn't use setupapi.dll) and "reactos" (the 1st-stage GUI installer
  that uses setupapi.dll).

svn path=/branches/setup_improvements/; revision=75515
svn path=/branches/setup_improvements/; revision=75537
svn path=/branches/setup_improvements/; revision=75538
14 files changed:
base/setup/lib/CMakeLists.txt
base/setup/lib/errorcode.h
base/setup/lib/infsupp.c [new file with mode: 0644]
base/setup/lib/infsupp.h [new file with mode: 0644]
base/setup/lib/registry.c [new file with mode: 0644]
base/setup/lib/registry.h [new file with mode: 0644]
base/setup/lib/regutil.c [new file with mode: 0644]
base/setup/lib/regutil.h [new file with mode: 0644]
base/setup/lib/setuplib.h
base/setup/usetup/inffile.c
base/setup/usetup/inffile.h
base/setup/usetup/registry.c
base/setup/usetup/registry.h
base/setup/usetup/usetup.h