| |
|
|
Alloziert a Speicherblock from the Heap, d.h. points one block virtuellem Prozessspeicher real existierenden Memory.
Deklaration:
Def GlobalAlloc(2) !"kernel32", "GlobalAlloc"
Parameter:
P:L1 an combination following Konstanten: ~GMEM_FIXED = $0 The address the zugewisenen Speicherbereichs in the virtual Prozessspeicher can not change and the lever enspricht the address the allocated Speichers. can't with ~GMEM_MOVEABLE or ~GMEM_DISCARDABLE combined go
~GMEM_MOVEABLE = $2, can't with ~GMEM_FIXED combined go. The address the virtual Prozessspeichers can itself change and the lever verweist on The actually Afresse.
~GPTR = $40 ~GHND = $42 ~GMEM_DDESHARE = $2000 ~GMEM_DISCARDABLE = $100, can't with ~GMEM_FIXED combined go
~GMEM_NOCOMPACT = $10 ~GMEM_NODISCARD = $20 ~GMEM_SHARE = $2000 ~GMEM_ZEROINIT = $40, Initialisiert whom Speicherinhalt with zero
P:L2 Size& (Size the Speichers in byte) from Sicherheitsgründen is virtueller Prozessspeicher in 32-bit windows always lokaler memory and not global zugänglich. it exists therefore no Difference between memory, the with LocalAlloc and memory the with GlobalAlloc allocated watts!
|
|
|
| |
|
|