SetFileCreationTime Method

Sets the creation time of a vault item.

Syntax

ANSI (Cross Platform)
int SetFileCreationTime(const char* lpszFileName, int64 lCreationTime);

Unicode (Windows)
INT SetFileCreationTime(LPCWSTR lpszFileName, LONG64 lCreationTime);
- (void)setFileCreationTime:(NSString*)fileName :(NSDate*)creationTime;
#define MID_CBDRIVE_SETFILECREATIONTIME 78

CBFSSTORAGE_EXTERNAL int CBFSSTORAGE_CALL CBFSStorage_CBDrive_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method sets the creation time of the vault item (file, directory, symbolic link, or alternate stream) specified by FileName.

The value passed for FileName must be a vault-local absolute path.

The CreationTime parameter specifies the new creation time for the vault item, which must be specified as a number of 100-nanosecond intervals since Jan 1, 1601 00:00:00 UTC(on all supported platforms!), i.e., as FILETIME.

Note: This method can only be called when Active is true, and cannot be called within events.

Error Handling (C++)

This method returns a 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. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 C++ Edition - Version 20.0 [Build 8031]