002
03.12.2002, 13:36 Uhr
void*
Generic Pointer (Operator)
|
Bisserl code:
C++: |
#include <windows.h> #include <stdio.h>
int main(void) { WIN32_FIND_DATA findData; HANDLE h=FindFirstFile("c:/autoexec.bat", &findData);
if(INVALID_HANDLE_VALUE==h) return(1);
FILETIME local; if(FALSE==FileTimeToLocalFileTime(&findData.ftCreationTime, &local)) return(2); SYSTEMTIME system; if(FALSE==FileTimeToSystemTime(&local, &system)) return(3);
printf("Erstellt am %d.%d.%d, dem %d. Tag der Woche, um %d:%d:%d:%d\n", (int)system.wDay, (int)system.wMonth, (int)system.wYear, (int)system.wDayOfWeek, (int)system.wHour, (int)system.wMinute, (int)system.wSecond, (int)system.wMilliseconds);
return(0); }
|
-- Gruß void* |