Go to the source code of this file.
|
PWCHAR __fastcall | UDFDissectName (IN PWCHAR Buffer, OUT PUSHORT Length) |
|
BOOLEAN | UDFIsNameInExpression (IN PVCB Vcb, IN PUNICODE_STRING FileName, IN PUNICODE_STRING PtrSearchPattern, OUT PBOOLEAN DosOpen, IN BOOLEAN IgnoreCase, IN BOOLEAN ContainsWC, IN BOOLEAN CanBe8dot3, IN BOOLEAN KeepIntact) |
|
BOOLEAN | UDFDoesNameContainWildCards (IN PUNICODE_STRING SearchPattern) |
|
BOOLEAN __fastcall | UDFIsNameValid (IN PUNICODE_STRING SearchPattern, OUT BOOLEAN *StreamOpen, OUT ULONG *SNameIndex) |
|
BOOLEAN __fastcall | UDFIsMatchAllMask (IN PUNICODE_STRING Name, OUT BOOLEAN *DosOpen) |
|
BOOLEAN __fastcall | UDFCanNameBeA8dot3 (IN PUNICODE_STRING Name) |
|
◆ UDFCanNameBeA8dot3()
Definition at line 266 of file namesup.cpp.
269{
272
277
279
281 if( ((*
buff) ==
L'.') ||
283 if(dot_pos)
286 } else
287 if(dot_pos) {
288 ext_len++;
289 if(ext_len > 3)
291 } else
294 }
295 }
297}
static unsigned char buff[32768]
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
Referenced by UDFFindFile(), and UDFQueryDirectory().
◆ UDFDissectName()
Definition at line 19 of file namesup.cpp.
23{
24
26
27#if defined(_X86_) && defined(_MSC_VER) && !defined(__clang__)
28
30
33
36Remove_leading_slash:
38 __asm jne No_IncPointer
40 __asm jmp Remove_leading_slash
41No_IncPointer:
43 __asm jne Scan_1
45 __asm inc ecx
46 __asm jmp EO_Dissect
47Scan_1:
50 __asm je EO_Dissect
52 __asm jz EO_Dissect
54 __asm jne Cont_scan
55 __asm or ecx,ecx
56 __asm jnz EO_Dissect
57Cont_scan:
58 __asm inc ecx
60 __asm jmp Scan_1
61EO_Dissect:
64
67
69 return retval;
70
71#else
72
75 }
79 }
85
86#endif
87
88}
static void xor(unsigned char *dst, const unsigned char *a, const unsigned char *b, const int count)
#define cmp(status, error)
_In_ ULONG _In_ ULONG _In_ ULONG Length
static calc_node_t * pop(void)
static void push(calc_node_t *op)
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl ebx
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl edx movl TEMP incl eax andl eax ecx incl ebx testl eax jnz xchgl ecx incl TEMP esp ecx subl ebx pushl ecx ecx edx ecx shrl ecx mm0 mm4 mm0 mm4 mm1 mm5 mm1 mm5 mm2 mm6 mm2 mm6 mm3 mm7 mm3 mm7 paddd mm0 paddd mm4 paddd mm0 paddd mm4 paddd mm0 paddd mm4 movq mm1 movq mm5 psrlq mm1 psrlq mm5 paddd mm0 paddd mm4 psrad mm0 psrad mm4 packssdw mm0 packssdw mm4 mm1 punpckldq mm0 pand mm1 pand mm0 por mm1 movq edi esi edx edi decl ecx jnz popl ecx andl ecx jecxz mm0 mm0 mm1 mm1 mm2 mm2 mm3 mm3 paddd mm0 paddd mm0 paddd mm0 movq mm1 psrlq mm1 paddd mm0 psrad mm0 packssdw mm0 movd eax movw ax
Referenced by UDFCommonCreate(), and UDFIsPathnameValid().
◆ UDFDoesNameContainWildCards()
◆ UDFIsMatchAllMask()
Definition at line 214 of file namesup.cpp.
218{
221
222 if(DosOpen)
226
230 } else
231 if(
Name->Length ==
sizeof(
WCHAR)*(8+1+3)) {
232
236 }
243 }
244 if(DosOpen)
247 } else
249
256 if(DosOpen)
259 } else {
261 }
262}
Referenced by UDFQueryDirectory().
◆ UDFIsNameInExpression()
Definition at line 156 of file namesup.cpp.
166{
170
171 if(!PtrSearchPattern)
return TRUE;
172
173 if(DosOpen) (*DosOpen) =
FALSE;
174
175
178
181 }
182
183 if(Match)
return TRUE;
184
185
188
189
193
194
195
196
199
202 }
203 if(DosOpen && Match) {
204
206 }
207 return Match;
208}
ULONG RtlCompareUnicodeString(PUNICODE_STRING s1, PUNICODE_STRING s2, BOOLEAN UpCase)
IN PDCB IN POEM_STRING IN PUNICODE_STRING IN OUT POEM_STRING ShortName
BOOLEAN NTAPI FsRtlIsNameInExpression(IN PUNICODE_STRING Expression, IN PUNICODE_STRING Name, IN BOOLEAN IgnoreCase, IN PWCHAR UpcaseTable OPTIONAL)
void __fastcall UDFDOSName(IN PVCB Vcb, IN OUT PUNICODE_STRING DosName, IN PUNICODE_STRING UdfName, IN BOOLEAN KeepIntact)
Referenced by UDFFindNextMatch().
◆ UDFIsNameValid()
Definition at line 92 of file namesup.cpp.
96 {
101
102 if(StreamOpen) (*StreamOpen) =
FALSE;
103
104 if(!(
l = SearchPattern->Length/
sizeof(
WCHAR)) ||
106 Buffer = SearchPattern->Buffer;
108
116 ((
c >= 0x0000) && (
c <= 0x001f)) ||
118
119 if(!(_StreamOpen) &&
121 ((_StreamOpen) = (
c ==
L':'))) {
122 if(StreamOpen) (*StreamOpen) =
TRUE;
123 if(SNameIndex) (*SNameIndex) =
Index;
124 }
125
126
129 (_StreamOpen) ||
130 (c0 ==
L'.'))
return FALSE;
131 }
133 }
134
135
137 (c0 ==
L'.'))
return FALSE;
139}
_In_ WDFCOLLECTION _In_ ULONG Index
Referenced by UDFCommonCreate(), and UDFIsPathnameValid().