mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
The NT path resolver allows mapping between an ARC path as specified in freeldr.ini / boot.ini , to its corresponding NT path, if possible. Currently, only the mapping direction "ARC to NT" is implemented. It will be used wherever such mappings are needed, for example when identifying the ReactOS / Windows installations from the available freeldr.ini / boot.ini entries (for upgrading / repair purposes). The resolver supports the usual ARC paths: multi()disk()[r|f]disk()[partition()] ; eisa()disk()[r|f]disk()[partition()] ; multi()disk()cdrom() ; scsi()disk()[r|f]disk()[partition()] ; scsi()cdrom()fdisk() ; ramdisk(x) ; net(x) (actually reported as "unsupported" since it would map to some path on some network), and the newly-introduced Win2k signature()disk()rdisk()[partition()]. The code is in work-in-progress status. Some validation tests, that were used during the implementation of the resolver, have been added. svn path=/branches/setup_improvements/; revision=74621 svn path=/branches/setup_improvements/; revision=74631
22 lines
459 B
C
22 lines
459 B
C
/*
|
|
* PROJECT: ReactOS Setup Library
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: ARC path to-and-from NT path resolver.
|
|
* COPYRIGHT: Copyright 2017-2018 Hermes Belusca-Maito
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
BOOLEAN
|
|
ArcPathNormalize(
|
|
OUT PUNICODE_STRING NormalizedArcPath,
|
|
IN PCWSTR ArcPath);
|
|
|
|
BOOLEAN
|
|
ArcPathToNtPath(
|
|
OUT PUNICODE_STRING NtPath,
|
|
IN PCWSTR ArcPath,
|
|
IN PPARTLIST PartList OPTIONAL);
|
|
|
|
/* EOF */
|