The problem (I think) is that while you include the header mmsystem.h to use the function, its body is actually located in winmm.dll, not mmsystem.dll. I believe mmsystem.dll was the 16bit version and winmm.dll is the 32bit version (which may be the cause of the "corrupt" message).
See if that helps...I had the opportunity to play with Delphi for a bit back with version 2.0? Anyway, you should be able to call any WIN32 function you want...you just need to know which .dll it resides in.
HTH,
-mordell
ps..
ok, so timegettime is also in mmsystem.dll, but I still think that is the 16bit version.
[This message has been edited by mordell (edited December 29, 1999).]