Alistair Leslie-Hughes leslie_alistair@hotmail.com wrote:
+MFTIME WINAPI MFGetSystemTime() +{
- SYSTEMTIME st;
- FILETIME ft;
- MFTIME mf;
- TRACE("()\n");
- GetSystemTime(&st);
- SystemTimeToFileTime(&st, &ft);
- memcpy(&mf, &ft, sizeof(FILETIME));
- return mf;
+}
There's no need for any intermediate conversions or copies, there's GetSystemTimeAsFileTime.