acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
windows_time.h
1//
2// windows_time.hpp
3// acme
4//
5// Created by Camilo Sasuke <3 Thomas Borregaard Soerensen on 14/02/22.
6// 14:35
7// Copyright (c) 2022 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
8//
9#pragma once
10
11
12
13using WORD = ::u16;
14using LONG = ::i32;
15using WINULONG = ::u32;
16using LONGLONG = ::i64;
17using ULONGLONG = ::u64;
18using NTSTATUS = ::i32;
19using DWORD = ::u32;
20using LPDWORD = ::DWORD *;
21
22
23#ifndef _FILETIME_
24#define _FILETIME_
25typedef struct _FILETIME {
26 DWORD dwLowDateTime;
27 DWORD dwHighDateTime;
28} FILETIME, *PFILETIME, *LPFILETIME;
29#endif
30
31typedef struct _SYSTEMTIME {
32 WORD wYear;
33 WORD wMonth;
34 WORD wDayOfWeek;
35 WORD wDay;
36 WORD wHour;
37 WORD wMinute;
38 WORD wSecond;
39 WORD wMilliseconds;
40} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
41
42
43CLASS_DECL_ACME ::i32_bool FileTimeToSystemTime(const FILETIME * pfiletime, SYSTEMTIME * psystemtime);
44
45
46CLASS_DECL_ACME ::i32_bool SystemTimeToFileTime(const SYSTEMTIME * psystemtime, FILETIME * pfiletime);
47
48
49CLASS_DECL_ACME void GetSystemTime(SYSTEMTIME * psystemtime);
50
51
52CLASS_DECL_ACME ::i32_bool FileTimeToLocalFileTime( const FILETIME *utcft, LPFILETIME localft );
53
54
55
Definition windows_time.h:25
Definition windows_time.h:31