#include <stdlib.h>
#include <stdarg.h>
#include "mkhive.h"
#include <bitmap.c>
Go to the source code of this file.
|
VOID NTAPI | RtlInitUnicodeString (IN OUT PUNICODE_STRING DestinationString, IN PCWSTR SourceString) |
|
LONG NTAPI | RtlCompareUnicodeString (IN PCUNICODE_STRING String1, IN PCUNICODE_STRING String2, IN BOOLEAN CaseInSensitive) |
|
WCHAR NTAPI | RtlUpcaseUnicodeChar (IN WCHAR Source) |
|
VOID NTAPI | KeQuerySystemTime (OUT PLARGE_INTEGER CurrentTime) |
|
PVOID NTAPI | ExAllocatePool (IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes) |
|
VOID NTAPI | ExFreePool (IN PVOID p) |
|
ULONG __cdecl | DbgPrint (IN CHAR *Format, IN ...) |
|
VOID NTAPI | RtlAssert (IN PVOID FailedAssertion, IN PVOID FileName, IN ULONG LineNumber, IN PCHAR Message OPTIONAL) |
|
VOID NTAPI | KeBugCheckEx (IN ULONG BugCheckCode, IN ULONG_PTR BugCheckParameter1, IN ULONG_PTR BugCheckParameter2, IN ULONG_PTR BugCheckParameter3, IN ULONG_PTR BugCheckParameter4) |
|
unsigned char | BitScanForward (ULONG *Index, unsigned long Mask) |
|
unsigned char | BitScanReverse (ULONG *const Index, unsigned long Mask) |
|
◆ BitScanForward()
Definition at line 177 of file rtl.c.
178{
181 {
183 ++(*Index);
184 }
186}
_In_ WDFCOLLECTION _In_ ULONG Index
◆ BitScanReverse()
Definition at line 188 of file rtl.c.
189{
191 while (
Mask && ((
Mask & (1 << 31)) == 0))
192 {
194 ++(*Index);
195 }
197}
◆ DbgPrint()
Definition at line 120 of file rtl.c.
123{
128
129 return 0;
130}
_Check_return_opt_ _CRTIMP int __cdecl vprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
void int int ULONGLONG int va_list * ap
◆ ExAllocatePool()
Definition at line 104 of file rtl.c.
107{
109}
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
◆ ExFreePool()
◆ KeBugCheckEx()
Definition at line 161 of file rtl.c.
167{
168 printf(
"*** STOP: 0x%08X (0x%p,0x%p,0x%p,0x%p)",
169 BugCheckCode,
170 (
PVOID)BugCheckParameter1,
171 (
PVOID)BugCheckParameter2,
172 (
PVOID)BugCheckParameter3,
173 (
PVOID)BugCheckParameter4);
175}
◆ KeQuerySystemTime()
Definition at line 97 of file rtl.c.
99{
100 CurrentTime->QuadPart = 0;
101}
◆ RtlAssert()
Definition at line 134 of file rtl.c.
138{
140 {
141 DbgPrint(
"Assertion \'%s\' failed at %s line %u: %s\n",
142 (
PCHAR)FailedAssertion,
146 }
147 else
148 {
149 DbgPrint(
"Assertion \'%s\' failed at %s line %u\n",
150 (
PCHAR)FailedAssertion,
153 }
154
155
156}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
static const WCHAR Message[]
◆ RtlCompareUnicodeString()
Definition at line 49 of file rtl.c.
53{
56
57 for (
i = 0;
i <= String1->Length /
sizeof(
WCHAR) && i <= String2->
Length /
sizeof(
WCHAR);
i++)
58 {
60 {
63 }
64 else
65 {
66 c1 = String1->Buffer[
i];
68 }
69
70 if (c1 < c2)
71 return -1;
72 else if (c1 > c2)
73 return 1;
74 }
75
76 return 0;
77}
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_ const STRING * String2
_In_ const STRING _In_ BOOLEAN CaseInSensitive
_In_ ULONG _In_ ULONG _In_ ULONG Length
◆ RtlInitUnicodeString()
Definition at line 27 of file rtl.c.
30{
32
34 {
38 }
39 else
40 {
43 }
44
46}
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
_Out_ _Inout_ POEM_STRING DestinationString
unsigned short MaximumLength
◆ RtlUpcaseUnicodeChar()
Definition at line 80 of file rtl.c.
82{
84
87
89 return (
Source - (
'a' -
'A'));
90
92
94}
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ ULONG _In_ ULONG Offset
Referenced by RtlCompareUnicodeString().