[SDK:LIB] Import PathCch* functions from Wine (#5842)

CORE-12686

Isolate PathCch* functions from Wine implementation in kernelbase
(which are mixed with a ton of unrelated stuff).

These functions are compiled into a pathcch.lib library, similarly
to the one in the official MS PSDK. Excepting that here, their actual
implementation is in the library. This contrasts with the one in the
MS PSDK, which is an import library to an apiset DLL.

The pathcch.h header is an original one, that contains SAL annotations
and descriptive parameter names, based on the MinGW and MS PSDK headers.
Wine's header was not used as it is poor and incomplete.

Co-authored-by: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
This commit is contained in:
Hermès Bélusca-Maïto 2023-10-27 15:46:13 +02:00
parent c7777f5963
commit d0e1d36009
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 1462 additions and 0 deletions

1098
sdk/lib/pathcch/pathcch.c Normal file

File diff suppressed because it is too large Load diff