Hi Spence,
I already added an example
Obtaining names of local and global groups for the current user (WinNT/XP/2K)at
http://www.news2news.com/vfp/?example=431take a look.
(1)
MAX_PREFERRED_LENGTH is defined as -1
This and other constants are available online at
http://www.news2news.com/vfp/w32constants.php(2)
In this particular example
LPBYTE* bufptr is declared as
INTEGER @.
Note that the buffer is allocated by the API function, and must be freed in the end -- NetApiBufferFree is used.
I hope that the code is self-explanatory enough. Otherwise ask questions :)