[SETUPLIB] Additions for filesup.c and inicache.c.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 31 May 2017 00:18:13 +0000 (00:18 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 3 Jun 2018 20:12:44 +0000 (22:12 +0200)
commit7f5428633bd72965ef5cf932ac2802ee357b05ba
treecb150affe7d3f051a1c2f201d04b563be4abd37e
parent6b6163a5d9e64ed980b36f757b0b96043e25520a
[SETUPLIB] Additions for filesup.c and inicache.c.

- In DoesFileExist(): Call NtOpenFile with FILE_GENERIC_READ instead of the more generic GENERIC_READ access right.
- OpenAndMapFile(): Add support for opening & mapping files with write access (to be used latter).

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

- Split IniCacheLoad() and IniCacheSave() into: themselves & IniCacheLoadByHandle() and IniCacheSaveByHandle(),
  respectively, so that we can load & save INI files if we already have an opened handle to them.

svn path=/branches/setup_improvements/; revision=74711
base/setup/lib/filesup.c
base/setup/lib/filesup.h
base/setup/lib/inicache.c
base/setup/lib/inicache.h