FreeRDP
|
#include <winpr/config.h>
#include <winpr/crt.h>
#include <winpr/tchar.h>
#include <winpr/path.h>
#include <winpr/file.h>
#include "../log.h"
#include "include/PathCchAddSeparator.h"
#include "include/PathCchAddSeparatorEx.h"
#include "include/PathCchAddExtension.h"
#include "include/PathCchAppend.h"
#include "include/PathAllocCombine.h"
Functions | |
HRESULT | PathCchRemoveBackslashA (PSTR pszPath, size_t cchPath) |
HRESULT | PathCchRemoveBackslashW (PWSTR pszPath, size_t cchPath) |
HRESULT | PathCchRemoveBackslashExA (PSTR pszPath, size_t cchPath, PSTR *ppszEnd, size_t *pcchRemaining) |
HRESULT | PathCchRemoveBackslashExW (PWSTR pszPath, size_t cchPath, PWSTR *ppszEnd, size_t *pcchRemaining) |
HRESULT | PathCchAppendExA (PSTR pszPath, size_t cchPath, PCSTR pszMore, unsigned long dwFlags) |
HRESULT | PathCchAppendExW (PWSTR pszPath, size_t cchPath, PCWSTR pszMore, unsigned long dwFlags) |
HRESULT | PathCchCanonicalizeA (PSTR pszPathOut, size_t cchPathOut, PCSTR pszPathIn) |
HRESULT | PathCchCanonicalizeW (PWSTR pszPathOut, size_t cchPathOut, PCWSTR pszPathIn) |
HRESULT | PathCchCanonicalizeExA (PSTR pszPathOut, size_t cchPathOut, PCSTR pszPathIn, unsigned long dwFlags) |
HRESULT | PathCchCanonicalizeExW (PWSTR pszPathOut, size_t cchPathOut, PCWSTR pszPathIn, unsigned long dwFlags) |
HRESULT | PathAllocCanonicalizeA (PCSTR pszPathIn, unsigned long dwFlags, PSTR *ppszPathOut) |
HRESULT | PathAllocCanonicalizeW (PCWSTR pszPathIn, unsigned long dwFlags, PWSTR *ppszPathOut) |
HRESULT | PathCchCombineA (PSTR pszPathOut, size_t cchPathOut, PCSTR pszPathIn, PCSTR pszMore) |
HRESULT | PathCchCombineW (PWSTR pszPathOut, size_t cchPathOut, PCWSTR pszPathIn, PCWSTR pszMore) |
HRESULT | PathCchCombineExA (PSTR pszPathOut, size_t cchPathOut, PCSTR pszPathIn, PCSTR pszMore, unsigned long dwFlags) |
HRESULT | PathCchCombineExW (PWSTR pszPathOut, size_t cchPathOut, PCWSTR pszPathIn, PCWSTR pszMore, unsigned long dwFlags) |
HRESULT | PathCchFindExtensionA (PCSTR pszPath, size_t cchPath, PCSTR *ppszExt) |
HRESULT | PathCchFindExtensionW (PCWSTR pszPath, size_t cchPath, PCWSTR *ppszExt) |
HRESULT | PathCchRenameExtensionA (PSTR pszPath, size_t cchPath, PCSTR pszExt) |
HRESULT | PathCchRenameExtensionW (PWSTR pszPath, size_t cchPath, PCWSTR pszExt) |
HRESULT | PathCchRemoveExtensionA (PSTR pszPath, size_t cchPath) |
HRESULT | PathCchRemoveExtensionW (PWSTR pszPath, size_t cchPath) |
BOOL | PathCchIsRootA (PCSTR pszPath) |
BOOL | PathCchIsRootW (PCWSTR pszPath) |
BOOL | PathIsUNCExA (PCSTR pszPath, PCSTR *ppszServer) |
BOOL | PathIsUNCExW (PCWSTR pszPath, PCWSTR *ppszServer) |
HRESULT | PathCchSkipRootA (PCSTR pszPath, PCSTR *ppszRootEnd) |
HRESULT | PathCchSkipRootW (PCWSTR pszPath, PCWSTR *ppszRootEnd) |
HRESULT | PathCchStripToRootA (PSTR pszPath, size_t cchPath) |
HRESULT | PathCchStripToRootW (PWSTR pszPath, size_t cchPath) |
HRESULT | PathCchStripPrefixA (PSTR pszPath, size_t cchPath) |
HRESULT | PathCchStripPrefixW (PWSTR pszPath, size_t cchPath) |
HRESULT | PathCchRemoveFileSpecA (PSTR pszPath, size_t cchPath) |
HRESULT | PathCchRemoveFileSpecW (PWSTR pszPath, size_t cchPath) |
HRESULT | PathCchConvertStyleA (PSTR pszPath, size_t cchPath, unsigned long dwFlags) |
HRESULT | PathCchConvertStyleW (PWSTR pszPath, size_t cchPath, unsigned long dwFlags) |
char | PathGetSeparatorA (unsigned long dwFlags) |
WCHAR | PathGetSeparatorW (unsigned long dwFlags) |
PCSTR | PathGetSharedLibraryExtensionA (unsigned long dwFlags) |
PCWSTR | PathGetSharedLibraryExtensionW (unsigned long dwFlags) |
const char * | GetKnownPathIdString (int id) |
static WCHAR * | concat (const WCHAR *path, size_t pathlen, const WCHAR *name, size_t namelen) |
BOOL | winpr_RemoveDirectory_RecursiveA (LPCSTR lpPathName) |
BOOL | winpr_RemoveDirectory_RecursiveW (LPCWSTR lpPathName) |
Variables | |
static const CHAR | SharedLibraryExtensionDllA [] = "dll" |
static const CHAR | SharedLibraryExtensionSoA [] = "so" |
static const CHAR | SharedLibraryExtensionDylibA [] = "dylib" |
static const CHAR | SharedLibraryExtensionDotDllA [] = ".dll" |
static const CHAR | SharedLibraryExtensionDotSoA [] = ".so" |
static const CHAR | SharedLibraryExtensionDotDylibA [] = ".dylib" |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_BACKSLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_CHR PATH_SEPARATOR_CHR |
#define CUR_PATH_SEPARATOR_STR PATH_BACKSLASH_STR |
#define CUR_PATH_SEPARATOR_STR PATH_BACKSLASH_STR_W |
#define CUR_PATH_SEPARATOR_STR PATH_SLASH_STR |
#define CUR_PATH_SEPARATOR_STR PATH_SLASH_STR_W |
#define CUR_PATH_SEPARATOR_STR PATH_SEPARATOR_STR |
#define CUR_PATH_SEPARATOR_STR PATH_SEPARATOR_STR_W |
#define CUR_PATH_SEPARATOR_STR PATH_BACKSLASH_STR |
#define CUR_PATH_SEPARATOR_STR PATH_BACKSLASH_STR_W |
#define CUR_PATH_SEPARATOR_STR PATH_SLASH_STR |
#define CUR_PATH_SEPARATOR_STR PATH_SLASH_STR_W |
#define CUR_PATH_SEPARATOR_STR PATH_SEPARATOR_STR |
#define CUR_PATH_SEPARATOR_STR PATH_SEPARATOR_STR_W |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define DEFINE_UNICODE FALSE |
#define DEFINE_UNICODE TRUE |
#define PATH_ALLOC_COMBINE PathAllocCombineA |
#define PATH_ALLOC_COMBINE PathAllocCombineW |
#define PATH_ALLOC_COMBINE UnixPathAllocCombineA |
#define PATH_ALLOC_COMBINE UnixPathAllocCombineW |
#define PATH_ALLOC_COMBINE NativePathAllocCombineA |
#define PATH_ALLOC_COMBINE NativePathAllocCombineW |
#define PATH_BACKSLASH_CHR '\\' |
#define PATH_BACKSLASH_STR "\\" |
#define PATH_BACKSLASH_STR_W |
#define PATH_CCH_ADD_EXTENSION PathCchAddExtensionA |
#define PATH_CCH_ADD_EXTENSION PathCchAddExtensionW |
#define PATH_CCH_ADD_EXTENSION UnixPathCchAddExtensionA |
#define PATH_CCH_ADD_EXTENSION UnixPathCchAddExtensionW |
#define PATH_CCH_ADD_EXTENSION NativePathCchAddExtensionA |
#define PATH_CCH_ADD_EXTENSION NativePathCchAddExtensionW |
#define PATH_CCH_ADD_SEPARATOR PathCchAddBackslashA |
#define PATH_CCH_ADD_SEPARATOR PathCchAddBackslashW |
#define PATH_CCH_ADD_SEPARATOR PathCchAddSlashA |
#define PATH_CCH_ADD_SEPARATOR PathCchAddSlashW |
#define PATH_CCH_ADD_SEPARATOR PathCchAddSeparatorA |
#define PATH_CCH_ADD_SEPARATOR PathCchAddSeparatorW |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddBackslashExA |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddBackslashExW |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddSlashExA |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddSlashExW |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddSeparatorExA |
#define PATH_CCH_ADD_SEPARATOR_EX PathCchAddSeparatorExW |
#define PATH_CCH_APPEND PathCchAppendA |
#define PATH_CCH_APPEND PathCchAppendW |
#define PATH_CCH_APPEND UnixPathCchAppendA |
#define PATH_CCH_APPEND UnixPathCchAppendW |
#define PATH_CCH_APPEND NativePathCchAppendA |
#define PATH_CCH_APPEND NativePathCchAppendW |
#define PATH_SEPARATOR_CHR PATH_SLASH_CHR |
#define PATH_SEPARATOR_STR PATH_SLASH_STR |
#define PATH_SEPARATOR_STR_W PATH_SLASH_STR_W |
#define PATH_SLASH_CHR '/' |
WinPR: Windows Portable Runtime Path Functions
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
#define PATH_SLASH_STR "/" |
#define PATH_SLASH_STR_W |
#define SHARED_LIBRARY_EXT SHARED_LIBRARY_EXT_SO |
#define SHARED_LIBRARY_EXT_DLL "dll" |
#define SHARED_LIBRARY_EXT_DYLIB "dylib" |
#define SHARED_LIBRARY_EXT_SO "so" |
#define TAG WINPR_TAG("path") |
|
static |
const char* GetKnownPathIdString | ( | int | id | ) |
HRESULT PathAllocCanonicalizeA | ( | PCSTR | pszPathIn, |
unsigned long | dwFlags, | ||
PSTR * | ppszPathOut | ||
) |
HRESULT PathAllocCanonicalizeW | ( | PCWSTR | pszPathIn, |
unsigned long | dwFlags, | ||
PWSTR * | ppszPathOut | ||
) |
HRESULT PathCchAppendExA | ( | PSTR | pszPath, |
size_t | cchPath, | ||
PCSTR | pszMore, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchAppendExW | ( | PWSTR | pszPath, |
size_t | cchPath, | ||
PCWSTR | pszMore, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchCanonicalizeA | ( | PSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCSTR | pszPathIn | ||
) |
HRESULT PathCchCanonicalizeExA | ( | PSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCSTR | pszPathIn, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchCanonicalizeExW | ( | PWSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCWSTR | pszPathIn, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchCanonicalizeW | ( | PWSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCWSTR | pszPathIn | ||
) |
HRESULT PathCchCombineA | ( | PSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCSTR | pszPathIn, | ||
PCSTR | pszMore | ||
) |
HRESULT PathCchCombineExA | ( | PSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCSTR | pszPathIn, | ||
PCSTR | pszMore, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchCombineExW | ( | PWSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCWSTR | pszPathIn, | ||
PCWSTR | pszMore, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchCombineW | ( | PWSTR | pszPathOut, |
size_t | cchPathOut, | ||
PCWSTR | pszPathIn, | ||
PCWSTR | pszMore | ||
) |
HRESULT PathCchConvertStyleA | ( | PSTR | pszPath, |
size_t | cchPath, | ||
unsigned long | dwFlags | ||
) |
PathCchConvertStyle
HRESULT PathCchConvertStyleW | ( | PWSTR | pszPath, |
size_t | cchPath, | ||
unsigned long | dwFlags | ||
) |
HRESULT PathCchFindExtensionA | ( | PCSTR | pszPath, |
size_t | cchPath, | ||
PCSTR * | ppszExt | ||
) |
PathCchFindExtension
HRESULT PathCchFindExtensionW | ( | PCWSTR | pszPath, |
size_t | cchPath, | ||
PCWSTR * | ppszExt | ||
) |
BOOL PathCchIsRootA | ( | PCSTR | pszPath | ) |
PathCchIsRoot
BOOL PathCchIsRootW | ( | PCWSTR | pszPath | ) |
HRESULT PathCchRemoveBackslashA | ( | PSTR | pszPath, |
size_t | cchPath | ||
) |
HRESULT PathCchRemoveBackslashExA | ( | PSTR | pszPath, |
size_t | cchPath, | ||
PSTR * | ppszEnd, | ||
size_t * | pcchRemaining | ||
) |
HRESULT PathCchRemoveBackslashExW | ( | PWSTR | pszPath, |
size_t | cchPath, | ||
PWSTR * | ppszEnd, | ||
size_t * | pcchRemaining | ||
) |
HRESULT PathCchRemoveBackslashW | ( | PWSTR | pszPath, |
size_t | cchPath | ||
) |
HRESULT PathCchRemoveExtensionA | ( | PSTR | pszPath, |
size_t | cchPath | ||
) |
PathCchRemoveExtension
HRESULT PathCchRemoveExtensionW | ( | PWSTR | pszPath, |
size_t | cchPath | ||
) |
HRESULT PathCchRemoveFileSpecA | ( | PSTR | pszPath, |
size_t | cchPath | ||
) |
PathCchRemoveFileSpec
HRESULT PathCchRemoveFileSpecW | ( | PWSTR | pszPath, |
size_t | cchPath | ||
) |
HRESULT PathCchRenameExtensionA | ( | PSTR | pszPath, |
size_t | cchPath, | ||
PCSTR | pszExt | ||
) |
PathCchRenameExtension
HRESULT PathCchRenameExtensionW | ( | PWSTR | pszPath, |
size_t | cchPath, | ||
PCWSTR | pszExt | ||
) |
HRESULT PathCchSkipRootA | ( | PCSTR | pszPath, |
PCSTR * | ppszRootEnd | ||
) |
PathCchSkipRoot
HRESULT PathCchSkipRootW | ( | PCWSTR | pszPath, |
PCWSTR * | ppszRootEnd | ||
) |
HRESULT PathCchStripPrefixA | ( | PSTR | pszPath, |
size_t | cchPath | ||
) |
PathCchStripPrefix
HRESULT PathCchStripPrefixW | ( | PWSTR | pszPath, |
size_t | cchPath | ||
) |
HRESULT PathCchStripToRootA | ( | PSTR | pszPath, |
size_t | cchPath | ||
) |
PathCchStripToRoot
HRESULT PathCchStripToRootW | ( | PWSTR | pszPath, |
size_t | cchPath | ||
) |
char PathGetSeparatorA | ( | unsigned long | dwFlags | ) |
PathGetSeparator
WCHAR PathGetSeparatorW | ( | unsigned long | dwFlags | ) |
PCSTR PathGetSharedLibraryExtensionA | ( | unsigned long | dwFlags | ) |
PCWSTR PathGetSharedLibraryExtensionW | ( | unsigned long | dwFlags | ) |
BOOL PathIsUNCExA | ( | PCSTR | pszPath, |
PCSTR * | ppszServer | ||
) |
PathIsUNCEx
BOOL PathIsUNCExW | ( | PCWSTR | pszPath, |
PCWSTR * | ppszServer | ||
) |
BOOL winpr_RemoveDirectory_RecursiveA | ( | LPCSTR | lpPathName | ) |
BOOL winpr_RemoveDirectory_RecursiveW | ( | LPCWSTR | lpPathName | ) |
|
static |
PathGetSharedLibraryExtension
|
static |
|
static |
|
static |
|
static |
|
static |