#include "cmlib.h"
#include <debug.h>
Go to the source code of this file.
|
USHORT NTAPI | CmpCopyName (IN PHHIVE Hive, OUT PWCHAR Destination, IN PCUNICODE_STRING Source) |
|
VOID NTAPI | CmpCopyCompressedName (OUT PWCHAR Destination, IN ULONG DestinationLength, IN PWCHAR Source, IN ULONG SourceLength) |
|
USHORT NTAPI | CmpNameSize (IN PHHIVE Hive, IN PCUNICODE_STRING Name) |
|
USHORT NTAPI | CmpCompressedNameSize (IN PWCHAR Name, IN ULONG Length) |
|
LONG NTAPI | CmpCompareCompressedName (IN PCUNICODE_STRING SearchName, IN PWCHAR CompressedName, IN ULONG NameLength) |
|
BOOLEAN NTAPI | CmpFindNameInList (IN PHHIVE Hive, IN PCHILD_LIST ChildList, IN PCUNICODE_STRING Name, OUT PULONG ChildIndex OPTIONAL, OUT PHCELL_INDEX CellIndex) |
|
◆ NDEBUG
◆ CmpCompareCompressedName()
Definition at line 109 of file cmname.c.
112{
118
119
120 p = SearchName->Buffer;
121 pp = (
PUCHAR)CompressedName;
122 SearchLength = (SearchName->Length /
sizeof(
WCHAR));
123 while (SearchLength > 0 && NameLength > 0)
124 {
125
127 chr2 = (
WCHAR)(*pp++);
128
129
130 if (chr1 != chr2)
131 {
132
136 }
137
138
139 SearchLength--;
140 NameLength--;
141 }
142
143
144 return SearchLength - NameLength;
145}
WCHAR NTAPI RtlUpcaseUnicodeChar(_In_ WCHAR Source)
_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
Referenced by CmpCompareSubkeys(), CmpDoCompareKeyName(), CmpFindNameInList(), CmpFindValueByNameFromCache(), CmpGetNameControlBlock(), and CmpValidateLexicalOrder().
◆ CmpCompressedNameSize()
Definition at line 95 of file cmname.c.
97{
98
99
100
101
102
103
105}
_In_ ULONG _In_ ULONG _In_ ULONG Length
Referenced by BiEnumerateSubKeys(), CmpAddDriverToList(), CmpAddSubKey(), CmpConstructName(), CmpGetHiveName(), CmpIsSafe(), CmpMarkIndexDirty(), CmpQueryKeyData(), CmpQueryKeyDataFromCache(), CmpQueryKeyValueData(), CmpQueryNameInformation(), and CmpRemoveSubKey().
◆ CmpCopyCompressedName()
Definition at line 56 of file cmname.c.
60{
62
63
66 {
67
69 }
70}
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
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
Referenced by BiEnumerateSubKeys(), CmpAddDriverToList(), CmpAddSubKey(), CmpGetHiveName(), CmpIsSafe(), CmpMarkIndexDirty(), CmpQueryKeyData(), CmpQueryKeyValueData(), CmpQueryNameInformation(), and CmpRemoveSubKey().
◆ CmpCopyName()
◆ CmpFindNameInList()
Definition at line 149 of file cmname.c.
154{
162
163
165 {
166
168 if (!CellData)
169 {
170
173 }
174
175
177 {
178
180 {
181
184 }
185
186
188 if (!KeyValue)
189 {
190
193 goto Return;
194 }
195
196
198
199
201 {
202
206 }
207 else
208 {
209
214 }
215
216
218 {
219
220 if (ChildIndex) *ChildIndex =
i;
222
223
225 goto Return;
226 }
227 }
228
229
230 if (ChildIndex) *ChildIndex =
i;
232
233
235 goto Return;
236 }
237
238
240 if (ChildIndex) *ChildIndex = 0;
242
243
245
246Return:
247
249
250
253}
struct _CELL_DATA * PCELL_DATA
struct _CM_KEY_VALUE * PCM_KEY_VALUE
#define HvReleaseCell(Hive, Cell)
#define HvGetCell(Hive, Cell)
LONG NTAPI CmpCompareCompressedName(IN PCUNICODE_STRING SearchName, IN PWCHAR CompressedName, IN ULONG NameLength)
ULONG RtlCompareUnicodeString(PUNICODE_STRING s1, PUNICODE_STRING s2, BOOLEAN UpCase)
HCELL_INDEX KeyList[ANYSIZE_ARRAY]
union _CELL_DATA::@4299 u
WCHAR Name[ANYSIZE_ARRAY]
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFCHILDLIST * ChildList
Referenced by BiGetRegistryValue(), CmDeleteValueKey(), CmpFindValueByName(), CmSetValueKey(), RegDeleteValueW(), and RegSetValueExW().
◆ CmpNameSize()