Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

Time API Missing???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Time API Missing???

    Just wondering if there was a reason for some of the file time APIs to have been left out of the win32api.inc? I reaslise that sometimes these go out of date etc but I thought I'd ask

    Code:
    BOOL GetFileTime(
    
        HANDLE hFile,	// identifies the file 
        LPFILETIME lpCreationTime,	// address of creation time 
        LPFILETIME lpLastAccessTime,	// address of last access time  
        LPFILETIME lpLastWriteTime 	// address of last write time 
       );
    
    
    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 
       );
    And the struct (Type)

    Code:
    typedef struct _FILETIME { // ft  
        DWORD dwLowDateTime; 
        DWORD dwHighDateTime; 
    } FILETIME;

    Thanks

    ------------------

    Paul Dwyer
    Network Engineer
    Aussie in Tokyo
    (Paul282 at VB-World)

    [This message has been edited by Paul Dwyer (edited March 05, 2001).]

  • #2
    Forget it!!!!

    I'm a moron, they're there, it's me that's not all there!


    ------------------

    Paul Dwyer
    Network Engineer
    Aussie in Tokyo
    (Paul282 at VB-World)

    Comment


    • #3
      I use those quite frequently to hide my program's file date/time stamp


      Code:
      local ft as SYSTEMTIME
      Himem = Environ$("windir") & "\himem.sys"
      FileSpec = "Whatever file"
      Result = GetFileDateandTime(Himem,ft)
      Result = SetFileDateandTime(FileSpec,ft)

      ------------------
      Scott
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment

      Working...
      X