|
-
Jun 8th, 2001, 03:58 PM
#1
Thread Starter
Addicted Member
System Time to File Time
I am trying to reset a file's times to some date during the year 1980, converting system time to file time. The only problem is that I have problems setting up correct values in the variable so the API works. Someone help me please.
'The API:
Declare Function SystemTimeToFileTime Lib "kernel32"_
Alias "SystemTimeToFileTime" (lpSystemTime As SYSTEMTIME, _
lpFileTime As FILETIME) As Long
'The datatypes:
Public Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Public Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
'For more information go to
'http://www.allapi.net/api/SystemTimeToFileTime.php
Why does everyone think I may be dangerous?  I'm just good at computers. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|