Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Demo Scene Picture sinwav...
by
Gigatron
[
Today
at 12:48:52 am]
open dialog - default dir...
by
KodeZwerg
[
Today
at 12:34:53 am]
Can function be used for ...
by
jamie
[
Today
at 12:26:42 am]
DbGrid, grid column check...
by
KodeZwerg
[
Today
at 12:08:29 am]
Colore celle StringGrid
by
JuanBell
[April 24, 2024, 10:37:56 pm]
Likely bug
by
440bx
[April 24, 2024, 10:12:59 pm]
Any upgrades to fpWeb pag...
by
verasan
[April 24, 2024, 10:11:46 pm]
Web Applications with Pas...
by
Handoko
[April 24, 2024, 08:56:29 pm]
AI, NLP and CAI: Text Gen...
by
indydev
[April 24, 2024, 08:54:00 pm]
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[April 24, 2024, 08:48:22 pm]
Multidimensional arrays a...
by
KodeZwerg
[April 24, 2024, 08:34:38 pm]
Ho Ho Ho IntraWeb in Laza...
by
Thaddy
[April 24, 2024, 08:31:29 pm]
[SOLVED] System.Now gives...
by
alpine
[April 24, 2024, 08:29:19 pm]
Installing and using Vamp...
by
Odacir
[April 24, 2024, 07:58:22 pm]
Demo Scene Bitmap Font Sc...
by
KodeZwerg
[April 24, 2024, 07:21:14 pm]
what's difference between...
by
ASerge
[April 24, 2024, 07:09:52 pm]
splitting an image
by
KodeZwerg
[April 24, 2024, 07:07:21 pm]
Debugger error
by
bobonwhidbey
[April 24, 2024, 07:03:07 pm]
How to: create DLL file f...
by
paule32
[April 24, 2024, 07:02:31 pm]
Your best UI design - con...
by
circular
[April 24, 2024, 06:48:12 pm]
Converting a string/index...
by
1HuntnMan
[April 24, 2024, 06:35:19 pm]
Drawing grid lines on a t...
by
KodeZwerg
[April 24, 2024, 05:42:19 pm]
Compile/Convert Delphi pr...
by
Martin_fr
[April 24, 2024, 05:29:03 pm]
Lazarus features in a non...
by
Lutz Mändle
[April 24, 2024, 05:26:34 pm]
Lazarus for Windows on aa...
by
msintle
[April 24, 2024, 05:03:57 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData" (Read 3196 times)
xjw1162
Newbie
Posts: 4
PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
«
on:
October 03, 2021, 05:29:36 pm »
PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
struct.inc
8547:
Code: Pascal
[Select]
[+]
[-]
PIMAGE_OPTIONAL_HEADER64
=
^
IMAGE_OPTIONAL_HEADER64
;
_IMAGE_OPTIONAL_HEADER64
=
record
Magic
:
Word
;
MajorLinkerVersion
:
Byte
;
MinorLinkerVersion
:
Byte
;
SizeOfCode
:
DWORD
;
SizeOfInitializedData
:
DWORD
;
SizeOfUninitializedData
:
DWORD
;
AddressOfEntryPoint
:
DWORD
;
BaseOfCode
:
DWORD
;
// 64bit : no member "BaseOfData"
ImageBase
:
Int64
;
SectionAlignment
:
DWORD
;
FileAlignment
:
DWORD
;
MajorOperatingSystemVersion
:
Word
;
MinorOperatingSystemVersion
:
Word
;
MajorImageVersion
:
Word
;
MinorImageVersion
:
Word
;
MajorSubsystemVersion
:
Word
;
MinorSubsystemVersion
:
Word
;
Win32VersionValue
:
DWORD
;
SizeOfImage
:
DWORD
;
SizeOfHeaders
:
DWORD
;
CheckSum
:
DWORD
;
Subsystem
:
Word
;
DllCharacteristics
:
Word
;
SizeOfStackReserve
:
Int64
;
SizeOfStackCommit
:
Int64
;
SizeOfHeapReserve
:
Int64
;
SizeOfHeapCommit
:
Int64
;
LoaderFlags
:
DWORD
;
NumberOfRvaAndSizes
:
DWORD
;
DataDirectory
:
array
[
0
..
IMAGE_NUMBEROF_DIRECTORY_ENTRIES
-
1
]
of
IMAGE_DATA_DIRECTORY
;
end
;
IMAGE_OPTIONAL_HEADER64
=
_IMAGE_OPTIONAL_HEADER64
;
8480:
Code: Pascal
[Select]
[+]
[-]
type
PIMAGE_OPTIONAL_HEADER32
=
^
IMAGE_OPTIONAL_HEADER32
;
_IMAGE_OPTIONAL_HEADER
=
record
//
// Standard fields.
//
Magic
:
Word
;
MajorLinkerVersion
:
Byte
;
MinorLinkerVersion
:
Byte
;
SizeOfCode
:
DWORD
;
SizeOfInitializedData
:
DWORD
;
SizeOfUninitializedData
:
DWORD
;
AddressOfEntryPoint
:
DWORD
;
BaseOfCode
:
DWORD
;
BaseOfData
:
DWORD
;
//
// NT additional fields.
//
ImageBase
:
DWORD
;
SectionAlignment
:
DWORD
;
FileAlignment
:
DWORD
;
MajorOperatingSystemVersion
:
Word
;
MinorOperatingSystemVersion
:
Word
;
MajorImageVersion
:
Word
;
MinorImageVersion
:
Word
;
MajorSubsystemVersion
:
Word
;
MinorSubsystemVersion
:
Word
;
Win32VersionValue
:
DWORD
;
SizeOfImage
:
DWORD
;
SizeOfHeaders
:
DWORD
;
CheckSum
:
DWORD
;
Subsystem
:
Word
;
DllCharacteristics
:
Word
;
SizeOfStackReserve
:
DWORD
;
SizeOfStackCommit
:
DWORD
;
SizeOfHeapReserve
:
DWORD
;
SizeOfHeapCommit
:
DWORD
;
LoaderFlags
:
DWORD
;
NumberOfRvaAndSizes
:
DWORD
;
DataDirectory
:
array
[
0
..
IMAGE_NUMBEROF_DIRECTORY_ENTRIES
-
1
]
of
IMAGE_DATA_DIRECTORY
;
end
;
IMAGE_OPTIONAL_HEADER32
=
_IMAGE_OPTIONAL_HEADER
;
«
Last Edit: October 03, 2021, 05:43:48 pm by xjw1162
»
Logged
Thaddy
Hero Member
Posts: 14393
Sensorship about opinions does not belong here.
Re: PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
«
Reply #1 on:
October 03, 2021, 06:05:39 pm »
The 64 bit version of _image_optional_header has no member BaseOfData
. See MSDN:
https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-image_optional_header64
So this is correct, it is not a bug
.
You can not add it like the 32 bit version. It is an OS provided structure and your application will probably crash! if you add it to 64 since the field order and size become invalid/
«
Last Edit: October 03, 2021, 08:10:04 pm by Thaddy
»
Logged
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.
xjw1162
Newbie
Posts: 4
Re: PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
«
Reply #2 on:
October 04, 2021, 12:34:03 pm »
thanks .
Logged
marcov
Administrator
Hero Member
Posts: 11459
FPC developer.
Re: PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
«
Reply #3 on:
October 04, 2021, 01:48:57 pm »
Data probably has no base in 64-bit since it is position independent, and thus linked to baseofcode.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
PIMAGE_OPTIONAL_HEADER64 , no member "BaseOfData"
TinyPortal
© 2005-2018