UnixTimeToFileTime Method
Converts the date/time in Unix format to Windows FileTime format.
Syntax
ANSI (Cross Platform) int64 UnixTimeToFileTime(int64 lUnixTime, int iNanoseconds); Unicode (Windows) LONG64 UnixTimeToFileTime(LONG64 lUnixTime, INT iNanoseconds);
#define MID_FUSE_UNIXTIMETOFILETIME 14 CBFSFUSE_EXTERNAL int CBFSFUSE_CALL CBFSFUSE_FUSE_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
Use this method to convert the date/time in Unix format to Windows FileTime format.
Pass the Unix time value to UnixTime and optionally pass the subsecond part of the time, expressed in nanoseconds, to the Nanoseconds parameter. If the subsecond part of the time is not available, set Nanoseconds to zero (0) value.
Error Handling (C++)
This method returns a Long64 value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.