English
Assembler Forum

Speicherbereich for String reservieren

 
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
 
11/04/06  
 



Yes, z.B. in the Datasection.

And then Gibts there yet The Dim-Api - hieß The AllocMem
 
11/04/06  
 




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
 
11/04/06  
 



[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.
 
11/05/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.569 Views

Untitledvor 0 min.
H.Brill10/17/22
Georg Teles07/07/21
funkheld12/08/14
Michael Borowiak12/22/12
More...

Themeninformationen

this Topic has 3 subscriber:

unbekannt (2x)
Frank Abbing (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie