Hello all,
I've been using Borlands Tasm32 v5 for a while now, but have a bit of a >problem with declaring strings and values inside a dll.
For instance, CRTDLL.DLL exposes "_iob", which is/should be (a pointer to) >an array of stdio control structures.
And I have no idea how to define it. :-|
Worse: when I checked _IOB points to a "JMP [...]" (indirect jump) byte >sequence (and not a pointer to the actual data).
The question is, does anyone (stil) know how to declare such an external >value / string ?
Regards,
Rudy Wieser
On Wed, 17 Apr 2024 17:40:12 +0200, "R.Wieser" wrote:
Hello all,
I've been using Borlands Tasm32 v5 for a while now, but have a bit of a >>problem with declaring strings and values inside a dll.
For instance, CRTDLL.DLL exposes "_iob", which is/should be (a pointer to) >>an array of stdio control structures.
And I have no idea how to define it. :-|
Worse: when I checked _IOB points to a "JMP [...]" (indirect jump) byte >>sequence (and not a pointer to the actual data).
The question is, does anyone (stil) know how to declare such an external >>value / string ?
Regards,
Rudy Wieser
this seems to speak of write one dll in tasm >https://tolik-punkoff.com/2022/05/09/writing-win32-programs-in-assembly-language-using-tasm/
On Wed, 24 Apr 2024 16:55:02 +0200, Rosario19 <Ros@invalid.invalid>
wrote:
On Wed, 17 Apr 2024 17:40:12 +0200, "R.Wieser" wrote:
Hello all,
I've been using Borlands Tasm32 v5 for a while now, but have a bit of a >>problem with declaring strings and values inside a dll.
For instance, CRTDLL.DLL exposes "_iob", which is/should be (a pointer to) >>an array of stdio control structures.
And I have no idea how to define it. :-|
Worse: when I checked _IOB points to a "JMP [...]" (indirect jump) byte >>sequence (and not a pointer to the actual data).
The question is, does anyone (stil) know how to declare such an external >>value / string ?
Regards,
Rudy Wieser
this seems to speak of write one dll in tasm >https://tolik-punkoff.com/2022/05/09/writing-win32-programs-in-assembly-language-using-tasm/
here one other link of someone wrote dll in tasm https://rootbiez.blogspot.com/2010/03/tasm-writing-dll-in-tasm32.html
that question it seems for 2011
this seems to speak of write one dll in tasm[snip]
here one other link of someone wrote dll in tasm[snip]
Rosario19,
this seems to speak of write one dll in tasm[snip]
here one other link of someone wrote dll in tasm[snip]
Thank you.
But the problem isn't writing them (I've been doing that for a while now), but accessing values and/or strings stored in other peoples DLLs. Like that "_iob" in CRTDLL.DLL .
Regards,
Rudy Wieser
Don't use JMP, because you're treating it as a function. Use the
OFFSET directive or LEA instruction instead.
Rosario19,
this seems to speak of write one dll in tasm[snip]
here one other link of someone wrote dll in tasm[snip]
Thank you.
But the problem isn't writing them (I've been doing that for a while now), >but accessing values and/or strings stored in other peoples DLLs. Like that >"_iob" in CRTDLL.DLL .
Regards,
Rudy Wieser
On Wed, 24 Apr 2024 17:10:31 +0200
Rosario19 <Ros@invalid.invalid> wrote:
On Wed, 24 Apr 2024 16:55:02 +0200, Rosario19 <Ros@invalid.invalid>
wrote:
On Wed, 17 Apr 2024 17:40:12 +0200, "R.Wieser" wrote:
Hello all,
I've been using Borlands Tasm32 v5 for a while now, but have a bit of a >> >>problem with declaring strings and values inside a dll.
For instance, CRTDLL.DLL exposes "_iob", which is/should be (a pointer to)
an array of stdio control structures.
And I have no idea how to define it. :-|
Worse: when I checked _IOB points to a "JMP [...]" (indirect jump) byte >> >>sequence (and not a pointer to the actual data).
The question is, does anyone (stil) know how to declare such an external >> >>value / string ?
Regards,
Rudy Wieser
this seems to speak of write one dll in tasm
https://tolik-punkoff.com/2022/05/09/writing-win32-programs-in-assembly-language-using-tasm/
here one other link of someone wrote dll in tasm
https://rootbiez.blogspot.com/2010/03/tasm-writing-dll-in-tasm32.html
that question it seems for 2011
Glad to see your still posting! I'm working on a simple 'frogger' game in ><256 bytes.
On Wed, 24 Apr 2024 20:01:10 +0200, "R.Wieser" wrote:
Rosario19,
this seems to speak of write one dll in tasm[snip]
here one other link of someone wrote dll in tasm[snip]
Thank you.
But the problem isn't writing them (I've been doing that for a while now), >>but accessing values and/or strings stored in other peoples DLLs. Like that >>"_iob" in CRTDLL.DLL .
Regards,
Rudy Wieser
i remember i used
loadlibrary and getprocaddress for >https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getprocaddress
"[in] lpProcName
The function or variable name, or the function's ordinal value. If
this parameter is an ordinal value, it must be in the low-order word;
the high-order word must be zero."
i not remember how...
The function or variable name, or the function's ordinal value.
If this parameter is an ordinal value, it must be in the low-order
word; the high-order word must be zero."
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 05:10:49 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
921 files (14,318M bytes) |
| Messages: | 264,602 |