Estimado José,
Aquí lo tienes. Lo incluimos para el próximo build de FWH:
function FW_FolderChanged( cFolderPath ) --> { nDay, nMonth, nYear, nHours, nMinutes, nSeconds }
#include "FiveWin.ch"
function Main()
XBrowse( FW_FolderChanged( "c:\fwh" ) )
return nil
#pragma BEGINDUMP
#include <Windows.h>
#include <hbapi.h>
HB_FUNC( FW_FOLDERCHANGED )
{
const char * folderPath = hb_parc( 1 );
FILETIME lastWriteTime;
WIN32_FILE_ATTRIBUTE_DATA fileAttributes;
SYSTEMTIME systemTime;
GetFileAttributesEx( folderPath, GetFileExInfoStandard, &fileAttributes );
lastWriteTime = fileAttributes.ftLastWriteTime;
FileTimeToSystemTime(&lastWriteTime, &systemTime);
hb_reta( 6 );
hb_storvnl( systemTime.wDay, -1, 1 );
hb_storvnl( systemTime.wMonth, -1, 2 );
hb_storvnl( systemTime.wYear, -1, 3 );
hb_storvnl( systemTime.wHour, -1, 4 );
hb_storvnl( systemTime.wMinute, -1, 5 );
hb_storvnl( systemTime.wSecond, -1, 6 );
}
#pragma ENDDUMP