Ran it on Win7 Home Premium - got 'C:\ProgramData' - which VFP can write
to OK.
On 04/03/2014 01:51, Richard Kaye wrote:
This function is also available from the VFP2C32.fll VFPx project if you've
been using that.
--
rk
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Tracy
Pearson
Sent: Monday, March 03, 2014 2:12 PM
To: [email protected]
Subject: RE: manage environments
Ted is right:
DECLARE integer SHGetFolderPath IN SHFolder.dll integer, integer,
integer, integer, string@
#DEFINE CSIDL_APPDATA 0x001a
#DEFINE CSIDL_COMMON_APPDATA 0x0023
#DEFINE CSIDL_LOCAL_APPDATA 0x001c
STORE 0 TO nreturn, nhwnd, ntoken, nflags
cPath = REPLICATE(CHR(0),254)
nreturn = SHGetFolderPath(nhwnd, CSIDL_COMMON_APPDATA, ntoken, nflags,
@cPath)
cPath = ALLTRIM(cPath, CHR(0))
Tracy Pearson
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.