this doesn't work (LoadLib return 0):
but this work:
thats strange.. since i normaly put read-only text on ".data?" or ".data" without problems, anyway this should be diffrent :)
btw, i only test this on Win2000.
byez
.data[b]?[/b]
(...)
szPsApi db "PSAPI.DLL",0
(...)
.code
(...)
invoke LoadLibrary,addr szPsApi
but this work:
.data
(...)
szPsApi db "PSAPI.DLL",0
(...)
.code
(...)
invoke LoadLibrary,addr szPsApi
thats strange.. since i normaly put read-only text on ".data?" or ".data" without problems, anyway this should be diffrent :)
btw, i only test this on Win2000.
byez
I guese anything in the .data? section is initialized to zero since the .data? section isn't intended for ininialised data.
anything in .data? is taken from the stack in the runtime.
so cann't be initialize
anything in data is written in the exe file.
so can be initialized.
so cann't be initialize
anything in data is written in the exe file.
so can be initialized.
Sa6ry, I don't think data?'s content is allocated on the stack. It's probably allocated through VirtualAlloc by the EXE file loader.
thanks bomb01 for correction ,
you are right, it is not stack.
you are right, it is not stack.
i'm assuming that this would only appen on winNT. (right?)
tnkx for the explanation.
tnkx for the explanation.
coder7345,
No, on all versions.
No, on all versions.