#include <apitest.h>
#include <psapi.h>
#include <tlhelp32.h>
#include <stdio.h>
Go to the source code of this file.
◆ IntGetImageBase()
Definition at line 20 of file psapi.c.
21{
24
27 {
29 }
30
33 {
36 }
37
38 do
39 {
41 {
44 }
46
49}
#define INVALID_HANDLE_VALUE
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
#define TH32CS_SNAPMODULE
struct tagMODULEENTRY32 MODULEENTRY32
Referenced by IntGetModuleInformation().
◆ IntGetModuleInformation()
Definition at line 51 of file psapi.c.
52{
55
57
58
59 Len = GetSystemWindowsDirectory(System, 255);
61 {
62 printf(
"GetSystemWindowsDirectory failed\n");
64 }
65
66
67 strcat(System,
"\\system32\\");
68 if (IsDriver)
strcat(System,
"drivers\\");
70
71
72 if (IsProcMod)
73 {
76 {
77 printf(
"IntGetImageBase failed\n");
79 }
80 }
81 else
82 {
83
84 printf(
"Not supported yet!\n");
86 }
87
88 if (BaseName)
89 {
92 }
93 else
94 {
95
98 }
99
101}
int WINAPI lstrlenA(LPCSTR lpString)
static LPVOID IntGetImageBase(LPCSTR Image)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Referenced by START_TEST().
◆ START_TEST() [1/2]
Definition at line 162 of file psapi.c.
163{
167
172
174 {
180
181
190 }
191 else
192 {
193 skip(
"Couldn't find info about ntdll.dll\n");
194 }
195
197 {
202 }
203 else
204 {
205 skip(
"Couldn't find info about msvcrt.dll\n");
206 }
207
209 {
214 }
215 else
216 {
217 skip(
"Couldn't find info about psapi.dll\n");
218 }
219}
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetDeviceDriverBaseNameA(LPVOID ImageBase, LPSTR lpBaseName, DWORD nSize)
static BOOLEAN IntGetModuleInformation(LPCSTR Module, BOOLEAN IsDriver, BOOLEAN IsProcMod, BOOLEAN BaseName, TEST_MODULE_INFO *Info)
DWORD WINAPI GetLastError(void)
◆ START_TEST() [2/2]
Definition at line 103 of file psapi.c.
104{
108
113
115 {
121
122
131 }
132 else
133 {
134 skip(
"Couldn't find info about ntdll.dll\n");
135 }
136
138 {
143 }
144 else
145 {
146 skip(
"Couldn't find info about msvcrt.dll\n");
147 }
148
150 {
155 }
156 else
157 {
158 skip(
"Couldn't find info about psapi.dll\n");
159 }
160}
DWORD WINAPI GetDeviceDriverFileNameA(LPVOID ImageBase, LPSTR lpFilename, DWORD nSize)