13#if defined (_WIN64) && defined (__ia64__)
14#error FIXME: Unsupported __ImageBase implementation.
18#define __ImageBase __MINGW_LSYMBOL(_image_base__)
52 unsigned int iSection;
58 ++iSection,++pSection)
75 unsigned int iSection;
89 ++iSection,++pSection)
138 unsigned int iSection;
148 ++iSection,++pSection)
184 rvaTarget =
pTarget - pImageBase;
186 if (pSection ==
NULL)
201 DWORD importsStartRVA;
210 if (!importsStartRVA)
227 return (
char *) (pImageBase + importDesc->
Name);
238 static HANDLE msvcrt_handle;
241 const char *lib_name;
245 if((lib_name[0] ==
'm' || lib_name[0] ==
'M')
246 && (lib_name[1] ==
's' || lib_name[1] ==
'S')
247 && (lib_name[2] ==
'v' || lib_name[2] ==
'V')
248 && (lib_name[3] ==
'c' || lib_name[3] ==
'C')
249 && (lib_name[4] ==
'r' || lib_name[4] ==
'R')
250 && (lib_name[5] ==
't' || lib_name[5] ==
'T' || (
'0' <= lib_name[5] && lib_name[5] <=
'9')))
260 return msvcrt_handle;
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
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
#define IMAGE_SCN_MEM_WRITE
struct _IMAGE_IMPORT_DESCRIPTOR * PIMAGE_IMPORT_DESCRIPTOR
#define IMAGE_SCN_MEM_EXECUTE
#define IMAGE_FIRST_SECTION(NtHeader)
#define IMAGE_NT_OPTIONAL_HDR_MAGIC
#define IMAGE_DIRECTORY_ENTRY_IMPORT
#define IMAGE_NT_SIGNATURE
struct _IMAGE_OPTIONAL_HEADER * PIMAGE_OPTIONAL_HEADER
#define IMAGE_SIZEOF_SHORT_NAME
#define IMAGE_DOS_SIGNATURE
WINBOOL _ValidateImageBase(PBYTE)
PIMAGE_SECTION_HEADER _FindPESectionByName(const char *)
PIMAGE_SECTION_HEADER __mingw_GetSectionForAddress(LPVOID p)
const char * __mingw_enum_import_library_names(int)
int __mingw_GetSectionCount(void)
PIMAGE_SECTION_HEADER _FindPESection(PBYTE, DWORD_PTR)
IMAGE_DOS_HEADER __ImageBase
PIMAGE_SECTION_HEADER _FindPESectionExec(size_t)
PBYTE _GetPEImageBase(void)
HMODULE __mingw_get_msvcrt_handle(void)
WINBOOL _IsNonwritableInCurrentImage(PBYTE)
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress