* used to determine where to copy DLL's, location of the win.ini file, or other system resources.
? GetSystemDir()
************************************************************
* Windows API Call to determine the users system directroy
Function GetSystemDir
Local lcWinSysDir, lcWinDir, lnRetLen
* following dll gets our windows directory.
* declare Window API function for window system dir.
DECLARE LONG GetSystemDirectory IN win32api STRING lpBuffer, LONG nSize
* declare Window API function for windows dir.
DECLARE LONG GetWindowsDirectory IN win32api STRING lpBuffer, LONG nSize
lcWinSysDir = space(255)
lcWinDir = space(255)
* get the windows system directory
lnRetLen = GetSystemDirectory(@lcWinSysDir,LEN(lcWinSysDir))
lcWinSysDir = LEFT(lcWinSysDir,m.lnRetLen)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.