/* function: filetime_to_nstime converts a Windows FILETIME value to an nstime_t returns TRUE if the conversion succeeds, FALSE if it doesn't (for example, with a 32-bit time_t, the time overflows or underflows time_t)  */
gboolean filetime_to_nstime(nstime_t *nstime, guint64 filetime)
/* function: filetime_to_nstime converts a Windows FILETIME value to an nstime_t returns TRUE if the conversion succeeds, FALSE if it doesn't (for example, with a 32-bit time_t, the time overflows or underflows time_t)  */
gboolean filetime_to_nstime(nstime_t *nstime, guint64 filetime)
{
    guint64 ftsecs;
    int nsecs;
    ftsecs = filetime / 10000000;
    nsecs = (int)((filetime % 10000000)*100);
    return common_filetime_to_nstime(nstime, ftsecs, nsecs);
}