I’ve not done a ton of declares into external libraries, and am unsure how to go about it with a specific function in the iphlpapi.dll windows library. Here is the function definition from the MSDN documentation:
So, to soft declare this thing, I’ll want to do something like this:
soft declare Function GetIpNetTable Lib "Iphlpapi.dll" (something, somethingelse, anotherthing) as SomeDataType
As you may have noticed, the bit I’m struggling with is trying to figure out how to determine what to pass for the parameters and what sort of datatype to use for the return value. I suspect that a windows DWORD can just be thrown into a Xojo Integer, but I’m really pretty unsure.
In the Soft Declare documentation in the user guide, there is a somewhat helpful table that lists all the valid data types I can pass as parameters to a soft declare, but none seem to match up with what I want to do… i.e., what should I pass for a windows BOOL? UShort?
Can someone point me to how I decipher what types to use in my declares?