-#if defined(__WXPALMOS__)
- return 0;
-#elif defined(__WXWINCE__)
- FILETIME ftLastWrite;
- AutoHANDLE hFile(::CreateFile(filename, GENERIC_READ, FILE_SHARE_READ,
- NULL, 0, FILE_ATTRIBUTE_NORMAL, 0));
-
- if ( !hFile.IsOk() )
- return 0;
-
- if ( !::GetFileTime(hFile, NULL, NULL, &ftLastWrite) )
- return 0;
-
- // sure we want to translate to local time here?
- FILETIME ftLocal;
- if ( !::FileTimeToLocalFileTime(&ftLastWrite, &ftLocal) )
- {
- wxLogLastError(_T("FileTimeToLocalFileTime"));
- }
-
- // FILETIME is a counted in 100-ns since 1601-01-01, convert it to
- // number of seconds since 1970-01-01
- ULARGE_INTEGER uli;
- uli.LowPart = ftLocal.dwLowDateTime;
- uli.HighPart = ftLocal.dwHighDateTime;