ReactOS 0.4.16-dev-91-g764881a
|
#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winver.h>
#include <winnt.h>
#include <imagehlp.h>
#include "wine/test.h"
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | Imports |
struct | Imports::__IMPORT_BY_NAME |
struct | _PeImage |
struct | blob |
struct | expected_blob |
struct | update_accum |
struct | expected_update_accum |
Macros | |
#define | NONAMELESSUNION |
#define | VA_START 0x400000 |
#define | FILE_PE_START 0x50 |
#define | NUM_SECTIONS 3 |
#define | FILE_TEXT 0x200 |
#define | RVA_TEXT 0x1000 |
#define | RVA_BSS 0x2000 |
#define | FILE_IDATA 0x400 |
#define | RVA_IDATA 0x3000 |
#define | FILE_TOTAL 0x600 |
#define | RVA_TOTAL 0x4000 |
#define | EXIT_PROCESS (VA_START+RVA_IDATA+FIELD_OFFSET(struct Imports, thunks)) |
Functions | |
static | BOOL (WINAPI *pImageGetDigestStream)(HANDLE |
static | DWORD (WINAPI *pGetImageUnusedHeaderBytes)(PLOADED_IMAGE |
static | PLOADED_IMAGE (WINAPI *pImageLoad)(PCSTR |
static BOOL WINAPI | accumulating_stream_output (DIGEST_HANDLE handle, BYTE *pb, DWORD cb) |
static void | check_updates (LPCSTR header, const struct expected_update_accum *expected, const struct update_accum *got) |
static void | free_updates (struct update_accum *accum) |
static HANDLE | create_temp_file (char *temp_file) |
static void | update_checksum (void) |
static BOOL CALLBACK | testing_status_routine (IMAGEHLP_STATUS_REASON reason, const char *ImageName, const char *DllName, ULONG_PTR Va, ULONG_PTR Parameter) |
static void | test_get_digest_stream (void) |
static void | test_bind_image_ex (void) |
static void | test_image_load (void) |
START_TEST (image) | |
Variables | |
static HMODULE | hImageHlp |
static | DWORD |
static | DIGEST_FUNCTION |
static | DIGEST_HANDLE |
static const char * | ImageName |
static const char const char * | DllPath |
static const char const char const char * | SymbolPath |
static const char const char const char PIMAGEHLP_STATUS_ROUTINE | StatusRoutine |
static | LPDWORD |
static | PCSTR |
static struct _PeImage | bin |
static int | status_routine_called [BindSymbolsNotUpdated+1] |
static const struct expected_blob | b1 [] |
static const struct expected_update_accum | a1 = { ARRAY_SIZE(b1), b1, TRUE } |
static const struct expected_blob | b2 [] |
static const struct expected_update_accum | a2 = { ARRAY_SIZE(b2), b2, FALSE } |
|
static |
Definition at line 161 of file image.c.
|
static |
Definition at line 188 of file image.c.
Definition at line 247 of file image.c.
|
static |
|
static |
START_TEST | ( | image | ) |
Definition at line 514 of file image.c.
Definition at line 378 of file image.c.
Referenced by START_TEST().
Definition at line 317 of file image.c.
Referenced by START_TEST().
Definition at line 432 of file image.c.
Referenced by START_TEST().
|
static |
Definition at line 283 of file image.c.
Referenced by test_bind_image_ex().
Definition at line 261 of file image.c.
Referenced by test_get_digest_stream().
|
static |
|
static |
|
static |
|
static |
Referenced by bin_to_DLineLoops(), buf_to_string(), Subdivider::classify_headonleft_s(), Subdivider::classify_headonleft_t(), Subdivider::classify_headonright_s(), Subdivider::classify_headonright_t(), Subdivider::classify_tailonleft_s(), Subdivider::classify_tailonleft_t(), Subdivider::classify_tailonright_s(), Subdivider::classify_tailonright_t(), cred_encode(), Subdivider::decompose(), encode_base64(), extract(), Subdivider::findIrregularS(), Subdivider::findIrregularT(), Subdivider::freejarcs(), HTTP_DecodeBase64(), HTTP_EncodeBase64(), load_mono(), Subdivider::monotonize(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), Subdivider::outline(), Subdivider::partition(), Subdivider::render(), Subdivider::split(), Subdivider::tessellate(), Subdivider::tessellation(), test_findRDNAttr(), validate_signature(), and xslprocessor_transform().
Definition at line 34 of file image.c.
Referenced by AVrfpLoadAndInitializeProvider(), BaseComputeProcessDllPath(), BaseInitApphelp(), BasePushProcessParameters(), BindImage(), BindImageEx(), GetModuleHandleForUnicodeString(), KdpSymbol(), LdrGetDllHandle(), LdrGetDllHandleEx(), LdrpCheckForLoadedDll(), LdrpHandleNewFormatImportDescriptors(), LdrpHandleOldFormatImportDescriptors(), LdrpHandleOneNewFormatImportDescriptor(), LdrpHandleOneOldFormatImportDescriptor(), LdrpLoadDll(), LdrpLoadImportModule(), LdrpResolveDllName(), LdrpWalkImportDescriptor(), RtlCreateProcessParameters(), SmpInitializeKnownDllPath(), TestDllStartup(), and TestMyEventProvider().
|
static |
Definition at line 31 of file image.c.
Referenced by START_TEST().
Definition at line 34 of file image.c.
Referenced by ApphelpCacheLookupEntry(), ApphelpCacheRemoveEntry(), ApphelpCacheUpdateEntry(), ApphelpValidateData(), BasePushProcessParameters(), BindImage(), BindImageEx(), DisplayScreen(), GetImageName(), GetTListInfo(), KdInitSystem(), KsGetImageNameAndResourceId(), KsMapModuleName(), LdrpLoadShimEngine(), LdrpRecordUnloadEvent(), Main(), module_is_container_loaded(), NtApphelpCacheControl(), NtQueryInformationProcess(), OpenImageFileExecOptions(), PerfDataGetImageName(), PerfDataRefresh(), PspCatchCriticalBreak(), QSI_DEF(), RemoveRelocations(), SeLocateProcessImageName(), SplitSymbols(), SSI_DEF(), SymLoadModule(), SymLoadModule64(), and SymLoadModuleEx().
|
static |
Definition at line 158 of file image.c.
Referenced by test_bind_image_ex(), and testing_status_routine().
Definition at line 35 of file image.c.
Referenced by BindImageEx(), and UpdateRegistry().
Definition at line 35 of file image.c.
Referenced by BindImage(), BindImageEx(), FindDebugInfoFile(), FindDebugInfoFileEx(), FindExecutableImage(), FindExecutableImageEx(), FindExecutableImageExW(), MapDebugInformation(), ReBaseImage(), UpdateDebugInfoFile(), and UpdateDebugInfoFileEx().