mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:25:43 +00:00
parent
81931d1ac0
commit
8ed6ec437b
1 changed files with 12 additions and 11 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue