[ctypes-users] How to write to memory returned from dll
Brought to you by:
theller
|
From: Tvrtko S. <tvr...@al...> - 2003-05-30 12:12:33
|
I want to write some data (strings or ins) to memory location returned from dll function. Consider the following example: ---------- from ctypes import * GMEM_FIXED = 0x0000 p = windll.kernel32.GlobalAlloc(GMEM_FIXED, 100) # how write "Hello World" to memory pointed by p? # ... windll.kernel32.GlobalFree(p) |