acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
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
13
using
WORD = ::u16;
14
using
LONG = ::i32;
15
using
WINULONG = ::u32;
16
using
LONGLONG = ::i64;
17
using
ULONGLONG = ::u64;
18
using
NTSTATUS = ::i32;
19
using
DWORD = ::u32;
20
using
LPDWORD = ::DWORD *;
21
22
23
#ifndef _FILETIME_
24
#define _FILETIME_
25
typedef
struct
_FILETIME
{
26
DWORD dwLowDateTime;
27
DWORD dwHighDateTime;
28
} FILETIME, *PFILETIME, *LPFILETIME;
29
#endif
30
31
typedef
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
43
CLASS_DECL_ACME ::i32_bool FileTimeToSystemTime(
const
FILETIME * pfiletime, SYSTEMTIME * psystemtime);
44
45
46
CLASS_DECL_ACME ::i32_bool SystemTimeToFileTime(
const
SYSTEMTIME * psystemtime, FILETIME * pfiletime);
47
48
49
CLASS_DECL_ACME
void
GetSystemTime(SYSTEMTIME * psystemtime);
50
51
52
CLASS_DECL_ACME ::i32_bool FileTimeToLocalFileTime(
const
FILETIME *utcft, LPFILETIME localft );
53
54
55
_FILETIME
Definition
windows_time.h:25
_SYSTEMTIME
Definition
windows_time.h:31
operating_system
ansi
windows_time.h
Generated by
1.17.0