I use the API CreateFile function to get a handle to a file, but it doesn't work if the file is a directory, the function returns -1 = "invalid handle value". Is there some work around? I need the handle in order to call SetFileTime and thus modify the file or directory time stamp.