Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / kernel32 SetFileTime

Author
Message
patai
16
Years of Service
User Offline
Joined: 28th Dec 2007
Location:
Posted: 3rd Mar 2008 19:34
Do anybody know how can I use The 'SetFileTime' function (kernel32.dll) with DBPro??? Please somebody send me a source code!
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 3rd Mar 2008 19:59 Edited at: 3rd Mar 2008 19:59
1. Use Google to find the MSDN page that explains the function. Try something like "msdn setfiletime function".

2. Load the DLL with load dll.

3. Call the DLL function with call dll.

It's that simple.

patai
16
Years of Service
User Offline
Joined: 28th Dec 2007
Location:
Posted: 3rd Mar 2008 20:48
I loaded the dll with load dll
I called the dll function with call dll
I used the google, and I found the MSDN page.

SetFileTime(ByVal hFile As Long, _lpCreationTime As FILETIME,_lpLastAccessTime As Any, _lpLastWriteTime As Any)

But what's this: hFile
and what is the form of the date and time??

That's not simple.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 3rd Mar 2008 22:33
side note: dont forget delete dll when youre done with it

[href]mod2software[/href]
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 4th Mar 2008 00:30 Edited at: 4th Mar 2008 00:31
http://forum.thegamecreators.com/?m=forum_view&t=124290&b=1

Your question has already been answered in the other two threads you have made about this subject.

That function prototype is VisualBASIC, not the one you want. The one you want is in the Platform SDK, like I already said. It looks like this:
BOOL SetFileTime(HANDLE hFile, const FILETIME* lpCreationTime, const FILETIME* lpLastAccessTime, const FILETIME* lpLastWriteTime)

hFile is a handle to an open file. Format of FILETIME structure is two DWORDs.

Login to post a reply

Server time is: 2024-09-08 03:37:40
Your offset time is: 2024-09-08 03:37:40