21#define PFX_NTC_TABLE ((NODE_TYPE_CODE)0x0800)
22#define PFX_NTC_ROOT ((NODE_TYPE_CODE)0x0801)
23#define PFX_NTC_CHILD ((NODE_TYPE_CODE)0x0802)
24#define PFX_NTC_CASE_MATCH ((NODE_TYPE_CODE)0x0803)
36 for (
i = 0;
i < (Chars - 1);
i++)
54 ULONG ScanLength =
min(StringLength, PrefixLength);
56 WCHAR FoundPrefix, FoundString;
60 if ((PrefixLength == 1) &&
63 (
String->Buffer[0] ==
'\\'))
70 if (CaseCheckChar > ScanLength) CaseCheckChar = ScanLength;
73 for (
i = 0;
i < CaseCheckChar;
i++)
81 FoundString =
String->Buffer[
i];
84 if (
i == CaseCheckChar)
96 if (FoundPrefix != FoundString)
103 if (FoundPrefix != FoundString)
break;
108 }
while (
i < ScanLength);
128 if (PrefixLength < StringLength)
131 if (
String->Buffer[PrefixLength] ==
'\\')
return -1;
158 DPRINT(
"RtlFindUnicodePrefix(): Table %p, FullName %wZ, "
170 PreviousEntry = CurrentEntry;
178 SplayLinks = &CurrentEntry->
Links;
235 Entry->NextPrefixTree = NextEntry;
259 }
while (NextEntry !=
Entry);
270 PreviousEntry = CurrentEntry;
285 DPRINT(
"RtlInitializeUnicodePrefix(): Table %p\n",
309 DPRINT(
"RtlInsertUnicodePrefix(): Table %p, Prefix %wZ, "
326 PreviousEntry = CurrentEntry;
346 Entry = CurrentEntry;
370 while (NextEntry !=
Entry);
453 Entry->NextPrefixTree = NextEntry;
470 DPRINT(
"RtlNextUnicodePrefix(): Table %p Restart %u\n",
485 SplayLinks = &
Entry->Links;
498 Entry = CaseMatchEntry;
545 DPRINT(
"RtlRemoveUnicodePrefix(): Table %p, TableEntry %p\n",
590 RefEntry =
Entry->NextPrefixTree;
640 RefEntry =
Entry->NextPrefixTree;
650 else if (&
Entry->Links != SplayLinks)
658 RefEntry =
Entry->NextPrefixTree;
IN PDCB IN POEM_STRING IN PUNICODE_STRING UnicodeName
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
WCHAR NTAPI RtlpUpcaseUnicodeChar(_In_ WCHAR Source)
base of all file and directory entries
struct _UNICODE_PREFIX_TABLE_ENTRY * CaseMatch
struct _UNICODE_PREFIX_TABLE_ENTRY * NextPrefixTree
PUNICODE_PREFIX_TABLE_ENTRY LastNextEntry
PUNICODE_PREFIX_TABLE_ENTRY NextPrefixTree
#define CONTAINING_RECORD(address, type, field)
VOID NTAPI RtlRemoveUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable, PUNICODE_PREFIX_TABLE_ENTRY PrefixTableEntry)
BOOLEAN NTAPI RtlInsertUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable, PUNICODE_STRING Prefix, PUNICODE_PREFIX_TABLE_ENTRY PrefixTableEntry)
RTL_GENERIC_COMPARE_RESULTS NTAPI CompareUnicodeStrings(IN PUNICODE_STRING Prefix, IN PUNICODE_STRING String, IN ULONG CaseCheckChar)
PUNICODE_PREFIX_TABLE_ENTRY NTAPI RtlFindUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable, PUNICODE_STRING FullName, ULONG CaseInsensitiveIndex)
PUNICODE_PREFIX_TABLE_ENTRY NTAPI RtlNextUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable, BOOLEAN Restart)
VOID NTAPI RtlInitializeUnicodePrefix(PUNICODE_PREFIX_TABLE PrefixTable)
ULONG NTAPI ComputeUnicodeNameLength(IN PUNICODE_STRING UnicodeName)
#define PFX_NTC_CASE_MATCH
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_In_ PUNICODE_STRING _In_ ULONG CaseInsensitiveIndex
#define RtlRightChild(Links)
#define RtlLeftChild(Links)
NTSYSAPI PRTL_SPLAY_LINKS NTAPI RtlSplay(_Inout_ PRTL_SPLAY_LINKS Links)
#define RtlInsertAsRightChild(ParentLinks, ChildLinks)
#define RtlIsLeftChild(Links)
_In_ __drv_aliasesMem PSTRING Prefix
NTSYSAPI PRTL_SPLAY_LINKS NTAPI RtlDelete(_In_ PRTL_SPLAY_LINKS Links)
#define RtlInitializeSplayLinks(Links)
#define RtlInsertAsLeftChild(ParentLinks, ChildLinks)
_In_ __drv_aliasesMem PSTRING _Out_ PPREFIX_TABLE_ENTRY PrefixTableEntry
_Must_inspect_result_ NTSYSAPI PRTL_SPLAY_LINKS NTAPI RtlRealSuccessor(_In_ PRTL_SPLAY_LINKS Links)
struct _UNICODE_PREFIX_TABLE_ENTRY * PUNICODE_PREFIX_TABLE_ENTRY
enum _RTL_GENERIC_COMPARE_RESULTS RTL_GENERIC_COMPARE_RESULTS