//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // Confidential Trade Secret. // Copyright 1987-2001 Data Access Corporation, Miami FL, USA // All Rights reserved // DataFlex is a registered trademark of Data Access Corporation. // // Module: // GetSystemDirectory.Pkg // // Purpose: // Defines interface to WinAPI function GetSystemDirectory // // Author: // Vincent Oorsprong // // Date: // 2001, June, 4th // //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #IFNDEF GET_GetSystemDirectory External_Function WinAPI_GetSystemDirectory "GetSystemDirectoryA" Kernel32.Dll Pointer lpBuffer UInteger uSize Returns Integer Define MAX_PATH For 260 // 2003-07-29 ------------------------------------ Start Nils G. Svedmyr #IF PKG_Version<|CI9 Function GetSystemDirectory For Desktop Returns String #ELSE Function GetSystemDirectory Desktop Returns String #ENDIF // 2003-07-29 ------------------------------------ Stop Nils G. Svedmyr String sSystemDirectory UInteger uiResult ZeroString MAX_PATH To sSystemDirectory Move (WinAPI_GetSystemDirectory (AddressOf (sSystemDirectory), MAX_PATH)) To uiResult Function_Return (Cstring (sSystemDirectory)) End_Function // GetSystemDirectory #ENDIF