Fernando and Mario,
As another alternative, if you have the whole VisualStudio and you know a little C/C++ it's very easy to wrap these kinds of calls with a C++ wrapper and just use it like a function call passing parameters from VFP. There's a couple of examples of creating C++ DLLs over on my website.
>Excuse me for jumping in, but this week you saved my day too, when you helped teaching me how to use structures as parameters in some win2K API calls. Do you know if there is some reason why Microsoft VFP team doesn't implement structures like VB has, and put an end at this misery of VFP programmers having to use all kind of detours to acomplish these tasks?