You can not use DIMENSION, because FoxPro arrays are different from that kind of array the WinAPI functions usually expect as a parameter.
First allocate a memory block. It can be either a regular FoxPro string, or a handle to memory block created by GlobalAlloc, LocalAlloc, HeapAlloc -- API functions allocating memory.
Fill this block with some data -- BYTE, DWORD, UINT whatever is expected -- and pass it to your API function.
FoxPro string is passed by a reference -- like APIFunction(@cBuffer). A handle to memory block is passed as absolute value -- APIFunction(nHandle).
Be specific with your function, and may be I can provide more details on your API call. Check API declarations and code samples on
http://www.news2news.com/vfp