Windows has GetFileTime API which allows getting file time information by open file handle. What I wanted to know is, if it is possible to get this information by file name without opening the file explicitly. And if possible is it also applicable to Windows Mobile platform?
GetFileTime is available on all versions of Windows CE. You're unlikely to find a way to accomplish this without a valid file handle in Win32.
If you call CreateFile with a dwFileAccess value of zero, it "specifies device query access to the object. An application can query device attributes without accessing the device." No clue why they removed that really informative bit of text from newer versions of the documentation, as the implementation in the FSD is still the same.
Just a note on using the file times on a WinCE file:
Quote from the MSDN docs on WinCE GetFileTime
The Windows CE object store returns the same time for all three parameters. In general, file system drivers will vary how they support this function.
I found this to be true on all devices I have tried.