Modify file create time in windows using only C

  c++, file, windows

I moving files from one folder to another in windows and want to save the original file date stamps to the new file. I can successfully copy access date and modification date using <utime.h> and <sys/stat.h>
I want to also copy the create date where applicable. I see that C++ has the GetFileTime function (fileapi.h) to do this and other languages can do this. Can it be done purely in C and if so how?

Source: Windows Questions

LEAVE A COMMENT