Skip to content
Home > Programming > select nic in pal nic list > Re: Re: select nic in pal nic list

Re: Re: select nic in pal nic list

#187759
Chike
Member

First of all I think you must use Long instead of integer. SendMessage integers’ are 32 bit and basic integer is 16 bit (not completely sure, but be safer to use Long.)
Second, you have the code you need just few posts before yours, look at MessageCrossProcess.
For your own process you can use VarPtr that to get the structure address, or declare another variant of send message to take lParam as Ref. However sending those messages to paltalk involves more than that. You need to allocate the structure in paltalk address space, and this code does it.
As for how to declare the LVITEM structure try to look at the attachment in this post.