#include "nt.h"
#include "ntrtl.h"
#include "nturtl.h"
#include "string.h"
#include "ctype.h"
Go to the source code of this file.
Defines | |
#define | IS_PATH_SEPARATOR_U(ch) ((ch == L'\\') || (ch == L'/')) |
#define | IS_DOT_U(s) ( s[0] == L'.' && ( IS_PATH_SEPARATOR_U(s[1]) || s[1] == UNICODE_NULL) ) |
#define | IS_DOT_DOT_U(s) ( s[0] == L'.' && s[1] == L'.' && ( IS_PATH_SEPARATOR_U(s[2]) || s[2] == UNICODE_NULL) ) |
#define | CONSTANT_UNICODE_STRING(s) { sizeof( s ) - sizeof( WCHAR ), sizeof( s ), s } |
#define | RtlpLongestPrefix RtlpDosDevicesUncPrefix.Length |
Functions | |
VOID | RtlpCheckRelativeDrive (WCHAR NewDrive) |
ULONG | RtlIsDosDeviceName_Ustr (IN PUNICODE_STRING DosFileName) |
ULONG | RtlGetFullPathName_Ustr (PUNICODE_STRING FileName, ULONG nBufferLength, PWSTR lpBuffer, PWSTR *lpFilePart OPTIONAL, PBOOLEAN NameInvalid, RTL_PATH_TYPE *InputPathType) |
ULONG | RtlpComputeBackupIndex (IN PCURDIR CurDir) |
ULONG | RtlGetLongestNtPathLength (VOID) |
VOID | RtlpResetDriveEnvironment (IN WCHAR DriveLetter) |
ULONG | RtlGetCurrentDirectory_U (ULONG nBufferLength, PWSTR lpBuffer) |
NTSTATUS | RtlSetCurrentDirectory_U (PUNICODE_STRING PathName) |
RTL_PATH_TYPE | RtlDetermineDosPathNameType_U (IN PCWSTR DosFileName) |
ULONG | RtlIsDosDeviceName_U (IN PWSTR DosFileName) |
BOOLEAN | RtlpCheckDeviceName (PUNICODE_STRING DevName, ULONG DeviceNameOffset) |
VOID | RtlpValidateCurrentDirectory (PCURDIR CurDir) |
ULONG | RtlGetFullPathName_U (PCWSTR lpFileName, ULONG nBufferLength, PWSTR lpBuffer, PWSTR *lpFilePart OPTIONAL) |
BOOLEAN | RtlpWin32NTNameToNtPathName_U (IN PUNICODE_STRING DosFileName, OUT PUNICODE_STRING NtFileName, OUT PWSTR *FilePart OPTIONAL, OUT PRTL_RELATIVE_NAME RelativeName OPTIONAL) |
BOOLEAN | RtlDosPathNameToNtPathName_U (IN PCWSTR DosFileName, OUT PUNICODE_STRING NtFileName, OUT PWSTR *FilePart OPTIONAL, OUT PRTL_RELATIVE_NAME RelativeName OPTIONAL) |
BOOLEAN | RtlDoesFileExists_UEx (IN PCWSTR FileName, IN BOOLEAN TreatDeniedOrSharingAsHit) |
BOOLEAN | RtlDoesFileExists_U (IN PCWSTR FileName) |
ULONG | RtlDosSearchPath_U (IN PWSTR lpPath, IN PWSTR lpFileName, IN PWSTR lpExtension OPTIONAL, IN ULONG nBufferLength, OUT PWSTR lpBuffer, OUT PWSTR *lpFilePart) |
Variables | |
const UNICODE_STRING | RtlpDosLPTDevice = CONSTANT_UNICODE_STRING( L"LPT" ) |
const UNICODE_STRING | RtlpDosCOMDevice = CONSTANT_UNICODE_STRING( L"COM" ) |
const UNICODE_STRING | RtlpDosPRNDevice = CONSTANT_UNICODE_STRING( L"PRN" ) |
const UNICODE_STRING | RtlpDosAUXDevice = CONSTANT_UNICODE_STRING( L"AUX" ) |
const UNICODE_STRING | RtlpDosNULDevice = CONSTANT_UNICODE_STRING( L"NUL" ) |
const UNICODE_STRING | RtlpDosCONDevice = CONSTANT_UNICODE_STRING( L"CON" ) |
const UNICODE_STRING | RtlpDosSlashCONDevice = CONSTANT_UNICODE_STRING( L"\\\\.\\CON" ) |
const UNICODE_STRING | RtlpSlashSlashDot = CONSTANT_UNICODE_STRING( L"\\\\.\\" ) |
const UNICODE_STRING | RtlpDosDevicesPrefix = CONSTANT_UNICODE_STRING( L"\\??\\" ) |
const UNICODE_STRING | RtlpDosDevicesUncPrefix = CONSTANT_UNICODE_STRING( L"\\??\\UNC\\" ) |
|
|
|
Definition at line 29 of file curdir.c. Referenced by RtlGetFullPathName_Ustr(). |
|
Definition at line 28 of file curdir.c. Referenced by RtlGetFullPathName_Ustr(). |
|
Definition at line 27 of file curdir.c. Referenced by RtlDetermineDosPathNameType_U(), RtlGetFullPathName_Ustr(), and RtlpComputeBackupIndex(). |
|
Definition at line 65 of file curdir.c. Referenced by RtlDosPathNameToNtPathName_U(), and RtlGetLongestNtPathLength(). |
|
Definition at line 493 of file curdir.c. References IS_PATH_SEPARATOR_U, and L. Referenced by RtlDosPathNameToNtPathName_U(), RtlDosSearchPath_U(), RtlGetFullPathName_Ustr(), RtlIsDosDeviceName_Ustr(), and RtlpComputeBackupIndex().
|
|
Definition at line 2128 of file curdir.c. References FileName, RtlDoesFileExists_UEx(), and TRUE. Referenced by RtlpCheckDeviceName().
|
|
Definition at line 2033 of file curdir.c. References FALSE, FileName, NT_SUCCESS, NtQueryAttributesFile(), NTSTATUS(), NULL, RelativeName, RtlDosPathNameToNtPathName_U(), RtlFreeHeap, Status, and TRUE. Referenced by RtlDoesFileExists_U(), and RtlDosSearchPath_U().
|
|
Definition at line 1717 of file curdir.c. References ASSERT, FALSE, L, NULL, RelativeName, RtlAcquirePebLock(), RtlAllocateHeap, RtlDetermineDosPathNameType_U(), RtlEqualUnicodeString(), RtlFreeHeap, RtlGetFullPathName_Ustr(), RtlInitUnicodeString(), RtlpDosDevicesPrefix, RtlpDosDevicesUncPrefix, RtlpLongestPrefix, RtlpWin32NTNameToNtPathName_U(), RtlReleasePebLock(), TRUE, and USHORT. Referenced by LdrLoadAlternateResourceModule(), LdrpCheckForLoadedDll(), LdrpMapDll(), main(), processargs(), RegReadMultiSzFile(), RtlDoesFileExists_UEx(), and RtlSetCurrentDirectory_U().
|
|
Definition at line 2156 of file curdir.c. References FALSE, L, NULL, RtlAllocateHeap, RtlDetermineDosPathNameType_U(), RtlDoesFileExists_UEx(), RtlFreeHeap, RtlGetFullPathName_U(), RtlInitUnicodeString(), and TRUE. Referenced by LdrpCheckForLoadedDll(), LdrpResolveDllName(), and LoadLinkInfo().
|
|
Definition at line 145 of file curdir.c. References ASSERT, EXCEPTION_EXECUTE_HANDLER, L, RtlAcquirePebLock(), and RtlReleasePebLock().
|
|
Definition at line 1611 of file curdir.c. References NULL, RtlGetFullPathName_Ustr(), and RtlInitUnicodeString(). Referenced by RtlDosSearchPath_U().
|
|
Definition at line 920 of file curdir.c. References FALSE, FileName, IS_DOT_DOT_U, IS_DOT_U, IS_PATH_SEPARATOR_U, L, NT_SUCCESS, NTSTATUS(), NULL, RtlAcquirePebLock(), RtlDetermineDosPathNameType_U(), RtlInitUnicodeString(), RtlIsDosDeviceName_Ustr(), RtlpCheckDeviceName(), RtlpCheckRelativeDrive(), RtlpComputeBackupIndex(), RtlpSlashSlashDot, RtlpValidateCurrentDirectory(), RtlQueryEnvironmentVariable_U(), RtlReleasePebLock(), RtlUpcaseUnicodeChar(), Status, TRUE, and USHORT. Referenced by RtlDosPathNameToNtPathName_U(), RtlGetFullPathName_U(), and RtlSetCurrentDirectory_U().
|
|
Definition at line 114 of file curdir.c. References RtlpLongestPrefix.
|
|
Definition at line 790 of file curdir.c. References RtlInitUnicodeString(), and RtlIsDosDeviceName_Ustr().
|
|
Definition at line 577 of file curdir.c. References L, RtlDetermineDosPathNameType_U(), RtlEqualUnicodeString(), RtlInitUnicodeString(), RtlpDosAUXDevice, RtlpDosCOMDevice, RtlpDosCONDevice, RtlpDosLPTDevice, RtlpDosNULDevice, RtlpDosPRNDevice, RtlpDosSlashCONDevice, TRUE, and USHORT. Referenced by RtlGetFullPathName_Ustr(), RtlIsDosDeviceName_U(), and RtlSetCurrentDirectory_U().
|
|
Definition at line 802 of file curdir.c. References FALSE, L, RtlAllocateHeap, RtlDoesFileExists_U(), RtlFreeHeap, and TRUE. Referenced by RtlGetFullPathName_Ustr().
|
|
Definition at line 2341 of file curdir.c. References L, NT_SUCCESS, NtClose(), NtOpenFile(), NTSTATUS(), NULL, RtlInitUnicodeString(), RtlpDosDevicesPrefix, RtlpResetDriveEnvironment(), RtlQueryEnvironmentVariable_U(), and Status. Referenced by RtlGetFullPathName_Ustr().
|
|
Definition at line 68 of file curdir.c. References IS_PATH_SEPARATOR_U, and RtlDetermineDosPathNameType_U(). Referenced by RtlGetFullPathName_Ustr().
|
|
Definition at line 120 of file curdir.c. References L, NULL, RtlInitUnicodeString(), and RtlSetEnvironmentVariable(). Referenced by RtlpCheckRelativeDrive(), and RtlpValidateCurrentDirectory().
|
|
Definition at line 839 of file curdir.c. References NT_SUCCESS, NtClose(), NtFsControlFile(), NTSTATUS(), NULL, RtlInitUnicodeString(), RtlpResetDriveEnvironment(), RtlSetCurrentDirectory_U(), and VOID(). Referenced by RtlGetFullPathName_Ustr().
|
|
Definition at line 1628 of file curdir.c. References FALSE, L, NULL, RelativeName, RtlAllocateHeap, RtlpDosDevicesPrefix, TRUE, and USHORT. Referenced by RtlDosPathNameToNtPathName_U().
|
|
Definition at line 225 of file curdir.c. References EXCEPTION_EXECUTE_HANDLER, L, NT_SUCCESS, NtClose(), NtOpenFile(), NtQueryVolumeInformationFile(), NTSTATUS(), NULL, RtlAcquirePebLock(), RtlAllocateHeap, RtlDosPathNameToNtPathName_U(), RtlFreeHeap, RtlGetFullPathName_Ustr(), RtlIsDosDeviceName_Ustr(), RtlReleasePebLock(), Status, and USHORT. Referenced by LdrpInitializeProcess(), and RtlpValidateCurrentDirectory().
|
|
Definition at line 56 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 54 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 58 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 62 of file curdir.c. Referenced by RtlDosPathNameToNtPathName_U(), RtlpCheckRelativeDrive(), and RtlpWin32NTNameToNtPathName_U(). |
|
Definition at line 63 of file curdir.c. Referenced by RtlDosPathNameToNtPathName_U(). |
|
Definition at line 53 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 57 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 55 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 60 of file curdir.c. Referenced by RtlIsDosDeviceName_Ustr(). |
|
Definition at line 61 of file curdir.c. Referenced by RtlGetFullPathName_Ustr(). |