[SDK] Move pathcch.h to the PSDK (#8085)

CORE-12686
This commit is contained in:
Hermès Bélusca-Maïto 2025-06-03 17:52:16 +02:00
parent 81931d1ac0
commit 8ed6ec437b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -3,6 +3,7 @@
* LICENSE: MIT (https://spdx.org/licenses/MIT) * LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: "Secure" shell path manipulation functions * PURPOSE: "Secure" shell path manipulation functions
* COPYRIGHT: MinGW-64 and Microsoft Corporation. * COPYRIGHT: MinGW-64 and Microsoft Corporation.
* Copyright 2023-2025 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
*/ */
/** /**
@ -12,7 +13,6 @@
#pragma once #pragma once
#ifndef WINBASEAPI #ifndef WINBASEAPI
#ifndef _KERNEL32_ #ifndef _KERNEL32_
#define WINBASEAPI DECLSPEC_IMPORT #define WINBASEAPI DECLSPEC_IMPORT
@ -21,7 +21,6 @@
#endif #endif
#endif #endif
#ifndef WINPATHCCHAPI #ifndef WINPATHCCHAPI
#ifndef STATIC_PATHCCH #ifndef STATIC_PATHCCH
#define WINPATHCCHAPI WINBASEAPI #define WINPATHCCHAPI WINBASEAPI
@ -35,15 +34,17 @@
extern "C" { extern "C" {
#endif #endif
// typedef enum PATHCCH_OPTIONS typedef enum PATHCCH_OPTIONS
#define PATHCCH_NONE 0x00 {
#define PATHCCH_ALLOW_LONG_PATHS 0x01 PATHCCH_NONE = 0x00,
#define PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS 0x02 PATHCCH_ALLOW_LONG_PATHS = 0x01,
#define PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS 0x04 PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS = 0x02,
#define PATHCCH_DO_NOT_NORMALIZE_SEGMENTS 0x08 PATHCCH_FORCE_DISABLE_LONG_NAME_PROCESS = 0x04,
#define PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH 0x10 PATHCCH_DO_NOT_NORMALIZE_SEGMENTS = 0x08,
#define PATHCCH_ENSURE_TRAILING_SLASH 0x20 PATHCCH_ENSURE_IS_EXTENDED_LENGTH_PATH = 0x10,
// DEFINE_ENUM_FLAG_OPERATORS(PATHCCH_OPTIONS) PATHCCH_ENSURE_TRAILING_SLASH = 0x20,
} PATHCCH_OPTIONS;
DEFINE_ENUM_FLAG_OPERATORS(PATHCCH_OPTIONS)
#define VOLUME_PREFIX L"\\\\?\\Volume" #define VOLUME_PREFIX L"\\\\?\\Volume"
#define VOLUME_PREFIX_LEN (ARRAYSIZE(VOLUME_PREFIX) - 1) #define VOLUME_PREFIX_LEN (ARRAYSIZE(VOLUME_PREFIX) - 1)