>Anyway, concerning the VFP winhome() function, type the following:
>SET LIBRARY TO FOXTOOLS
>? WINHOME()
NEVER MIND!
I just recalled that I had a winhome.fxp function lingering around
that included the following code:
PRIVATE cTempstr,nDirectlen,cWindirect
getwdir = RegFn32("GetWindowsDirectory","@CI","I")
cTempstr = REPLICATE(CHR(0),144)
nDirectlen = CallFn(getwdir,@cTempstr,144)
cWindirect = LEFT(cTempstr,nDirectlen)
RETURN cWindirect