C:\Documents and Settings\<profilename>\Application Data\Microsoft\Stationery
What is the function to retrieve the <profilename> as in the path above?
#include "FiveWin.ch"
function Main()
local cValue := Space( 256 )
// MsgInfo( GetEnv( "USERPROFILE" ) )
GetEnvironmentVariable( "USERPROFILE", cValue, Len( cValue ) )
MsgInfo( cValue )
return nil
DLL32 FUNCTION GetEnvironmentVariable( cName AS LPSTR, ;
cValue AS LPSTR, nLen AS LONG ) ;
AS LONG PASCAL FROM "GetEnvironmentVariableA" LIB "kernel32.dll"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 41 guests