//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // 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: // PathIsDirectory.Pkg // // Purpose: // Defines interface to WinAPI function PathIsDirectory. // // Author: // Vincent Oorsprong // // Date: // 2001, May, 29th // //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #IFNDEF GET_PathIsDirectory External_Function WinAPI_PathIsDirectory "PathIsDirectoryA" SHLWAPI.DLL Pointer lpszPath Returns Integer //============================================================================= // Verifies that a path is a valid directory. // // Returns TRUE if the path is a valid directory, or FALSE otherwise. // // Parameters: // sPath - Address of the path to verify. //============================================================================= Function PathIsDirectory Desktop String sPath Returns Integer Boolean bRetVal Move (sPath - Character (0)) To sPath Move (WinAPI_PathIsDirectory (AddressOf (sPath))) To bRetVal Function_Return bRetVal End_Function // PathIsDirectory #ENDIF