DLL structure creation in ruby

B

Basu Ks

Hi,

I have a dll structure with params show in the code below ,

$typUUID = DllStructCreate("int;short;short;byte[8]")

DllStructSetData($typUUID, 1, 0x626FC520) # Sets data to the
first member (i.e int)
DllStructSetData($typUUID, 2, 0xA41E) # Sets data to the
second member (i.e short)
DllStructSetData($typUUID, 3, 0x11CF) # Sets data to the
third
member (i.e short)
DllStructSetData($typUUID, 4, 0xA7, 1)
DllStructSetData($typUUID, 4, 0x31, 2)
DllStructSetData($typUUID, 4, 0x0, 3)
DllStructSetData($typUUID, 4, 0xA0, 4)
DllStructSetData($typUUID, 4, 0xC9, 5)
DllStructSetData($typUUID, 4, 0x8, 6)
DllStructSetData($typUUID, 4, 0x26, 7)
DllStructSetData($typUUID, 4, 0x37, 8)

pointer = DllStructGetPtr($typUUID)

i need to use the pointer (pointer to structure ), in a dll
call.Could some one help me to create the pointer to the structure
with all the specified fields set ?

Thanks In advance !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,149
Messages
2,570,842
Members
47,388
Latest member
EarthaGilm

Latest Threads

Top