Look at GetFileInformationByHandle. This makes it easy to get the created and last modified times. Writing them is going to be a lot more complicated...