在 2024-04-06 18:48, Oleg Tolmatcev 写道:
Hello,this is needed by PCSX2.
Would the attached patch look good to you? -- Best regards, LIU Hao
From 52d6399f66c73a779f9b59391db3d59d98864e36 Mon Sep 17 00:00:00 2001 From: LIU Hao <lh_mo...@126.com> Date: Mon, 8 Apr 2024 22:22:39 +0800 Subject: [PATCH] headers/pathcch: Add definition of `PATHCCH_OPTIONS` Signed-off-by: LIU Hao <lh_mo...@126.com> --- mingw-w64-headers/include/pathcch.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/pathcch.h b/mingw-w64-headers/include/pathcch.h index 3b0263634..62011fd1c 100644 --- a/mingw-w64-headers/include/pathcch.h +++ b/mingw-w64-headers/include/pathcch.h @@ -17,9 +17,20 @@ extern "C" { #define VOLUME_PREFIX L"\\\\?\\Volume" #define VOLUME_PREFIX_LEN (ARRAYSIZE (VOLUME_PREFIX) - 1) -#define PATHCCH_ALLOW_LONG_PATHS 0x00000001 #define PATHCCH_MAX_CCH 0x8000 +typedef enum PATHCCH_OPTIONS { + PATHCCH_NONE = 0x0, + PATHCCH_ALLOW_LONG_PATHS = 0x01, + PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS = 0x02, + PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS = 0x04, + PATHCCH_DO_NOT_NORMALIZE_SEGMENTS = 0x08, + PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH = 0x10, + PATHCCH_ENSURE_TRAILING_SLASH = 0x020, + PATHCCH_CANONICALIZE_SLASHES = 0x040 +} PATHCCH_OPTIONS; +DEFINE_ENUM_FLAG_OPERATORS(PATHCCH_OPTIONS) + WINPATHCCHAPI HRESULT APIENTRY PathAllocCombine (PCWSTR pszPathIn, PCWSTR pszMore, unsigned long dwFlags, PWSTR *ppszPathOut); WINPATHCCHAPI HRESULT APIENTRY PathAllocCanonicalize (PCWSTR pszPathIn, unsigned long dwFlags, PWSTR *ppszPathOut); WINPATHCCHAPI HRESULT APIENTRY PathCchAddBackslash (PWSTR pszPath, size_t cchPath); -- 2.44.0
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public