From: Heesob Park Date: 2010-07-27T17:40:08+09:00 Subject: Re: Help: How to pass a struct as a pointer to Win32API? Hi, 2010/7/27 李晶 : > Hi Park, > > Thanks for your answer, and I've tried your code, everything is fine but > nothing is retrieved for item or subitem. > > So the result will be like this: >  - >  - >  - > which should be "#{item} - #{subitem}" > > Could you plz tell me what's wrong?  Meanwhile I will investigate on this. > > BTW, does it matter if I remove VirtualAllocEx and WriteProcessMemory part? > Since I mentioned it's not a pop-up. > > Thanks a lot. > Did you tried the whole code with VirtualAllocEx and WriteProcessMemory? What's your code? If you want to remove VirtualAllocEx and WriteProcessMemory part, lv_item[20,4] = [_item].pack('L') should be lv_item[20,4] = [item].pack('p') lv_item[20,4] = [_subitem].pack('L') should be lv_item[20,4] = [subitem].pack('p') Regards, Park Heesob