请问得到文件的建立时间用的是哪一个API?

解决方案 »

  1.   

    BOOL GetFileTime(
      HANDLE hFile,                 // handle to file
      LPFILETIME lpCreationTime,    // creation time
      LPFILETIME lpLastAccessTime,  // last access time
      LPFILETIME lpLastWriteTime    // last write time
    );
      

  2.   

    同意楼上的,再来一点:
    你还可以设置文件的一些时间属性:
    he SetFileTime function sets the date and time that a file was created, last accessed, or last modified. BOOL SetFileTime(    HANDLE hFile, // identifies the file 
        CONST FILETIME *lpCreationTime, // time the file was created 
        CONST FILETIME *lpLastAccessTime, // time the file was last accessed 
        CONST FILETIME *lpLastWriteTime  // time the file was last written 
       );
      

  3.   

    function FindNext(var F: TSearchRec): Integer;
    TSearchRec = record
    Time: Integer;
    Size: Integer;
    Attr: Integer;
    Name: TFileName;
    ExcludeAttr: Integer;
    FindHandle: THandle;
    FindData: TWin32FindData;
    end;