46 return Name->Buffer[0];
48 CurrentChar =
Name->Buffer;
49 Hash = (*CurrentChar << 8) + *(CurrentChar + 1);
65 Hash += *(CurrentChar + 1);
106 UCHAR OemSizeLeft = 6;
111 if ((Char >
L' ') && (Char !=
L'.') &&
116 else if (Char >=
L'a' && Char <=
L'z')
140 while (DotPos < Length && Context->ExtensionLength < 4)
142 Char =
Name->Buffer[DotPos];
144 if ((Char >
L' ') && (Char !=
L'.') &&
149 else if (Char >=
L'a' && Char <=
L'z')
170 (Checksum & 0xF) > 9 ? (Checksum & 0xF) +
L'A' - 10 : (Checksum & 0xF) +
L'0';
188 (Checksum & 0xF) > 9 ? (Checksum & 0xF) +
L'A' - 10 : (Checksum & 0xF) +
L'0';
199 for (IndexLength = 1; IndexLength <= 7 && Index > 0; IndexLength++)
201 IndexBuffer[8 - IndexLength] =
L'0' + (
Index % 10);
205 IndexBuffer[8 - IndexLength] =
L'~';
222 IndexBuffer + (8 - IndexLength),
253 static const char Illegal[] =
"*?<>|\"+=,;[]:/\\\345";
char * strchr(const char *String, int ch)
#define NT_SUCCESS(StatCode)
static int Hash(const char *)
static USHORT RtlpGetCheckSum(PUNICODE_STRING Name)
PUSHORT NlsUnicodeToMbOemTable
static BOOLEAN RtlpIsShortIllegal(const WCHAR Char)
BOOLEAN NTAPI RtlIsValidOemCharacter(IN PWCHAR Char)
VOID NTAPI RtlGenerate8dot3Name(IN PUNICODE_STRING Name, IN BOOLEAN AllowExtendedCharacters, IN OUT PGENERATE_NAME_CONTEXT Context, OUT PUNICODE_STRING Name8dot3)
const ULONG RtlpShortIllegals[]
#define _IRQL_requires_max_(irql)
IN PDCB IN POEM_STRING OemName
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
BOOLEAN NTAPI RtlIsNameLegalDOS8Dot3(_In_ PUNICODE_STRING Name, _Inout_opt_ POEM_STRING OemName, _Inout_opt_ PBOOLEAN NameContainsSpaces)
NTSYSAPI NTSTATUS WINAPI RtlUpcaseUnicodeStringToCountedOemString(STRING *, const UNICODE_STRING *, BOOLEAN)
#define _Must_inspect_result_
_Inout_opt_ POEM_STRING _Out_opt_ PBOOLEAN NameContainsSpaces
WCHAR NTAPI RtlpUpcaseUnicodeChar(_In_ WCHAR Source)
BOOLEAN NlsMbOemCodePageTag
_In_ ULONG _In_ ULONG _In_ ULONG Length
PULONG MinorVersion OPTIONAL
#define RtlCopyMemory(Destination, Source, Length)
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ BOOLEAN _Inout_ PGENERATE_NAME_CONTEXT _Inout_ PUNICODE_STRING Name8dot3
*BytesInOemString PCHAR OemString
_In_ BOOLEAN AllowExtendedCharacters