forgery
New member
- Joined
- Jul 28, 2009
- Messages
- 1
- Programming Experience
- 1-3
Hi, I'm trying to use the SystemTimeToFileTime function but i'm not sure where what is missing.
My code generally looks like
Obviously this is not everything, just the relevant sections.
mySystemTime is correct and it is passed through the fuction. fileTime however is just '0' HighDateTime and LowDateTime which obviously makes lgDate = 0.
I'm not sure what I need to do to actually to get the function to fill fileTime.
Any help would be greatly appreciated!! Many Thanks
Forg
My code generally looks like
VB.NET:
Private Declare Function SystemTimeToFileTime Lib "kernel32" (ByVal _ lpSystemTime As SYSTEMTIME, ByVal lpFileTime As FILETIME) As Long
Sub Main
Dim lgDate as Long
mySystemTime as New SYSTEMTIME
fileTIME as New FILETIME
lgDate = SystemTimeToFileTime(mySystemTime, fileTime)
End Sub
Obviously this is not everything, just the relevant sections.
mySystemTime is correct and it is passed through the fuction. fileTime however is just '0' HighDateTime and LowDateTime which obviously makes lgDate = 0.
I'm not sure what I need to do to actually to get the function to fill fileTime.
Any help would be greatly appreciated!! Many Thanks
Forg