Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
sysutils.h
Go to the documentation of this file.
1/*
2 * This file is part of the Ultibo project, https://ultibo.org/
3 *
4 * The MIT License (MIT)
5 *
6 * Copyright (c) 2026 Garry Wood <garry@softoz.com.au>
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to deal
10 * in the Software without restriction, including without limitation the rights
11 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 * copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 * THE SOFTWARE.
25 */
26#ifndef _ULTIBO_SYSUTILS_H
27#define _ULTIBO_SYSUTILS_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "ultibo/globaltypes.h"
34#include "ultibo/system.h"
35
37#define MAX_PATH 260
38
40
41typedef struct _SYSTEMTIME
42{
43 uint16_t wyear;
44 uint16_t wmonth;
45 uint16_t wdayofweek;
46 uint16_t wday;
47 uint16_t whour;
48 uint16_t wminute;
49 uint16_t wsecond;
50 uint16_t wmilliseconds;
52
58
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif // _ULTIBO_SYSUTILS_H
uint32_t DWORD
Definition globaltypes.h:53
Definition sysutils.h:54
DWORD dwHighDateTime
The high-order part of the file time.
Definition sysutils.h:56
DWORD dwLowDateTime
The low-order part of the file time.
Definition sysutils.h:55
Definition sysutils.h:42
uint16_t whour
The hour.
Definition sysutils.h:47
uint16_t wyear
The year.
Definition sysutils.h:43
uint16_t wsecond
The second.
Definition sysutils.h:49
uint16_t wmonth
The month.
Definition sysutils.h:44
uint16_t wminute
The minute.
Definition sysutils.h:48
uint16_t wdayofweek
The day of the week.
Definition sysutils.h:45
uint16_t wday
The day of the month.
Definition sysutils.h:46
uint16_t wmilliseconds
The millisecond.
Definition sysutils.h:50
Definition sysutils.h:60
FILETIME ftLastWriteTime
A FILETIME structure that specifies when the file was last written to, truncated, or overwritten.
Definition sysutils.h:64
DWORD nFileSizeHigh
The high-order DWORD value of the file size, in bytes.
Definition sysutils.h:65
FILETIME ftLastAccessTime
A FILETIME structure that specifies when a file was last read from or written to.
Definition sysutils.h:63
DWORD dwReserved0
If the dwFileAttributes member includes the faReparse attribute, this member specifies the reparse po...
Definition sysutils.h:67
DWORD nFileSizeLow
The low-order DWORD value of the file size, in bytes.
Definition sysutils.h:66
FILETIME ftCreationTime
A FILETIME structure that specifies when a file or directory was created.
Definition sysutils.h:62
DWORD dwReserved1
Reserved for future use.
Definition sysutils.h:68
DWORD dwFileAttributes
The file attributes of a file.
Definition sysutils.h:61
char cAlternateFileName[14]
An alternative name for the file (This name is in the 8.3 file name format).
Definition sysutils.h:70
char cFileName[MAX_PATH]
The name of the file.
Definition sysutils.h:69
struct _WIN32_FIND_DATAA WIN32_FIND_DATAA
struct _SYSTEMTIME SYSTEMTIME
struct _FILETIME FILETIME
#define MAX_PATH
Maximum length for a file path.
Definition sysutils.h:37