+#ifdef __WXWINCE__
+
+ // WinCE
+
+ DWORD fileAttribs = GetFileAttributes(m_filePath.fn_str());
+ m_type |= (fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0 ? is_dir : 0;
+
+ wxString p, f, ext;
+ wxSplitPath(m_filePath, & p, & f, & ext);
+ if (wxStricmp(ext, wxT("exe")) == 0)
+ m_type |= is_exe;
+
+ // Find out size
+ m_size = 0;
+ HANDLE fileHandle = CreateFile(m_filePath.fn_str(),
+ GENERIC_READ,
+ FILE_SHARE_READ,
+ NULL,
+ OPEN_EXISTING,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL);
+
+ if (fileHandle != INVALID_HANDLE_VALUE)
+ {
+ m_size = GetFileSize(fileHandle, 0);
+ CloseHandle(fileHandle);
+ }
+
+ m_dateTime = wxFileModificationTime(m_filePath);
+
+#else
+
+ // OTHER PLATFORMS
+