3 Copyright (c) Alex Ionescu. All rights reserved.
11 Function definitions for Native DLL (ntdll) APIs exclusive to User Mode.
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
26 #include <dbgktypes.h>
35 DbgBreakPointWithStatus(
48 _In_ PCLIENT_ID ClientId
,
49 _In_ NTSTATUS ContinueStatus
54 DbgUiDebugActiveProcess(
68 _In_ PDBGUI_WAIT_STATE_CHANGE DbgUiWaitStateCange
,
69 _In_ PLARGE_INTEGER TimeOut
74 DbgUiConvertStateChangeStructure(
75 _In_ PDBGUI_WAIT_STATE_CHANGE WaitStateChange
,
87 DbgUiIssueRemoteBreakin(
93 DbgUiGetThreadDebugObject(
105 _In_ PVOID BaseAddress
110 LdrDisableThreadCalloutsForDll(
111 _In_ PVOID BaseAddress
117 _In_opt_ PWSTR DllPath
,
118 _In_ PULONG DllCharacteristics
,
119 _In_ PUNICODE_STRING DllName
,
120 _Out_ PVOID
*DllHandle
127 _In_opt_ PWSTR DllPath
,
128 _In_opt_ PULONG DllCharacteristics
,
129 _In_ PUNICODE_STRING DllName
,
130 _Out_opt_ PVOID
*DllHandle
);
134 LdrFindEntryForAddress(
136 _Out_ PLDR_DATA_TABLE_ENTRY
*Module
141 LdrGetProcedureAddress(
142 _In_ PVOID BaseAddress
,
143 _In_ PANSI_STRING Name
,
145 _Out_ PVOID
*ProcedureAddress
160 _In_opt_ PWSTR SearchPath
,
161 _In_opt_ PULONG LoadFlags
,
162 _In_ PUNICODE_STRING Name
,
163 _Out_opt_ PVOID
*BaseAddress
166 PIMAGE_BASE_RELOCATION
168 LdrProcessRelocationBlock(
169 _In_ ULONG_PTR Address
,
171 _In_ PUSHORT TypeOffset
,
177 LdrQueryImageFileExecutionOptions(
178 _In_ PUNICODE_STRING SubKey
,
179 _In_ PCWSTR ValueName
,
180 _In_ ULONG ValueSize
,
182 _In_ ULONG BufferSize
,
183 _Out_opt_ PULONG RetunedLength
188 LdrQueryProcessModuleInformation(
189 _In_opt_ PRTL_PROCESS_MODULES ModuleInformation
,
191 _Out_ PULONG ReturnedSize
209 _In_ PVOID BaseAddress
212 typedef VOID (NTAPI
*PLDR_CALLBACK
)(PVOID CallbackContext
, PCHAR Name
);
215 LdrVerifyImageMatchesChecksum(
216 _In_ HANDLE FileHandle
,
217 _In_ PLDR_CALLBACK Callback
,
218 _In_ PVOID CallbackContext
,
219 _Out_ PUSHORT ImageCharacterstics
224 LdrOpenImageFileOptionsKey(
225 _In_ PUNICODE_STRING SubKey
,
227 _Out_ PHANDLE NewKeyHandle
232 LdrQueryImageFileKeyOption(
233 _In_ HANDLE KeyHandle
,
234 _In_ PCWSTR ValueName
,
237 _In_ ULONG BufferSize
,
238 _Out_opt_ PULONG ReturnedLength