mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2026-08-06 18:04:46 -04:00
19 lines
295 B
C
19 lines
295 B
C
#include <windows.h>
|
|
#include <wchar.h>
|
|
|
|
#pragma comment(lib, "User32.lib")
|
|
|
|
int wmain(void) {
|
|
|
|
SYSTEMTIME st = {0};
|
|
wchar_t buf[128] = {0};
|
|
|
|
GetLocalTime(&st);
|
|
wsprintfW(buf, L"Today is %lu.%lu.%lu\n", st.wDay,
|
|
st.wMonth, st.wYear);
|
|
|
|
wprintf(buf);
|
|
|
|
return 0;
|
|
}
|