#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.
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
#define INVALID_HANDLE_VALUE
struct tagMODULEENTRY32 MODULEENTRY32
#define TH32CS_SNAPMODULE
Referenced by IntGetModuleInformation().
◆ IntGetModuleInformation()
Definition at line 51 of file psapi.c.
59 Len = GetSystemWindowsDirectory(
System, 255);
62 printf(
"GetSystemWindowsDirectory failed\n");
77 printf(
"IntGetImageBase failed\n");
84 printf(
"Not supported yet!\n");
char * strcat(char *DstString, const char *SrcString)
static LPVOID IntGetImageBase(LPCSTR Image)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
int WINAPI lstrlenA(LPCSTR lpString)
char * strcpy(char *DstString, const char *SrcString)
Referenced by START_TEST().
◆ START_TEST() [1/2]
Definition at line 103 of file psapi.c.
134 skip(
"Couldn't find info about ntdll.dll\n");
146 skip(
"Couldn't find info about msvcrt.dll\n");
158 skip(
"Couldn't find info about psapi.dll\n");
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetDeviceDriverFileNameA(LPVOID ImageBase, LPSTR lpFilename, DWORD nSize)
DWORD WINAPI GetLastError(VOID)
static BOOLEAN IntGetModuleInformation(LPCSTR Module, BOOLEAN IsDriver, BOOLEAN IsProcMod, BOOLEAN BaseName, TEST_MODULE_INFO *Info)
◆ START_TEST() [2/2]
Definition at line 162 of file psapi.c.
193 skip(
"Couldn't find info about ntdll.dll\n");
205 skip(
"Couldn't find info about msvcrt.dll\n");
217 skip(
"Couldn't find info about psapi.dll\n");
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
DWORD WINAPI GetDeviceDriverBaseNameA(LPVOID ImageBase, LPSTR lpBaseName, DWORD nSize)
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetLastError(VOID)
static BOOLEAN IntGetModuleInformation(LPCSTR Module, BOOLEAN IsDriver, BOOLEAN IsProcMod, BOOLEAN BaseName, TEST_MODULE_INFO *Info)