Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Win32::API - How to call an Imported function with Win32::API::Types ?by fx (Pilgrim) |
on Jul 01, 2004 at 15:04 UTC ( [id://371110]=perlquestion: print w/replies, xml ) | Need Help?? |
fx has asked for the wisdom of the Perl Monks concerning the following question: I am trying to call a function within a DLL using Win32::API and am trying to do using Import and prototypes. The parameters required by the function are all custom types, and so after reading the C header files and Win32::API::Type I have defined these types and Imported the function:
My question is: how am I supposed to call OMDClientCreate? When the C function wants a OMDTEXTZ* do I simply give it a Perl string? What about when it wants a OMDCLIENT* to return me the client handle? I have found little to no documention in either Win32::API or Win32::API::Type to explain how this is done. Thanks, fx, Infinity is Colourless
Back to
Seekers of Perl Wisdom
|
|