| |
|
|
| The following Einsteigerproblem:
an API expects (for Return one Strings) a Speicherbereich, the with Nullbytes filled is. How very and where deklariere I this Speicherbereich (.data)?
Greeting
Andreas |
|
|
| |
|
|
|
| Yes, z.B. in the Datasection.
And then Gibts there yet The Dim-Api - hieß The AllocMem |
|
|
| |
|
|
|
Frank Abbing | with smaller Save bid the data-Section on:
.data?
memory db 4096 dup(?) ;Reserviert 4096 Bytes memory memory2 dd 1024 dup(?) ;Reserviert too 4096 Bytes memory
with more Save recommend it itself, memory of system reservieren To let. Z.B. GlobalAlloc() or HeapAlloc():
invoke GlobalAlloc,GMEM_FIXED+GMEM_ZEROINIT, anzahlbytes mov memory,eax ... invoke GlobalFree,memory |
|
|
| |
|
|
|
| [quote:4a1916bf22=Frank Abbing]with smaller Save bid the data-Section on:
.data?
memory db 4096 dup(?) ;Reserviert 4096 Bytes memory memory2 dd 1024 dup(?) ;Reserviert too 4096 Bytes memory
[/quote:4a1916bf22] Vielen Thanks, very the wished I know.
[quote:4a1916bf22=Frank Abbing] with more Save recommend it itself, memory of system reservieren To let. Z.B. GlobalAlloc() or HeapAlloc():
invoke GlobalAlloc,GMEM_FIXED+GMEM_ZEROINIT, anzahlbytes mov memory,eax ... invoke GlobalFree,memory[/quote:4a1916bf22] the can I in a driver not use, there these functions from the KERNEL32 come. I faith there but already what entsprechendes in the NTDLL seen to have. |
|
|
| |
|
|