>Sir, I'll put you on my Christmas card list for this year!
>
>The problem was (as you said) the declaration was incorrect. I've just bought the Dan Appleman book on API programming but as all the samples are in VB I'm still getting used to converting them to VFP.
>
Appleman's first API book for VB is probably the best non-C/C++ source on teh API available now; it's a very solid reference. Once you get the differences in the declaration syntax down, you'll probably want to download Christof Lange's STRUCT class, and possibly my CLSHEAP class, from here on UT to help with structure and memory handling issues.