29{
34 ULONG EntryOffset = 0, IdOffset = 0;
37
38 DPRINT(
"RtlFindMessage()\n");
39
41 ResourceInfo.
Name = 1;
43
45 &ResourceInfo,
47 &ResourceDataEntry);
49 {
51 }
52
53 DPRINT(
"ResourceDataEntry: %p\n", ResourceDataEntry);
54
56 ResourceDataEntry,
57 (
PVOID*)&MessageTable,
60 {
62 }
63
64 DPRINT(
"MessageTable: %p\n", MessageTable);
65
68 {
69 DPRINT(
"LoId 0x%08lx HiId 0x%08lx Offset 0x%08lx\n",
73 }
74
76 {
78 (MessageId <= MessageTable->Blocks[
i].HighId))
79 {
82 break;
83 }
84
85 if (MessageId < MessageTable->Blocks[
i].LowId)
86 {
88 }
89 }
90
92 {
94 }
95
98
99 DPRINT(
"EntryOffset 0x%08lx\n", EntryOffset);
100 DPRINT(
"IdOffset 0x%08lx\n", IdOffset);
101
102 DPRINT(
"MessageEntry: %p\n", MessageEntry);
103 for (
i = 0;
i < IdOffset;
i++)
104 {
107 }
108
109 if (MessageEntry->
Flags == 0)
110 {
112 }
113 else
114 {
116 }
117
118 if (MessageResourceEntry !=
NULL)
119 {
120 *MessageResourceEntry = MessageEntry;
121 }
122
124}
#define NT_SUCCESS(StatCode)
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
NTSTATUS NTAPI LdrAccessResource(_In_ PVOID BaseAddress, _In_ PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry, _Out_opt_ PVOID *Resource, _Out_opt_ PULONG Size)
NTSTATUS NTAPI LdrFindResource_U(_In_ PVOID BaseAddress, _In_ PLDR_RESOURCE_INFO ResourceInfo, _In_ ULONG Level, _Out_ PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry)
#define RESOURCE_DATA_LEVEL
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
struct _MESSAGE_RESOURCE_ENTRY * PMESSAGE_RESOURCE_ENTRY
#define STATUS_MESSAGE_NOT_FOUND
MESSAGE_RESOURCE_BLOCK Blocks[ANYSIZE_ARRAY]
UCHAR Text[ANYSIZE_ARRAY]