Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
ultibo.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_ULTIBO_H
27#define _ULTIBO_ULTIBO_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "ultibo/globaltypes.h"
34#include "ultibo/globalconst.h"
35#include "ultibo/timezone.h"
36#include "ultibo/locale.h"
37#include "ultibo/sysutils.h"
38
41#define MAXLONGLONG 0x7fffffffffffffff
42
44#define CREATE_SUSPENDED 0x00000004
45
47#define PM_NOREMOVE 0x0000
48#define PM_REMOVE 0x0001
49#define PM_NOYIELD 0x0002
50
53
55#define EWX_LOGOFF 0x00000000
56#define EWX_SHUTDOWN 0x00000001
57#define EWX_REBOOT 0x00000002
58#define EWX_FORCE 0x00000004
59#define EWX_POWEROFF 0x00000008
60#define EWX_FORCEIFHUNG 0x00000010
61
63#define DRIVE_UNKNOWN 0
64#define DRIVE_NO_ROOT_DIR 1
65#define DRIVE_REMOVABLE 2
66#define DRIVE_FIXED 3
67#define DRIVE_REMOTE 4
68#define DRIVE_CDROM 5
69#define DRIVE_RAMDISK 6
70
72#define SYMBOLIC_LINK_FLAG_FILE 0x00000000
73#define SYMBOLIC_LINK_FLAG_DIRECTORY 0x00000001
74
76#define LMEM_FIXED 0x0000
77#define LMEM_MOVEABLE 0x0002
78#define LMEM_NOCOMPACT 0x0010
79#define LMEM_NODISCARD 0x0020
80#define LMEM_ZEROINIT 0x0040
81#define LMEM_MODIFY 0x0080
82#define LMEM_DISCARDABLE 0x0F00
83#define LMEM_VALID_FLAGS 0x0F72
84#define LMEM_INVALID_HANDLE 0x8000
85
86#define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
87#define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
88
89#define NONZEROLHND (LMEM_MOVEABLE)
90#define NONZEROLPTR (LMEM_FIXED)
91
93#define GMEM_FIXED 0x0000
94#define GMEM_MOVEABLE 0x0002
95#define GMEM_NOCOMPACT 0x0010
96#define GMEM_NODISCARD 0x0020
97#define GMEM_ZEROINIT 0x0040
98#define GMEM_MODIFY 0x0080
99#define GMEM_DISCARDABLE 0x0100
100#define GMEM_NOT_BANKED 0x1000
101#define GMEM_SHARE 0x2000
102#define GMEM_DDESHARE 0x2000
103#define GMEM_NOTIFY 0x4000
104#define GMEM_LOWER GMEM_NOT_BANKED
105#define GMEM_VALID_FLAGS 0x7F72
106#define GMEM_INVALID_HANDLE 0x8000
107
108#define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
109#define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
110
112#define PAGE_NOACCESS 0x01
113#define PAGE_READONLY 0x02
114#define PAGE_READWRITE 0x04
115#define PAGE_WRITECOPY 0x08
116#define PAGE_EXECUTE 0x10
117#define PAGE_EXECUTE_READ 0x20
118#define PAGE_EXECUTE_READWRITE 0x40
119#define PAGE_EXECUTE_WRITECOPY 0x80
120#define PAGE_GUARD 0x100
121#define PAGE_NOCACHE 0x200
122#define PAGE_WRITECOMBINE 0x400
123
125#define MEM_COMMIT 0x1000
126#define MEM_RESERVE 0x2000
127#define MEM_DECOMMIT 0x4000
128#define MEM_RELEASE 0x8000
129#define MEM_FREE 0x10000
130#define MEM_PRIVATE 0x20000
131#define MEM_MAPPED 0x40000
132#define MEM_RESET 0x80000
133#define MEM_TOP_DOWN 0x100000
134#define MEM_WRITE_WATCH 0x200000
135#define MEM_PHYSICAL 0x400000
136#define MEM_4MB_PAGES (DWORD)0x80000000
137#define SEC_FILE 0x800000
138#define SEC_IMAGE 0x1000000
139#define SEC_RESERVE 0x4000000
140#define SEC_COMMIT (DWORD)0x8000000
141#define SEC_NOCACHE 0x10000000
142#define MEM_IMAGE SEC_IMAGE
143#define WRITE_WATCH_FLAG_RESET 0x01
144#define MEM_LARGE_PAGES 0x20000000
145
147#define PROCESSOR_ARCHITECTURE_INTEL 0
148#define PROCESSOR_ARCHITECTURE_MIPS 1
149#define PROCESSOR_ARCHITECTURE_ALPHA 2
150#define PROCESSOR_ARCHITECTURE_PPC 3
151#define PROCESSOR_ARCHITECTURE_SHX 4
152#define PROCESSOR_ARCHITECTURE_ARM 5
153#define PROCESSOR_ARCHITECTURE_IA64 6
154#define PROCESSOR_ARCHITECTURE_ALPHA64 7
155#define PROCESSOR_ARCHITECTURE_MSIL 8
156#define PROCESSOR_ARCHITECTURE_AMD64 9
157
158#define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
159
161#define PROCESSOR_INTEL_386 386
162#define PROCESSOR_INTEL_486 486
163#define PROCESSOR_INTEL_PENTIUM 586
164#define PROCESSOR_INTEL_IA64 2200
165#define PROCESSOR_ARM_6 60999
166#define PROCESSOR_ARM_7 70999
167#define PROCESSOR_ARM_8 80999
168
170#define VER_PLATFORM_ULTIBO 10011
171
173#define DDD_RAW_TARGET_PATH 0x00000001
174#define DDD_REMOVE_DEFINITION 0x00000002
175#define DDD_EXACT_MATCH_ON_REMOVE 0x00000004
176#define DDD_NO_BROADCAST_SYSTEM 0x00000008
177#define DDD_LUID_BROADCAST_DRIVE 0x00000010
178
181typedef int INT;
182typedef int32_t LONG;
183
185typedef unsigned char BYTE;
186typedef unsigned short WORD;
187
188typedef unsigned int UINT;
189typedef unsigned char UCHAR;
190typedef unsigned short USHORT;
191typedef uint32_t ULONG;
192
194typedef ssize_t INT_PTR;
195typedef size_t UINT_PTR;
196typedef ssize_t LONG_PTR;
197typedef size_t ULONG_PTR;
199
201typedef int64_t LONGLONG;
202typedef uint64_t ULONGLONG;
204
206typedef size_t SIZE_T;
207typedef ssize_t SSIZE_T;
208
212typedef HANDLE HWND;
213
218
219typedef struct _QUAD
220{ // QUAD is for those times we want
221 double_t donotusethisfield; // an 8 byte aligned 8 byte long structure
222 // which is NOT really a floating point
223} QUAD; // number. Use DOUBLE if you want an FP number.
224
225typedef QUAD UQUAD;
226
234
237
239typedef union _LARGE_INTEGER
240{
241 struct {
244 };
245 struct {
248 } u;
251
252typedef union _ULARGE_INTEGER
253{
254 struct {
257 };
258 struct {
261 } u;
264
275
285
287
302
316
319
322
325
339
341
348
354
357
370
383
391
393typedef uint32_t STDCALL (*THREAD_START_ROUTINE)(void *lpthreadparameter);
394
403
404typedef struct _POINT
405{
409
420
427
430
441
443{
445
446 // The following three fields control entering and exiting the critical
447 // section for the resource
448
454};
455
457
463
465
476
479
491
493typedef int32_t FXPT16DOT16;
494typedef int32_t FXPT2DOT30;
495
496
503
510
522
529
537
547
561
585
613
620
626
635
650
652static const CONDITION_VARIABLE CONDITION_VARIABLE_INIT = {NULL};
653
655static const FILETIME TIME_NULL_TIME = {0x00000000, 0x00000000};
656
658#define DEFAULT_DRIVE 0
659#define INVALID_DRIVE 0
660#define MIN_DRIVE 1
661#define MAX_DRIVE 26
662#define NON_DRIVE 27
663
664#define DRIVE_A 1
665#define DRIVE_B 2
666#define DRIVE_C 3
667
669#define MAX_FAT_PATH 64
670#define MAX_FAT_FILE 12
671#define MAX_VFAT_PATH 260
672#define MAX_VFAT_FILE 255
673
674#define FAT_PATH_CHAR "\\"
675#define FAT_NAME_CHAR ":"
676#define FAT_FILE_CHAR "."
677#define FAT_DRIVE_CHAR ":"
678
679#define UNIX_PATH_CHAR "/"
680#define UNIX_NAME_CHAR ":"
681#define UNIX_FILE_CHAR "."
682
684#define MACRO_FILENAME_CHAR "%"
685#define WILDCARD_FILENAME_CHAR "*"
686
700
719
721typedef struct _DRIVE_DATA
722{
723 uint8_t drive;
728 uint32_t attributes;
729 char systemname[33]; //NOT null terminated, index 0 is the length
730 char volumename[33]; //NOT null terminated, index 0 is the length
731 uint32_t volumeserial;
733
735uint32_t STDCALL GetVersion(void);
736
740
744
745BOOL STDCALL GetComputerName(char *lpbuffer, uint32_t *nsize);
746BOOL STDCALL GetComputerNameA(char *lpbuffer, uint32_t *nsize);
747BOOL STDCALL GetComputerNameW(WCHAR *lpbuffer, uint32_t *nsize);
748
749BOOL STDCALL SetComputerName(const char *lpcomputername);
750BOOL STDCALL SetComputerNameA(const char *lpcomputername);
751BOOL STDCALL SetComputerNameW(const WCHAR *lpcomputername);
752
753BOOL STDCALL GetComputerNameEx(COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize);
754BOOL STDCALL GetComputerNameExA(COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize);
755BOOL STDCALL GetComputerNameExW(COMPUTER_NAME_FORMAT nametype, WCHAR *lpbuffer, uint32_t *nsize);
756
757BOOL STDCALL SetComputerNameEx(COMPUTER_NAME_FORMAT nametype, const char *lpbuffer);
758BOOL STDCALL SetComputerNameExA(COMPUTER_NAME_FORMAT nametype, const char *lpbuffer);
760
761BOOL STDCALL ExitUltibo(uint32_t dwreserved, UINT ureserved);
762BOOL STDCALL ExitUltiboEx(UINT uflags, uint32_t dwreserved);
763
765
770
775
780
782uint32_t STDCALL GetTickCount(void);
784
788void STDCALL GetSystemTime(SYSTEMTIME *lpsystemtime);
789
793void STDCALL GetSystemTimeAsFileTime(FILETIME *lpsystemtimeasfiletime);
794
799
803void STDCALL GetLocalTime(SYSTEMTIME *lpsystemtime);
804
809
810BOOL STDCALL SystemTimeToTzSpecificLocalTime(TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lpuniversaltime, SYSTEMTIME *lplocaltime);
811BOOL STDCALL TzSpecificLocalTimeToSystemTime(TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lplocaltime, SYSTEMTIME *lpuniversaltime);
812
813uint32_t STDCALL GetTimeZoneInformation(TIME_ZONE_INFORMATION *lptimezoneinformation);
815
821
828
833BOOL STDCALL FileTimeToLocalFileTime(FILETIME *lpfiletime, FILETIME *lplocalfiletime);
834
839BOOL STDCALL LocalFileTimeToFileTime(FILETIME *lplocalfiletime, FILETIME *lpfiletime);
840
841long STDCALL CompareFileTime(FILETIME *lpfiletime1, FILETIME *lpfiletime2);
842
848BOOL STDCALL FileTimeToDosDateTime(FILETIME *lpfiletime, uint16_t *lpfatdate, uint16_t *lpfattime);
849
855BOOL STDCALL DosDateTimeToFileTime(uint16_t wfatdate, uint16_t wfattime, FILETIME *lpfiletime);
856
862
870
872
877
882
886int32_t STDCALL GetTimeAdjust(void);
887
891void STDCALL SetTimeAdjust(int32_t adjust);
892
896uint32_t STDCALL GetCurrentTimezone(char *name, uint32_t len);
897
902
907
912
917
922
927
931uint32_t STDCALL GetTimezoneStandardStart(char *description, uint32_t len);
932
936uint32_t STDCALL GetTimezoneDaylightStart(char *description, uint32_t len);
937
942
947
954
960
967
973
981
988
995
1001
1006double_t STDCALL UnixTimeToDateTime(time_t unixtime);
1007
1013time_t STDCALL DateTimeToUnixTime(double_t datetime);
1014
1021
1028
1034
1040
1045
1051FILETIME STDCALL ConvertFileTime(FILETIME *filetime, int offset, BOOL local);
1052
1058double_t STDCALL ConvertDateTime(double_t datetime, int offset, BOOL local);
1059
1061UINT STDCALL GetDiskType(const char *lprootpathname);
1062UINT STDCALL GetDriveTypeA(const char *lprootpathname);
1063UINT STDCALL GetDriveTypeW(const WCHAR *lprootpathname);
1064
1066
1067uint32_t STDCALL GetLogicalDriveStrings(uint32_t nbufferlength, char *lpbuffer);
1068uint32_t STDCALL GetLogicalDriveStringsA(uint32_t nbufferlength, char *lpbuffer);
1069uint32_t STDCALL GetLogicalDriveStringsW(uint32_t nbufferlength, WCHAR *lpbuffer);
1070
1071BOOL STDCALL DefineDosDevice(uint32_t dwflags, const char *lpdevicename, const char *lptargetpath);
1072BOOL STDCALL DefineDosDeviceA(uint32_t dwflags, const char *lpdevicename, const char *lptargetpath);
1073BOOL STDCALL DefineDosDeviceW(uint32_t dwflags, const WCHAR *lpdevicename, const WCHAR *lptargetpath);
1074
1075uint32_t STDCALL QueryDosDevice(const char *lpdevicename, char *lptargetpath, uint32_t ucchmax);
1076uint32_t STDCALL QueryDosDeviceA(const char *lpdevicename, char *lptargetpath, uint32_t ucchmax);
1077uint32_t STDCALL QueryDosDeviceW(const WCHAR *lpdevicename, WCHAR *lptargetpath, uint32_t ucchmax);
1078
1079BOOL STDCALL SetVolumeLabel(const char *lprootpathname, const char *lpvolumename);
1080BOOL STDCALL SetVolumeLabelA(const char *lprootpathname, const char *lpvolumename);
1081BOOL STDCALL SetVolumeLabelW(const WCHAR *lprootpathname, const WCHAR *lpvolumename);
1082
1083BOOL STDCALL GetVolumeInformation(const char *lprootpathname, char *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, char *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize);
1084BOOL STDCALL GetVolumeInformationA(const char *lprootpathname, char *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, char *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize);
1085BOOL STDCALL GetVolumeInformationW(const WCHAR *lprootpathname, WCHAR *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, WCHAR *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize);
1086
1087BOOL STDCALL GetDiskFreeSpace(const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters);
1088BOOL STDCALL GetDiskFreeSpaceA(const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters);
1089BOOL STDCALL GetDiskFreeSpaceW(const WCHAR *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters);
1090
1091BOOL STDCALL GetDiskFreeSpaceEx(const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes);
1092BOOL STDCALL GetDiskFreeSpaceExA(const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes);
1093BOOL STDCALL GetDiskFreeSpaceExW(const WCHAR *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes);
1094
1096uint8_t STDCALL GetPathDrive(const char *path);
1098void STDCALL GetDriveData(uint8_t drive, DRIVE_DATA *data);
1099uint32_t STDCALL GetDriveAttr(uint8_t drive);
1100uint32_t STDCALL GetDriveLabel(uint8_t drive, char *label, uint32_t len);
1101BOOL STDCALL SetDriveLabel(uint8_t drive, const char *label);
1102uint32_t STDCALL GetDriveSerial(uint8_t drive);
1103BOOL STDCALL SetDriveSerial(uint8_t drive, uint32_t serial);
1106uint32_t STDCALL GetValidDriveNames(char *names, uint32_t len);
1107uint32_t STDCALL GetDriveFreeSpace(uint8_t drive);
1108int64_t STDCALL GetDriveFreeSpaceEx(uint8_t drive);
1109uint32_t STDCALL GetDriveTotalSpace(uint8_t drive);
1110int64_t STDCALL GetDriveTotalSpaceEx(uint8_t drive);
1111
1112BOOL STDCALL GetDriveInformation(const char *path, uint32_t *clustersize, int64_t *totalclustercount, int64_t *freeclustercount);
1113
1115BOOL STDCALL SetCurrentDrive(const char *drive);
1116
1121
1122HANDLE STDCALL CreateFile(const char *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile);
1123
1127HANDLE STDCALL CreateFileA(const char *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile);
1128
1132HANDLE STDCALL CreateFileW(const WCHAR *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile);
1133
1134BOOL STDCALL SetFileAttributes(const char *lpfilename, uint32_t dwfileattributes);
1135BOOL STDCALL SetFileAttributesA(const char *lpfilename, uint32_t dwfileattributes);
1136BOOL STDCALL SetFileAttributesW(const WCHAR *lpfilename, uint32_t dwfileattributes);
1137
1138uint32_t STDCALL GetFileAttributes(const char *lpfilename);
1139uint32_t STDCALL GetFileAttributesA(const char *lpfilename);
1140uint32_t STDCALL GetFileAttributesW(const WCHAR *lpfilename);
1141
1142BOOL STDCALL DeleteFile(const char *lpfilename);
1143BOOL STDCALL DeleteFileA(const char *lpfilename);
1144BOOL STDCALL DeleteFileW(const WCHAR *lpfilename);
1145
1146BOOL STDCALL MoveFile(const char *lpexistingfilename, const char *lpnewfilename);
1147BOOL STDCALL MoveFileA(const char *lpexistingfilename, const char *lpnewfilename);
1148BOOL STDCALL MoveFileW(const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename);
1149
1150HANDLE STDCALL FindFirstFile(const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata);
1151HANDLE STDCALL FindFirstFileA(const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata);
1152HANDLE STDCALL FindFirstFileW(const WCHAR *lpfilename, WIN32_FIND_DATAW *lpfindfiledata);
1153
1157
1159
1160uint32_t STDCALL GetFileSize(HANDLE hfile, DWORD *lpfilesizehigh);
1162
1163BOOL STDCALL GetFileTime(HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime);
1164BOOL STDCALL SetFileTime(HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime);
1165
1166BOOL STDCALL ReadFile(HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestoread, DWORD *lpnumberofbytesread, OVERLAPPED *lpoverlapped);
1167BOOL STDCALL WriteFile(HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestowrite, DWORD *lpnumberofbyteswritten, OVERLAPPED *lpoverlapped);
1168
1170
1171uint32_t STDCALL SetFilePointer(HANDLE hfile, long ldistancetomove, long *lpdistancetomovehigh, uint32_t dwmovemethod);
1172BOOL STDCALL SetFilePointerEx(HANDLE hfile, LARGE_INTEGER lidistancetomove, LARGE_INTEGER *lpnewfilepointer, uint32_t dwmovemethod);
1173
1175
1176BOOL STDCALL CopyFile(const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists);
1177BOOL STDCALL CopyFileA(const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists);
1178BOOL STDCALL CopyFileW(const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename, BOOL bfailifexists);
1179
1180BOOL STDCALL SetFileShortName(HANDLE hfile, const char *lpshortname);
1181BOOL STDCALL SetFileShortNameA(HANDLE hfile, const char *lpshortname);
1182BOOL STDCALL SetFileShortNameW(HANDLE hfile, const WCHAR *lpshortname);
1183
1184BOOL STDCALL CreateHardLink(const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes);
1185
1189BOOL STDCALL CreateHardLinkA(const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes);
1190
1194BOOL STDCALL CreateHardLinkW(const WCHAR *lpfilename, const WCHAR *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes);
1195
1196BOOL STDCALL CreateSymbolicLink(const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags);
1197BOOL STDCALL CreateSymbolicLinkA(const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags);
1198BOOL STDCALL CreateSymbolicLinkW(const WCHAR *lpsymlinkfilename, const WCHAR *lptargetfilename, uint32_t dwflags);
1199
1201
1205uint32_t STDCALL GetFinalPathNameByHandle(HANDLE hfile, char *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags);
1206
1210uint32_t STDCALL GetFinalPathNameByHandleA(HANDLE hfile, char *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags);
1211
1215uint32_t STDCALL GetFinalPathNameByHandleW(HANDLE hfile, WCHAR *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags);
1216
1218
1220BOOL STDCALL CreateDirectory(const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes);
1221
1225BOOL STDCALL CreateDirectoryA(const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes);
1226
1230BOOL STDCALL CreateDirectoryW(const WCHAR *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes);
1231
1232BOOL STDCALL RemoveDirectory(const char *lppathname);
1233BOOL STDCALL RemoveDirectoryA(const char *lppathname);
1235
1236BOOL STDCALL SetCurrentDirectory(const char *lppathname);
1237BOOL STDCALL SetCurrentDirectoryA(const char *lppathname);
1239
1240uint32_t STDCALL GetCurrentDirectory(uint32_t nbufferlength, char *lpbuffer);
1241uint32_t STDCALL GetCurrentDirectoryA(uint32_t nbufferlength, char *lpbuffer);
1242uint32_t STDCALL GetCurrentDirectoryW(uint32_t nbufferlength, WCHAR *lpbuffer);
1243
1244uint32_t STDCALL GetLongPathName(const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer);
1245uint32_t STDCALL GetLongPathNameA(const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer);
1246uint32_t STDCALL GetLongPathNameW(const WCHAR *lpszshortpath, WCHAR *lpszlongpath, uint32_t cchbuffer);
1247
1248uint32_t STDCALL GetShortPathName(const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer);
1249uint32_t STDCALL GetShortPathNameA(const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer);
1250uint32_t STDCALL GetShortPathNameW(const WCHAR *lpszlongpath, WCHAR *lpszshortpath, uint32_t cchbuffer);
1251
1252uint32_t STDCALL GetFullPathName(const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart);
1253
1257uint32_t STDCALL GetFullPathNameA(const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart);
1258
1262uint32_t STDCALL GetFullPathNameW(const WCHAR *lpfilename, uint32_t nbufferlength, WCHAR *lpbuffer, WCHAR *lpfilepart);
1263
1265
1268
1273
1278
1280
1284BOOL STDCALL IsParamPresent(const char *param);
1285
1289int STDCALL GetParamIndex(const char *param);
1290
1294uint32_t STDCALL GetParamValue(const char *param, char *value, uint32_t len);
1295
1300
1304
1305uint32_t STDCALL GetEnvironmentVariable(const char *lpname, char *lpbuffer, uint32_t nsize);
1306uint32_t STDCALL GetEnvironmentVariableA(const char *lpname, char *lpbuffer, uint32_t nsize);
1307uint32_t STDCALL GetEnvironmentVariableW(const WCHAR *lpname, WCHAR *lpbuffer, uint32_t nsize);
1308
1309BOOL STDCALL SetEnvironmentVariable(const char *lpname, const char *lpvalue);
1310BOOL STDCALL SetEnvironmentVariableA(const char *lpname, const char *lpvalue);
1311BOOL STDCALL SetEnvironmentVariableW(const WCHAR *lpname, const WCHAR *lpvalue);
1312
1313uint32_t STDCALL ExpandEnvironmentStrings(const char *lpsrc, char *lpdst, uint32_t nsize);
1314uint32_t STDCALL ExpandEnvironmentStringsA(const char *lpsrc, char *lpdst, uint32_t nsize);
1315uint32_t STDCALL ExpandEnvironmentStringsW(const WCHAR *lpsrc, WCHAR *lpdst, uint32_t nsize);
1316
1318
1322uint32_t STDCALL GetLastError(void);
1323
1327void STDCALL SetLastError(uint32_t dwerrcode);
1328
1330
1332
1339
1343uint32_t STDCALL GUIDToString(GUID *value, char *string, uint32_t len);
1344
1348GUID STDCALL StringToGUID(const char *value);
1349
1354
1359
1361//uint32_t STDCALL SIDToString(SID *sid, char *string, uint32_t len); //To Do //security.h
1362//SID * STDCALL StringToSID(char *value); //To Do //security.h
1363
1365
1367int STDCALL Min(int a, int b);
1368int STDCALL Max(int a, int b);
1369
1370uint32_t STDCALL MinEx(uint32_t a, uint32_t b);
1371uint32_t STDCALL MaxEx(uint32_t a, uint32_t b);
1372
1373int64_t STDCALL Min64(int64_t *a, int64_t *b);
1374int64_t STDCALL Max64(int64_t *a, int64_t *b);
1375
1376int64_t STDCALL Or64(int64_t *value1, int64_t *value2);
1377int64_t STDCALL And64(int64_t *value1, int64_t *value2);
1378int64_t STDCALL Xor64(int64_t *value1, int64_t *value2);
1379int64_t STDCALL Not64(int64_t *value);
1380
1381uint32_t STDCALL Rol32(uint32_t value, uint8_t count);
1382uint32_t STDCALL Ror32(uint32_t value, uint8_t count);
1383
1384uint16_t STDCALL WordSwap(uint16_t value);
1385uint32_t STDCALL LongSwap(uint32_t value);
1386int64_t STDCALL Int64Swap(int64_t *value);
1387
1392BOOL STDCALL BufferSwap(void *buffer, uint32_t size);
1393
1395
1400uint32_t STDCALL GenerateNameHash(const char *name, int size);
1401
1405uint32_t STDCALL GenerateStringHash(const char *value, BOOL casesensitive);
1406
1408BOOL STDCALL IsValidLocale(LCID localeid, uint32_t dwflags);
1409
1412
1415
1418
1423uint32_t STDCALL WideCharToString(const WCHAR *buffer, char *string, uint32_t len);
1424
1430uint32_t STDCALL WideCharLenToString(const WCHAR *buffer, int length, char *string, uint32_t len);
1431
1437BOOL STDCALL StringToWideChar(const char *string, WCHAR *buffer, int size);
1438
1441
1444
1447
1450
1451BOOL STDCALL GetCPInfo(UINT codepage, CPINFO *lpcpinfo);
1452
1453BOOL STDCALL GetCPInfoEx(UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex);
1454BOOL STDCALL GetCPInfoExA(UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex);
1455BOOL STDCALL GetCPInfoExW(UINT codepage, uint32_t dwflags, CPINFOEXW *lpcpinfoex);
1456
1460
1462int STDCALL MultiByteToWideChar(UINT codepage, uint32_t dwflags, char *lpmultibytestr, int cbmultibyte, WCHAR *lpwidecharstr, int cchwidechar);
1463int STDCALL WideCharToMultiByte(UINT codepage, uint32_t dwflags, WCHAR *lpwidecharstr, int cchwidechar, char *lpmultibytestr, int cbmultibyte, char *lpdefaultchar, BOOL *lpuseddefaultchar);
1464
1465int STDCALL CompareString(LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2);
1466int STDCALL CompareStringA(LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2);
1467int STDCALL CompareStringW(LCID locale, uint32_t dwcmpflags, WCHAR *lpstring1, int cchcount1, WCHAR *lpstring2, int cchcount2);
1468
1469char * STDCALL CharUpper(char *lpsz);
1470char * STDCALL CharUpperA(char *lpsz);
1472
1473uint32_t STDCALL CharUpperBuff(char *lpsz, uint32_t cchlength);
1474uint32_t STDCALL CharUpperBuffA(char *lpsz, uint32_t cchlength);
1475uint32_t STDCALL CharUpperBuffW(WCHAR *lpsz, uint32_t cchlength);
1476
1477char * STDCALL CharLower(char *lpsz);
1478char * STDCALL CharLowerA(char *lpsz);
1480
1481uint32_t STDCALL CharLowerBuff(char *lpsz, uint32_t cchlength);
1482uint32_t STDCALL CharLowerBuffA(char *lpsz, uint32_t cchlength);
1483uint32_t STDCALL CharLowerBuffW(WCHAR *lpsz, uint32_t cchlength);
1484
1485BOOL STDCALL AnsiToOem(char *lpszsrc, char *lpszdst);
1486BOOL STDCALL AnsiToOemBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1487BOOL STDCALL OemToAnsi(char *lpszsrc, char *lpszdst);
1488BOOL STDCALL OemToAnsiBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1489
1490BOOL STDCALL CharToOem(char *lpszsrc, char *lpszdst);
1491BOOL STDCALL CharToOemA(char *lpszsrc, char *lpszdst);
1492BOOL STDCALL CharToOemW(WCHAR *lpszsrc, char *lpszdst);
1493
1494BOOL STDCALL OemToChar(char *lpszsrc, char *lpszdst);
1495BOOL STDCALL OemToCharA(char *lpszsrc, char *lpszdst);
1496BOOL STDCALL OemToCharW(char *lpszsrc, WCHAR *lpszdst);
1497
1498BOOL STDCALL CharToOemBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1499BOOL STDCALL CharToOemBuffA(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1500BOOL STDCALL CharToOemBuffW(WCHAR *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1501
1502BOOL STDCALL OemToCharBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1503BOOL STDCALL OemToCharBuffA(char *lpszsrc, char *lpszdst, uint32_t cchdstlength);
1504BOOL STDCALL OemToCharBuffW(char *lpszsrc, WCHAR *lpszdst, uint32_t cchdstlength);
1505
1508BOOL STDCALL DuplicateHandle(HANDLE hsourceprocesshandle, HANDLE hsourcehandle, HANDLE htargetprocesshandle, HANDLE *lptargethandle, uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwoptions);
1509
1510BOOL STDCALL GetHandleInformation(HANDLE hobject, uint32_t *lpdwflags);
1511BOOL STDCALL SetHandleInformation(HANDLE hobject, uint32_t dwmask, uint32_t dwflags);
1512
1514void STDCALL MoveMemory(void *destination, void *source, SIZE_T length);
1515void STDCALL CopyMemory(void *destination, void *source, SIZE_T length);
1516void STDCALL FillMemory(void *destination, SIZE_T length, uint8_t fill);
1517void STDCALL ZeroMemory(void *destination, SIZE_T length);
1518
1522
1525
1528
1530
1533
1537
1540
1543
1545
1551void * STDCALL VirtualAlloc(void *lpaddress, SIZE_T dwsize, uint32_t flallocationtype, uint32_t flprotect);
1552BOOL STDCALL VirtualFree(void *lpaddress, SIZE_T dwsize, uint32_t dwfreetype);
1553
1554uint32_t STDCALL VirtualQuery(void *lpaddress, MEMORY_BASIC_INFORMATION *lpbuffer, uint32_t dwlength);
1555
1556BOOL STDCALL VirtualLock(void *lpaddress, SIZE_T dwsize);
1557BOOL STDCALL VirtualUnlock(void *lpaddress, SIZE_T dwsize);
1558
1559BOOL STDCALL FlushInstructionCache(HANDLE hprocess, void *lpbaseaddress, uint32_t dwsize);
1560
1562BOOL STDCALL GetNumaProcessorNode(uint8_t *processor, uint8_t *nodenumber);
1563
1565uint32_t STDCALL TlsAlloc(void);
1566
1570uint32_t STDCALL TlsAllocEx(BOOL bfree);
1571void * STDCALL TlsGetValue(uint32_t dwtlsindex);
1572BOOL STDCALL TlsSetValue(uint32_t dwtlsindex, void *lptlsvalue);
1573BOOL STDCALL TlsFree(uint32_t dwtlsindex);
1574
1577
1578void STDCALL Sleep(uint32_t dwmilliseconds);
1579
1583uint32_t STDCALL SleepEx(uint32_t dwmilliseconds, BOOL balertable);
1584
1586
1591
1596
1600BOOL STDCALL SetThreadPriority(HANDLE hthread, int npriority);
1601
1602BOOL STDCALL GetExitCodeThread(HANDLE hthread, uint32_t *lpexitcode);
1603
1606
1607BOOL STDCALL GetThreadTimes(HANDLE hthread, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime);
1608
1609HANDLE STDCALL CreateThread(SECURITY_ATTRIBUTES *lpthreadattributes, uint32_t dwstacksize, THREAD_START_ROUTINE lpstartaddress, void *lpparameter, uint32_t dwcreationflags, DWORD *lpthreadid);
1610HANDLE STDCALL OpenThread(uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwthreadid);
1611
1612uint32_t STDCALL SuspendThread(HANDLE hthread);
1613uint32_t STDCALL ResumeThread(HANDLE hthread);
1614
1615BOOL STDCALL TerminateThread(HANDLE hthread, uint32_t dwexitcode);
1616
1617void STDCALL ExitThread(uint32_t dwexitcode);
1618
1619uint32_t STDCALL WaitForSingleObject(HANDLE hhandle, uint32_t dwmilliseconds);
1620uint32_t STDCALL WaitForMultipleObjects(uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds);
1621
1625uint32_t STDCALL WaitForSingleObjectEx(HANDLE hhandle, uint32_t dwmilliseconds, BOOL balertable);
1626
1630uint32_t STDCALL WaitForMultipleObjectsEx(uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds, BOOL balertable);
1631
1633THREAD_ID STDCALL BeginThreadEx(thread_func threadfunction, void *parameter, THREAD_ID *threadid, size_t *stacksize, uint32_t priority, uint32_t affinity, uint32_t cpu, const char *name);
1634
1637
1638BOOL STDCALL GetMessage(MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax);
1639BOOL STDCALL PeekMessage(MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax, UINT wremovemsg);
1640
1641BOOL STDCALL PostMessage(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam);
1642LRESULT STDCALL SendMessage(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam);
1643LRESULT STDCALL SendMessageTimeout(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam, UINT fuflags, UINT utimeout, DWORD_PTR *lpdwresult);
1644
1646
1648long STDCALL InterlockedIncrement(long *lpaddend);
1649long STDCALL InterlockedDecrement(long *lpaddend);
1650
1651long STDCALL InterlockedExchange(long *target, long value);
1652void * STDCALL InterlockedExchangePointer(void *target, void *value);
1653
1654long STDCALL InterlockedExchangeAdd(long *addend, long value);
1655long STDCALL InterlockedCompareExchange(long *destination, long exchange, long comperand);
1656void * STDCALL InterlockedCompareExchangePointer(void *destination, void *exchange, void *comperand);
1657
1659HANDLE STDCALL CreateMutex(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname);
1660HANDLE STDCALL CreateMutexA(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname);
1661HANDLE STDCALL CreateMutexW(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const WCHAR *lpname);
1662
1663HANDLE STDCALL OpenMutex(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1664HANDLE STDCALL OpenMutexA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1665HANDLE STDCALL OpenMutexW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname);
1666
1668
1670HANDLE STDCALL CreateSemaphore(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname);
1671HANDLE STDCALL CreateSemaphoreA(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname);
1672HANDLE STDCALL CreateSemaphoreW(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const WCHAR *lpname);
1673
1674HANDLE STDCALL OpenSemaphore(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1675HANDLE STDCALL OpenSemaphoreA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1676HANDLE STDCALL OpenSemaphoreW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname);
1677
1678BOOL STDCALL ReleaseSemaphore(HANDLE hsemaphore, long lreleasecount, long *lppreviouscount);
1679
1685
1686BOOL STDCALL InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount);
1687uint32_t STDCALL SetCriticalSectionSpinCount(CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount);
1688
1690
1692
1698
1704
1710
1717BOOL STDCALL SleepConditionVariableCS(CONDITION_VARIABLE *conditionvariable, CRITICAL_SECTION *criticalsection, uint32_t dwmilliseconds);
1718
1725
1727HANDLE STDCALL CreateEvent(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname);
1728HANDLE STDCALL CreateEventA(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname);
1729HANDLE STDCALL CreateEventW(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const WCHAR *lpname);
1730
1731HANDLE STDCALL OpenEvent(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1732HANDLE STDCALL OpenEventA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname);
1733HANDLE STDCALL OpenEventW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname);
1734
1738
1740
1744BOOL STDCALL GetProcessAffinityMask(HANDLE hprocess, DWORD_PTR *lpprocessaffinitymask, DWORD_PTR *lpsystemaffinitymask);
1745
1749BOOL STDCALL SetProcessAffinityMask(HANDLE hprocess, DWORD_PTR dwprocessaffinitymask);
1750
1754BOOL STDCALL GetProcessTimes(HANDLE hprocess, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime);
1755
1760
1765
1771
1775void STDCALL ExitProcess(UINT uexitcode);
1776
1780void STDCALL FatalExit(int exitcode);
1781
1786
1788void STDCALL OutputDebugString(const char *lpoutputstring);
1789void STDCALL OutputDebugStringA(const char *lpoutputstring);
1790void STDCALL OutputDebugStringW(const WCHAR *lpoutputstring);
1791
1793int STDCALL lstrcmp(char *lpstring1, char *lpstring2);
1794int STDCALL lstrcmpA(char *lpstring1, char *lpstring2);
1795int STDCALL lstrcmpW(WCHAR *lpstring1, WCHAR *lpstring2);
1796
1797int STDCALL lstrcmpi(char *lpstring1, char *lpstring2);
1798int STDCALL lstrcmpiA(char *lpstring1, char *lpstring2);
1799int STDCALL lstrcmpiW(WCHAR *lpstring1, WCHAR *lpstring2);
1800
1801char * STDCALL lstrcpy(char *lpstring1, char *lpstring2);
1802char * STDCALL lstrcpyA(char *lpstring1, char *lpstring2);
1803WCHAR * STDCALL lstrcpyW(WCHAR *lpstring1, WCHAR *lpstring2);
1804
1805char * STDCALL lstrcpyn(char *lpstring1, char *lpstring2, int imaxlength);
1806char * STDCALL lstrcpynA(char *lpstring1, char *lpstring2, int imaxlength);
1807WCHAR * STDCALL lstrcpynW(WCHAR *lpstring1, WCHAR *lpstring2, int imaxlength);
1808
1809char * STDCALL lstrcat(char *lpstring1, char *lpstring2);
1810char * STDCALL lstrcatA(char *lpstring1, char *lpstring2);
1811WCHAR * STDCALL lstrcatW(WCHAR *lpstring1, WCHAR *lpstring2);
1812
1813int STDCALL lstrlen(char *lpstring);
1814int STDCALL lstrlenA(char *lpstring);
1815int STDCALL lstrlenW(WCHAR *lpstring);
1816
1817#ifdef __cplusplus
1818}
1819#endif
1820
1821#endif // _ULTIBO_ULTIBO_H
size_t HANDLE
Definition globaltypes.h:51
#define STDCALL
Definition globaltypes.h:45
_Bool BOOL
Built in Boolean type (1 byte) (Redeclared here for flexibility).
Definition globaltypes.h:55
struct _OVERLAPPED OVERLAPPED
Definition globaltypes.h:70
wchar_t WCHAR
Standard WideChar type (2 bytes) (Redeclared here for flexibility).
Definition globaltypes.h:58
uint32_t DWORD
Definition globaltypes.h:53
struct _CPINFO CPINFO
Definition locale.h:396
struct _CPINFOEXW CPINFOEXW
Definition locale.h:419
uint32_t LCID
To Do.
Definition locale.h:383
struct _CPINFOEXA CPINFOEXA
Definition locale.h:406
Definition ultibo.h:563
DWORD bV4GammaBlue
Definition ultibo.h:583
CIEXYZTRIPLE bV4Endpoints
Definition ultibo.h:580
DWORD bV4CSType
Definition ultibo.h:579
LONG bV4Width
Definition ultibo.h:565
DWORD bV4ClrImportant
Definition ultibo.h:574
WORD bV4Planes
Definition ultibo.h:567
WORD bV4BitCount
Definition ultibo.h:568
DWORD bV4GammaRed
Definition ultibo.h:581
DWORD bV4BlueMask
Definition ultibo.h:577
DWORD bV4AlphaMask
Definition ultibo.h:578
DWORD bV4SizeImage
Definition ultibo.h:570
DWORD bV4GammaGreen
Definition ultibo.h:582
LONG bV4XPelsPerMeter
Definition ultibo.h:571
DWORD bV4Size
Definition ultibo.h:564
DWORD bV4V4Compression
Definition ultibo.h:569
DWORD bV4ClrUsed
Definition ultibo.h:573
LONG bV4Height
Definition ultibo.h:566
DWORD bV4RedMask
Definition ultibo.h:575
DWORD bV4GreenMask
Definition ultibo.h:576
LONG bV4YPelsPerMeter
Definition ultibo.h:572
Definition ultibo.h:587
DWORD bV5GammaBlue
Definition ultibo.h:607
DWORD bV5ClrUsed
Definition ultibo.h:597
DWORD bV5AlphaMask
Definition ultibo.h:602
DWORD bV5Reserved
Definition ultibo.h:611
DWORD bV5GammaRed
Definition ultibo.h:605
LONG bV5XPelsPerMeter
Definition ultibo.h:595
DWORD bV5Compression
Definition ultibo.h:593
LONG bV5Width
Definition ultibo.h:589
WORD bV5Planes
Definition ultibo.h:591
DWORD bV5ProfileSize
Definition ultibo.h:610
DWORD bV5Intent
Definition ultibo.h:608
CIEXYZTRIPLE bV5Endpoints
Definition ultibo.h:604
DWORD bV5CSType
Definition ultibo.h:603
DWORD bV5GreenMask
Definition ultibo.h:600
DWORD bV5RedMask
Definition ultibo.h:599
LONG bV5Height
Definition ultibo.h:590
DWORD bV5ProfileData
Definition ultibo.h:609
WORD bV5BitCount
Definition ultibo.h:592
DWORD bV5Size
Definition ultibo.h:588
DWORD bV5SizeImage
Definition ultibo.h:594
DWORD bV5GammaGreen
Definition ultibo.h:606
DWORD bV5BlueMask
Definition ultibo.h:601
LONG bV5YPelsPerMeter
Definition ultibo.h:596
DWORD bV5ClrImportant
Definition ultibo.h:598
Definition ultibo.h:540
DWORD bcSize
Definition ultibo.h:541
WORD bcHeight
Definition ultibo.h:543
WORD bcWidth
Definition ultibo.h:542
WORD bcPlanes
Definition ultibo.h:544
WORD bcBitCount
Definition ultibo.h:545
Definition ultibo.h:622
RGBTRIPLE bmciColors[1]
Definition ultibo.h:624
BITMAPCOREHEADER bmciHeader
Definition ultibo.h:623
Definition ultibo.h:628
WORD bfType
Definition ultibo.h:629
WORD bfReserved1
Definition ultibo.h:631
DWORD bfSize
Definition ultibo.h:630
WORD bfReserved2
Definition ultibo.h:632
DWORD bfOffBits
Definition ultibo.h:633
Definition ultibo.h:548
DWORD biClrImportant
Definition ultibo.h:559
LONG biWidth
Definition ultibo.h:550
WORD biPlanes
Definition ultibo.h:552
DWORD biClrUsed
Definition ultibo.h:558
DWORD biSizeImage
Definition ultibo.h:555
WORD biBitCount
Definition ultibo.h:553
LONG biYPelsPerMeter
Definition ultibo.h:557
LONG biXPelsPerMeter
Definition ultibo.h:556
DWORD biSize
Definition ultibo.h:549
DWORD biCompression
Definition ultibo.h:554
LONG biHeight
Definition ultibo.h:551
Definition ultibo.h:616
BITMAPINFOHEADER bmiHeader
Definition ultibo.h:617
RGBQUAD bmiColors[1]
Definition ultibo.h:618
Definition ultibo.h:513
LONG bmWidth
Definition ultibo.h:515
LONG bmHeight
Definition ultibo.h:516
LONG bmWidthBytes
Definition ultibo.h:517
WORD bmBitsPixel
Definition ultibo.h:519
LONG bmType
Definition ultibo.h:514
WORD bmPlanes
Definition ultibo.h:518
void * bmBits
Definition ultibo.h:520
Definition ultibo.h:638
FILETIME ftLastWriteTime
Definition ultibo.h:642
DWORD nFileSizeHigh
Definition ultibo.h:644
FILETIME ftLastAccessTime
Definition ultibo.h:641
DWORD nFileSizeLow
Definition ultibo.h:645
FILETIME ftCreationTime
Definition ultibo.h:640
DWORD dwVolumeSerialNumber
Definition ultibo.h:643
DWORD nFileIndexLow
Definition ultibo.h:648
DWORD nNumberOfLinks
Definition ultibo.h:646
DWORD nFileIndexHigh
Definition ultibo.h:647
DWORD dwFileAttributes
Definition ultibo.h:639
Definition ultibo.h:505
CIEXYZ ciexyzGreen
Definition ultibo.h:507
CIEXYZ ciexyzBlue
Definition ultibo.h:508
CIEXYZ ciexyzRed
Definition ultibo.h:506
Definition ultibo.h:498
FXPT2DOT30 ciexyzX
Definition ultibo.h:499
FXPT2DOT30 ciexyzY
Definition ultibo.h:500
FXPT2DOT30 ciexyzZ
Definition ultibo.h:501
Definition ultibo.h:722
int maxpath
Definition ultibo.h:727
DRIVE_TYPE drivetype
Definition ultibo.h:724
uint8_t drive
Definition ultibo.h:723
uint32_t attributes
Definition ultibo.h:728
char volumename[33]
Definition ultibo.h:730
uint32_t volumeserial
Definition ultibo.h:731
FILE_SYS_TYPE filesystype
Definition ultibo.h:725
char systemname[33]
Definition ultibo.h:729
int maxfile
Definition ultibo.h:726
Definition ultibo.h:228
WORD Data2
Definition ultibo.h:230
WORD Data3
Definition ultibo.h:231
DWORD Data1
Definition ultibo.h:229
BYTE Data4[8]
Definition ultibo.h:232
Definition ultibo.h:468
ULONGLONG OtherOperationCount
Definition ultibo.h:471
ULONGLONG ReadOperationCount
Definition ultibo.h:469
ULONGLONG OtherTransferCount
Definition ultibo.h:474
ULONGLONG WriteTransferCount
Definition ultibo.h:473
ULONGLONG ReadTransferCount
Definition ultibo.h:472
ULONGLONG WriteOperationCount
Definition ultibo.h:470
Definition ultibo.h:423
struct _LOCKS_LIST_ENTRY * Blink
Definition ultibo.h:425
struct _LOCKS_LIST_ENTRY * Flink
Definition ultibo.h:424
Definition ultibo.h:372
DWORDLONG ullAvailExtendedVirtual
Definition ultibo.h:381
DWORD dwLength
Definition ultibo.h:373
DWORDLONG ullAvailPhys
Definition ultibo.h:376
DWORDLONG ullTotalVirtual
Definition ultibo.h:379
DWORDLONG ullAvailPageFile
Definition ultibo.h:378
DWORDLONG ullTotalPageFile
Definition ultibo.h:377
DWORD dwMemoryLoad
Definition ultibo.h:374
DWORDLONG ullTotalPhys
Definition ultibo.h:375
DWORDLONG ullAvailVirtual
Definition ultibo.h:380
Definition ultibo.h:360
DWORD dwLength
Definition ultibo.h:361
SIZE_T dwTotalPhys
Definition ultibo.h:363
SIZE_T dwAvailPhys
Definition ultibo.h:364
SIZE_T dwAvailVirtual
Definition ultibo.h:368
DWORD dwMemoryLoad
Definition ultibo.h:362
SIZE_T dwTotalPageFile
Definition ultibo.h:365
SIZE_T dwAvailPageFile
Definition ultibo.h:366
SIZE_T dwTotalVirtual
Definition ultibo.h:367
Definition ultibo.h:482
DWORD AllocationProtect
Definition ultibo.h:485
void * BaseAddress
Definition ultibo.h:483
DWORD State
Definition ultibo.h:487
DWORD Protect
Definition ultibo.h:488
void * AllocationBase
Definition ultibo.h:484
DWORD Type
Definition ultibo.h:489
SIZE_T RegionSize
Definition ultibo.h:486
Definition ultibo.h:412
UINT message
Definition ultibo.h:414
WPARAM wParam
Definition ultibo.h:415
LPARAM lParam
Definition ultibo.h:416
DWORD time
Definition ultibo.h:417
HANDLE hThread
Definition ultibo.h:413
POINT pt
Definition ultibo.h:418
Definition ultibo.h:267
DWORD dwMinorVersion
Definition ultibo.h:270
DWORD dwOSVersionInfoSize
Definition ultibo.h:268
DWORD dwPlatformId
Definition ultibo.h:272
DWORD dwBuildNumber
Definition ultibo.h:271
DWORD dwMajorVersion
Definition ultibo.h:269
char szCSDVersion[128]
Definition ultibo.h:273
Definition ultibo.h:277
WCHAR szCSDVersion[128]
Definition ultibo.h:283
DWORD dwMinorVersion
Definition ultibo.h:280
DWORD dwOSVersionInfoSize
Definition ultibo.h:278
DWORD dwPlatformId
Definition ultibo.h:282
DWORD dwBuildNumber
Definition ultibo.h:281
DWORD dwMajorVersion
Definition ultibo.h:279
Definition ultibo.h:405
LONG x
Definition ultibo.h:406
LONG y
Definition ultibo.h:407
Definition ultibo.h:220
double_t donotusethisfield
Definition ultibo.h:221
Definition ultibo.h:397
LONG left
Definition ultibo.h:398
LONG right
Definition ultibo.h:400
LONG bottom
Definition ultibo.h:401
LONG top
Definition ultibo.h:399
Definition ultibo.h:531
BYTE rgbRed
Definition ultibo.h:534
BYTE rgbBlue
Definition ultibo.h:532
BYTE rgbGreen
Definition ultibo.h:533
BYTE rgbReserved
Definition ultibo.h:535
Definition ultibo.h:524
BYTE rgbtBlue
Definition ultibo.h:525
BYTE rgbtRed
Definition ultibo.h:527
BYTE rgbtGreen
Definition ultibo.h:526
Definition ultibo.h:460
void * ptr
Definition ultibo.h:461
Definition ultibo.h:432
DWORD Spare[2]
Definition ultibo.h:439
LOCKS_LIST_ENTRY ProcessLocksList
Definition ultibo.h:436
DWORD ContentionCount
Definition ultibo.h:438
WORD CreatorBackTraceIndex
Definition ultibo.h:434
DWORD EntryCount
Definition ultibo.h:437
RTL_CRITICAL_SECTION * CriticalSection
Definition ultibo.h:435
WORD Type
Definition ultibo.h:433
Definition ultibo.h:443
ULONG_PTR SpinCount
force size on 64-bit systems when packed
Definition ultibo.h:453
long LockCount
Definition ultibo.h:449
long RecursionCount
Definition ultibo.h:450
HANDLE OwningThread
from the thread's ClientId->UniqueThread
Definition ultibo.h:451
HANDLE LockSemaphore
Definition ultibo.h:452
RTL_CRITICAL_SECTION_DEBUG * DebugInfo
Definition ultibo.h:444
Definition ultibo.h:386
void * lpSecurityDescriptor
Definition ultibo.h:388
BOOL bInheritHandle
Definition ultibo.h:389
DWORD nLength
Definition ultibo.h:387
Definition ultibo.h:289
DWORD dwProcessorType
Definition ultibo.h:297
WORD wProcessorArchitecture
Definition ultibo.h:290
DWORD_PTR dwActiveProcessorMask
Definition ultibo.h:295
DWORD dwAllocationGranularity
Definition ultibo.h:298
DWORD dwNumberOfProcessors
Definition ultibo.h:296
void * lpMinimumApplicationAddress
Definition ultibo.h:293
WORD wProcessorRevision
Definition ultibo.h:300
void * lpMaximumApplicationAddress
Definition ultibo.h:294
WORD wReserved
Definition ultibo.h:291
WORD wProcessorLevel
Definition ultibo.h:299
DWORD dwPageSize
Definition ultibo.h:292
Definition ultibo.h:327
FILETIME ftLastWriteTime
Definition ultibo.h:331
DWORD nFileSizeHigh
Definition ultibo.h:332
FILETIME ftLastAccessTime
Definition ultibo.h:330
DWORD dwReserved0
Definition ultibo.h:334
DWORD nFileSizeLow
Definition ultibo.h:333
WCHAR cFileName[MAX_PATH]
Definition ultibo.h:336
FILETIME ftCreationTime
Definition ultibo.h:329
DWORD dwReserved1
Definition ultibo.h:335
WCHAR cAlternateFileName[14]
Definition ultibo.h:337
DWORD dwFileAttributes
Definition ultibo.h:328
Definition ultibo.h:350
LARGE_INTEGER StreamSize
Definition ultibo.h:351
WCHAR cStreamName[MAX_PATH+36]
Definition ultibo.h:352
ssize_t STDCALL(* thread_func)(void *parameter)
Thread function prototype.
Definition system.h:62
HANDLE THREAD_ID
Type for Thread-IDs.
Definition system.h:63
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
struct _TIME_ZONE_INFORMATION TIME_ZONE_INFORMATION
Definition timezone.h:53
void STDCALL EnterCriticalSection(CRITICAL_SECTION *lpcriticalsection)
SIZE_T STDCALL LocalSize(HLOCAL hmem)
GUID STDCALL StringToGUID(const char *value)
Convert a string to a native TGUID type.
BOOL STDCALL PeekMessage(MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax, UINT wremovemsg)
int64_t STDCALL Xor64(int64_t *value1, int64_t *value2)
uint32_t STDCALL GetFinalPathNameByHandleW(HANDLE hfile, WCHAR *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags)
Retrieves the final path for the specified open file handle.
BOOL STDCALL CompareGUID(GUID *guid1, GUID *guid2)
Check whether two TGUID variables are equal.
uint32_t STDCALL GetTimeZoneInformation(TIME_ZONE_INFORMATION *lptimezoneinformation)
uint32_t STDCALL GetTimezoneStandardStart(char *description, uint32_t len)
Get the description of the standard time start for the current Timezone.
BOOL STDCALL OemToCharBuffA(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
void STDCALL GetNativeSystemInfo(SYSTEM_INFO *lpsysteminfo)
void STDCALL GetSystemTime(SYSTEMTIME *lpsystemtime)
Get the current system time in UTC.
int STDCALL lstrcmp(char *lpstring1, char *lpstring2)
struct _BY_HANDLE_FILE_INFORMATION BY_HANDLE_FILE_INFORMATION
char *STDCALL GetEnvironmentStrings(void)
UINT STDCALL GetConsoleOutputCP(void)
BOOL STDCALL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
Retrieves the frequency of the performance counter. The frequency of the performance counter is fixed...
SIZE_T STDCALL GlobalSize(HGLOBAL hmem)
FILETIME STDCALL DateTimeToFileTime(double_t datetime)
Convert a DateTime value to a FileTime value.
BOOL STDCALL NullGUID(GUID *guid)
Check if a TGUID is empty (All zeroes).
double_t STDCALL ConvertDateTime(double_t datetime, int offset, BOOL local)
Convert a DateTime value to a specified offset (Local or UTC).
uint32_t STDCALL WaitForSingleObject(HANDLE hhandle, uint32_t dwmilliseconds)
BOOL STDCALL CharToOemA(char *lpszsrc, char *lpszdst)
BOOL STDCALL GlobalMemoryStatusEx(MEMORYSTATUSEX *lpbuffer)
uint32_t STDCALL GetFileAttributesA(const char *lpfilename)
int STDCALL CompareStringW(LCID locale, uint32_t dwcmpflags, WCHAR *lpstring1, int cchcount1, WCHAR *lpstring2, int cchcount2)
uint32_t STDCALL SleepEx(uint32_t dwmilliseconds, BOOL balertable)
BOOL STDCALL GetComputerNameEx(COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize)
uint32_t STDCALL GetCurrentDirectoryW(uint32_t nbufferlength, WCHAR *lpbuffer)
int STDCALL GetParamIndex(const char *param)
Get the index of the specified parameter in the command line.
struct _OSVERSIONINFOA OSVERSIONINFOA
struct _BITMAPCOREHEADER BITMAPCOREHEADER
RTL_CRITICAL_SECTION CRITICAL_SECTION
Definition ultibo.h:456
BOOL STDCALL IsValidLocale(LCID localeid, uint32_t dwflags)
BOOL STDCALL CopyFileA(const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists)
BOOL STDCALL GetProcessIoCounters(HANDLE hprocess, IO_COUNTERS *lpiocounters)
HLOCAL STDCALL LocalAlloc(UINT uflags, SIZE_T ubytes)
unsigned short WORD
Definition ultibo.h:186
HANDLE STDCALL GetCurrentThread(void)
uint32_t STDCALL CharLowerBuffA(char *lpsz, uint32_t cchlength)
HANDLE STDCALL OpenEventW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
uint32_t STDCALL GetFileSize(HANDLE hfile, DWORD *lpfilesizehigh)
void STDCALL OutputDebugStringA(const char *lpoutputstring)
BOOL STDCALL CreateSymbolicLinkW(const WCHAR *lpsymlinkfilename, const WCHAR *lptargetfilename, uint32_t dwflags)
BOOL STDCALL SystemTimeToFileTime(SYSTEMTIME *lpsystemtime, FILETIME *lpfiletime)
Convert a SystemTime value to a FileTime value.
LCID STDCALL GetSystemDefaultLCID(void)
BOOL STDCALL SetLocalTime(SYSTEMTIME *lpsystemtime)
Set the current local time.
BOOL STDCALL FindNextFileA(HANDLE hfindfile, WIN32_FIND_DATAA *lpfindfiledata)
BOOL STDCALL RemoveDirectory(const char *lppathname)
time_t STDCALL DateTimeToUnixTime(double_t datetime)
Convert a DateTime value to a Unix/Linux time value.
BOOL STDCALL SetFileShortName(HANDLE hfile, const char *lpshortname)
void STDCALL WakeConditionVariable(CONDITION_VARIABLE *conditionvariable)
Wake a single thread waiting on the specified condition variable.
HANDLE STDCALL OpenEvent(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
size_t ULONG_PTR
Definition ultibo.h:197
void STDCALL InitializeConditionVariable(CONDITION_VARIABLE *conditionvariable)
Initializes a condition variable.
BOOL STDCALL GetComputerNameExW(COMPUTER_NAME_FORMAT nametype, WCHAR *lpbuffer, uint32_t *nsize)
BOOL STDCALL TerminateThread(HANDLE hthread, uint32_t dwexitcode)
BOOL STDCALL StringToWideChar(const char *string, WCHAR *buffer, int size)
A replacement for StringToWideChar in System unit to allow cross platform compatibility.
GUID STDCALL CreateGUID(void)
Create a new GUID GUID has the following format DWORD-WORD-WORD-WORD-WORDDWORD | Not Swapped |.
void STDCALL SetTimezoneStandardOffset(int32_t offset)
Sets the Standard Offset for the current Timezone.
BOOL STDCALL SetConsoleOutputCP(UINT wcodepageid)
HGLOBAL STDCALL GlobalAlloc(UINT uflags, SIZE_T dwbytes)
long STDCALL InterlockedExchange(long *target, long value)
uint32_t STDCALL GetFileAttributesW(const WCHAR *lpfilename)
BOOL STDCALL GetMessage(MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax)
BOOL STDCALL SetFileAttributesW(const WCHAR *lpfilename, uint32_t dwfileattributes)
BOOL STDCALL DefineDosDevice(uint32_t dwflags, const char *lpdevicename, const char *lptargetpath)
BOOL STDCALL GetDiskFreeSpaceEx(const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
_FILE_SYS_TYPE
Definition ultibo.h:702
@ fsUDF
Definition ultibo.h:714
@ fsNTFS
Definition ultibo.h:710
@ fsEXT3
Definition ultibo.h:716
@ fsNTFS51
Definition ultibo.h:712
@ fsUNKNOWN
Definition ultibo.h:703
@ fsFAT16
Definition ultibo.h:706
@ fsINVALID
Definition ultibo.h:704
@ fsEXFAT
Definition ultibo.h:708
@ fsFAT12
Definition ultibo.h:705
@ fsHPFS
Definition ultibo.h:709
@ fsEXT2
Definition ultibo.h:715
@ fsFAT32
Definition ultibo.h:707
@ fsNTFS5
Definition ultibo.h:711
@ fsCDFS
Definition ultibo.h:713
@ fsEXT4
Definition ultibo.h:717
BOOL STDCALL MoveFileA(const char *lpexistingfilename, const char *lpnewfilename)
uint32_t STDCALL GetTickCount(void)
uint32_t STDCALL Rol32(uint32_t value, uint8_t count)
int32_t LONG
long // In Windows LONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler
Definition ultibo.h:182
BOOL STDCALL AnsiToOem(char *lpszsrc, char *lpszdst)
HANDLE STDCALL CreateFile(const char *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile)
void STDCALL SetFileApisToANSI(void)
char *STDCALL GetCommandLine(void)
FILETIME STDCALL FileTimeToAdjustedTime(FILETIME *filetime)
Convert a local FileTime value to a DST adjusted FileTime value.
BOOL STDCALL SetThreadPriority(HANDLE hthread, int npriority)
long STDCALL CompareFileTime(FILETIME *lpfiletime1, FILETIME *lpfiletime2)
HANDLE STDCALL GetCurrentProcess(void)
uint32_t STDCALL ExpandEnvironmentStringsA(const char *lpsrc, char *lpdst, uint32_t nsize)
int STDCALL lstrcmpi(char *lpstring1, char *lpstring2)
BOOL STDCALL DeleteFile(const char *lpfilename)
LONG_PTR LRESULT
Definition ultibo.h:217
ULONGLONG STDCALL GetTickCount64(void)
BOOL STDCALL GetCPInfoEx(UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex)
ULONGLONG DWORDLONG
Definition ultibo.h:203
uint32_t STDCALL VirtualQuery(void *lpaddress, MEMORY_BASIC_INFORMATION *lpbuffer, uint32_t dwlength)
BOOL STDCALL GetFileTime(HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime)
HANDLE HWND
Definition ultibo.h:212
int64_t STDCALL Min64(int64_t *a, int64_t *b)
FILETIME STDCALL GetCurrentTime(void)
Get the current system time in UTC as a FileTime value.
char *STDCALL lstrcpynA(char *lpstring1, char *lpstring2, int imaxlength)
BOOL STDCALL ExitUltibo(uint32_t dwreserved, UINT ureserved)
BOOL STDCALL CopyFile(const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists)
void STDCALL SetLastError(uint32_t dwerrcode)
Set the last error value for the calling thread.
BOOL STDCALL OemToAnsiBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL ReleaseMutex(HANDLE hmutex)
HLOCAL STDCALL LocalFree(HLOCAL hmem)
uint32_t STDCALL GetFileAttributes(const char *lpfilename)
BOOL STDCALL FindNextFile(HANDLE hfindfile, WIN32_FIND_DATAA *lpfindfiledata)
char *STDCALL GetEnvironmentStringsA(void)
int32_t FXPT2DOT30
Definition ultibo.h:494
BOOL STDCALL SetFileShortNameA(HANDLE hfile, const char *lpshortname)
BOOL STDCALL SetFilePointerEx(HANDLE hfile, LARGE_INTEGER lidistancetomove, LARGE_INTEGER *lpnewfilepointer, uint32_t dwmovemethod)
HANDLE STDCALL CreateFileA(const char *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile)
HANDLE STDCALL OpenThread(uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwthreadid)
BOOL STDCALL RemoveDirectoryA(const char *lppathname)
unsigned int UINT
Definition ultibo.h:188
BOOL STDCALL OemToCharBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL TlsFree(uint32_t dwtlsindex)
int INT
Definition ultibo.h:181
BOOL STDCALL GetCPInfo(UINT codepage, CPINFO *lpcpinfo)
int64_t STDCALL GetDriveFreeSpaceEx(uint8_t drive)
uint32_t STDCALL CharUpperBuffW(WCHAR *lpsz, uint32_t cchlength)
struct _POINT POINT
double_t STDCALL UnixTimeToDateTime(time_t unixtime)
Convert a Unix/Linux time value to a DateTime value.
BOOL STDCALL SetFileAttributesA(const char *lpfilename, uint32_t dwfileattributes)
HANDLE STDCALL OpenSemaphore(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
THREAD_ID STDCALL BeginThreadEx(thread_func threadfunction, void *parameter, THREAD_ID *threadid, size_t *stacksize, uint32_t priority, uint32_t affinity, uint32_t cpu, const char *name)
BOOL STDCALL CloseHandle(HANDLE hobject)
LONG_PTR LPARAM
Definition ultibo.h:216
struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES
BOOL STDCALL TerminateProcess(HANDLE hprocess, UINT uexitcode)
int64_t STDCALL Or64(int64_t *value1, int64_t *value2)
BOOL STDCALL VirtualUnlock(void *lpaddress, SIZE_T dwsize)
void STDCALL GlobalMemoryStatus(MEMORYSTATUS *lpbuffer)
BOOL STDCALL GetProcessTimes(HANDLE hprocess, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime)
ssize_t SSIZE_T
Definition ultibo.h:207
int32_t STDCALL GetTimezoneActiveOffset(void)
Gets the Active Offset from the current Timezone.
BOOL STDCALL GetDiskFreeSpaceExW(const WCHAR *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
BOOL STDCALL SetACP(UINT codepage)
BOOL STDCALL GetHandleInformation(HANDLE hobject, uint32_t *lpdwflags)
long STDCALL InterlockedIncrement(long *lpaddend)
BOOL STDCALL SetEvent(HANDLE hevent)
void STDCALL OutputDebugStringW(const WCHAR *lpoutputstring)
BOOL STDCALL GetDiskFreeSpaceA(const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
BOOL STDCALL MoveFile(const char *lpexistingfilename, const char *lpnewfilename)
BOOL STDCALL CreateHardLink(const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL SleepConditionVariableCS(CONDITION_VARIABLE *conditionvariable, CRITICAL_SECTION *criticalsection, uint32_t dwmilliseconds)
Sleeps on the specified condition variable and releases the specified critical section as an atomic o...
BOOL STDCALL GetVersionExW(OSVERSIONINFOW *lpversioninformation)
unsigned char BYTE
Definition ultibo.h:185
BOOL STDCALL DeleteFileA(const char *lpfilename)
BOOL STDCALL IsDriveValid(uint8_t drive)
struct _BITMAPINFO BITMAPINFO
BOOL STDCALL SetEnvironmentVariable(const char *lpname, const char *lpvalue)
FILETIME STDCALL UnixTimeToFileTime(time_t unixtime)
Convert a Unix/Linux time value to a FileTime value.
unsigned char UCHAR
Definition ultibo.h:189
uint32_t STDCALL WaitForMultipleObjectsEx(uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds, BOOL balertable)
int64_t LONGLONG
Definition ultibo.h:201
char *STDCALL lstrcatA(char *lpstring1, char *lpstring2)
HANDLE STDCALL FindFirstFileA(const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata)
HGLOBAL STDCALL GlobalHandle(void *pmem)
BOOL STDCALL OemToAnsi(char *lpszsrc, char *lpszdst)
BOOL STDCALL CreateDirectoryA(const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
ULONG_PTR DWORD_PTR
Definition ultibo.h:198
int STDCALL lstrlenA(char *lpstring)
BOOL STDCALL DuplicateHandle(HANDLE hsourceprocesshandle, HANDLE hsourcehandle, HANDLE htargetprocesshandle, HANDLE *lptargethandle, uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwoptions)
BOOL STDCALL FreeEnvironmentStringsA(char *pstr)
struct _MEMORYSTATUS MEMORYSTATUS
uint32_t STDCALL ResumeThread(HANDLE hthread)
BOOL STDCALL QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount)
Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp ...
BOOL STDCALL CharToOemW(WCHAR *lpszsrc, char *lpszdst)
char *STDCALL lstrcpyn(char *lpstring1, char *lpstring2, int imaxlength)
struct _BITMAP BITMAP
uint32_t STDCALL GetShortPathNameW(const WCHAR *lpszlongpath, WCHAR *lpszshortpath, uint32_t cchbuffer)
enum _FILE_SYS_TYPE FILE_SYS_TYPE
BOOL STDCALL GetCPInfoExW(UINT codepage, uint32_t dwflags, CPINFOEXW *lpcpinfoex)
uint32_t STDCALL CharLowerBuffW(WCHAR *lpsz, uint32_t cchlength)
BOOL STDCALL PulseEvent(HANDLE hevent)
UINT STDCALL GlobalFlags(HGLOBAL hmem)
unsigned short USHORT
Definition ultibo.h:190
BOOL STDCALL CopyFileW(const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename, BOOL bfailifexists)
uint16_t STDCALL WordSwap(uint16_t value)
BOOL STDCALL OemToChar(char *lpszsrc, char *lpszdst)
HGLOBAL STDCALL GlobalFree(HGLOBAL hmem)
uint32_t STDCALL Ror32(uint32_t value, uint8_t count)
struct _RTL_CRITICAL_SECTION RTL_CRITICAL_SECTION
Definition ultibo.h:429
BOOL STDCALL GetVolumeInformationA(const char *lprootpathname, char *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, char *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize)
struct _MSG MSG
BOOL STDCALL VirtualFree(void *lpaddress, SIZE_T dwsize, uint32_t dwfreetype)
BOOL STDCALL WriteFile(HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestowrite, DWORD *lpnumberofbyteswritten, OVERLAPPED *lpoverlapped)
BOOL STDCALL GetDiskFreeSpaceW(const WCHAR *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
uint32_t STDCALL GetParamValue(const char *param, char *value, uint32_t len)
Get the value of the specified parameter from the command line.
void STDCALL MoveMemory(void *destination, void *source, SIZE_T length)
int64_t STDCALL Not64(int64_t *value)
void STDCALL DeleteConditionVariable(CONDITION_VARIABLE *conditionvariable)
Destroy a condition variable.
uint32_t STDCALL GetCurrentProcessId(void)
ssize_t LONG_PTR
Definition ultibo.h:196
uint32_t STDCALL ExpandEnvironmentStrings(const char *lpsrc, char *lpdst, uint32_t nsize)
uint32_t STDCALL TlsAllocEx(BOOL bfree)
FILETIME STDCALL RoundFileTime(FILETIME *filetime)
Round FileTime to nearest 2 seconds for compatibility with FileDate.
BOOL STDCALL FileTimeToDosDateTime(FILETIME *lpfiletime, uint16_t *lpfatdate, uint16_t *lpfattime)
Convert a FileTime value to a DOS date and time value.
BOOL STDCALL GetVolumeInformation(const char *lprootpathname, char *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, char *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize)
BOOL STDCALL SetDriveSerial(uint8_t drive, uint32_t serial)
void *STDCALL TlsGetValue(uint32_t dwtlsindex)
BOOL STDCALL SetEndOfFile(HANDLE hfile)
BOOL STDCALL SetEnvironmentVariableW(const WCHAR *lpname, const WCHAR *lpvalue)
UINT STDCALL GetConsoleCP(void)
struct _IO_COUNTERS IO_COUNTERS
uint32_t STDCALL GetLongPathName(const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer)
LRESULT STDCALL SendMessage(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam)
BOOL STDCALL GetVolumeInformationW(const WCHAR *lprootpathname, WCHAR *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, WCHAR *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize)
BOOL STDCALL FreeEnvironmentStringsW(WCHAR *pstr)
uint32_t STDCALL GetLogicalDriveStrings(uint32_t nbufferlength, char *lpbuffer)
BOOL STDCALL TzSpecificLocalTimeToSystemTime(TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lplocaltime, SYSTEMTIME *lpuniversaltime)
BOOL STDCALL OemToCharBuffW(char *lpszsrc, WCHAR *lpszdst, uint32_t cchdstlength)
char *STDCALL lstrcat(char *lpstring1, char *lpstring2)
BOOL STDCALL GetComputerNameW(WCHAR *lpbuffer, uint32_t *nsize)
int STDCALL Max(int a, int b)
BOOL STDCALL CreateSymbolicLinkA(const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags)
void STDCALL GetDriveData(uint8_t drive, DRIVE_DATA *data)
BOOL STDCALL GetCPInfoExA(UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex)
void STDCALL ExitProcess(UINT uexitcode)
char *STDCALL CharUpperA(char *lpsz)
uint32_t STDCALL GetEnvironmentVariable(const char *lpname, char *lpbuffer, uint32_t nsize)
_DRIVE_TYPE
Definition ultibo.h:689
@ dtRAMDRIVE
Definition ultibo.h:697
@ dtFIXED
Definition ultibo.h:692
@ dtSUBSTITUTED
Definition ultibo.h:696
@ dtNETWORK
Definition ultibo.h:695
@ dtREMOVABLE
Definition ultibo.h:694
@ dtINVALID
Definition ultibo.h:691
@ dtFLOPPY
Definition ultibo.h:693
@ dtCDROM
Definition ultibo.h:698
@ dtUNKNOWN
Definition ultibo.h:690
WCHAR *STDCALL GetCommandLineW(void)
HANDLE HGLOBAL
Definition ultibo.h:211
LRESULT STDCALL SendMessageTimeout(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam, UINT fuflags, UINT utimeout, DWORD_PTR *lpdwresult)
void STDCALL FatalExit(int exitcode)
HANDLE STDCALL OpenSemaphoreA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
uint32_t STDCALL CharUpperBuffA(char *lpsz, uint32_t cchlength)
char *STDCALL GetCommandLineA(void)
void STDCALL Sleep(uint32_t dwmilliseconds)
WIN32_FIND_DATAA WIN32_FIND_DATA
Definition ultibo.h:340
uint32_t STDCALL GetShortPathNameA(const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer)
BOOL STDCALL IsParamPresent(const char *param)
Check if the specified parameter is present in the command line.
FILETIME STDCALL FileDateToFileTime(int filedate)
Convert a DOS date value to a FileTime value.
BOOL STDCALL GetVersionEx(OSVERSIONINFOA *lpversioninformation)
struct _MEMORYSTATUSEX MEMORYSTATUSEX
uint32_t STDCALL GetTimezoneDaylightStart(char *description, uint32_t len)
Get the description of the daylight time start for the current Timezone.
HANDLE STDCALL CreateMutexA(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname)
void *STDCALL GlobalLock(HGLOBAL hmem)
uint32_t STDCALL LongSwap(uint32_t value)
void STDCALL DeleteCriticalSection(CRITICAL_SECTION *lpcriticalsection)
void STDCALL SetFileApisToOEM(void)
BOOL STDCALL SetDriveLabel(uint8_t drive, const char *label)
int STDCALL FileTimeToFileDate(FILETIME *filetime)
Convert a FileTime value to a DOS date value.
uint32_t STDCALL QueryDosDeviceW(const WCHAR *lpdevicename, WCHAR *lptargetpath, uint32_t ucchmax)
BOOL STDCALL RemoveDirectoryW(const WCHAR *lppathname)
QUAD UQUAD
Definition ultibo.h:225
void *STDCALL InterlockedCompareExchangePointer(void *destination, void *exchange, void *comperand)
HLOCAL STDCALL LocalHandle(void *pmem)
BOOL STDCALL SetComputerNameExA(COMPUTER_NAME_FORMAT nametype, const char *lpbuffer)
BOOL STDCALL WaitMessage(void)
BOOL STDCALL OemToCharW(char *lpszsrc, WCHAR *lpszdst)
BOOL STDCALL PostMessage(HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam)
BOOL STDCALL ReadFile(HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestoread, DWORD *lpnumberofbytesread, OVERLAPPED *lpoverlapped)
uint32_t STDCALL GetFinalPathNameByHandleA(HANDLE hfile, char *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags)
Retrieves the final path for the specified open file handle.
BOOL STDCALL GetNumaProcessorNode(uint8_t *processor, uint8_t *nodenumber)
void STDCALL OutputDebugString(const char *lpoutputstring)
uint32_t STDCALL WaitForMultipleObjects(uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds)
uint32_t STDCALL WideCharToString(const WCHAR *buffer, char *string, uint32_t len)
A replacement for WideCharToString in System unit to allow cross platform compatibility.
struct _RGBTRIPLE RGBTRIPLE
enum _DRIVE_TYPE DRIVE_TYPE
UINT STDCALL LocalFlags(HLOCAL hmem)
int64_t STDCALL And64(int64_t *value1, int64_t *value2)
BOOL STDCALL BufferSwap(void *buffer, uint32_t size)
Swap each word in the buffer supplied up to size.
LCID STDCALL GetThreadLocale(void)
void STDCALL LeaveCriticalSection(CRITICAL_SECTION *lpcriticalsection)
HANDLE STDCALL CreateThread(SECURITY_ATTRIBUTES *lpthreadattributes, uint32_t dwstacksize, THREAD_START_ROUTINE lpstartaddress, void *lpparameter, uint32_t dwcreationflags, DWORD *lpthreadid)
struct _CIEXYZ CIEXYZ
BOOL STDCALL SystemTimeToTzSpecificLocalTime(TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lpuniversaltime, SYSTEMTIME *lplocaltime)
UINT STDCALL GetOEMCP(void)
WCHAR *STDCALL GetEnvironmentStringsW(void)
uint32_t STDCALL WideCharLenToString(const WCHAR *buffer, int length, char *string, uint32_t len)
A replacement for WideCharLenToString in System unit to allow cross platform compatibility.
BOOL STDCALL FlushInstructionCache(HANDLE hprocess, void *lpbaseaddress, uint32_t dwsize)
enum _COMPUTER_NAME_FORMAT COMPUTER_NAME_FORMAT
UINT STDCALL GetACP(void)
int STDCALL lstrcmpW(WCHAR *lpstring1, WCHAR *lpstring2)
HANDLE STDCALL CreateSemaphore(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname)
BOOL STDCALL FileTimeToSystemTime(FILETIME *lpfiletime, SYSTEMTIME *lpsystemtime)
Convert a FileTime value to a SystemTime value.
BOOL STDCALL DefineDosDeviceA(uint32_t dwflags, const char *lpdevicename, const char *lptargetpath)
BOOL STDCALL FreeEnvironmentStrings(char *pstr)
uint32_t STDCALL GetCurrentDirectoryA(uint32_t nbufferlength, char *lpbuffer)
FILETIME STDCALL Uptime(void)
Get the current system up time as a FileTime value.
HANDLE STDCALL OpenMutexW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
struct _LOCKS_LIST_ENTRY LOCKS_LIST_ENTRY
BOOL STDCALL ShutdownComputer(uint32_t delay)
uint32_t STDCALL GetCurrentThreadId(void)
struct _OSVERSIONINFOW OSVERSIONINFOW
BOOL STDCALL GetComputerNameA(char *lpbuffer, uint32_t *nsize)
BOOL STDCALL AreFileApisANSI(void)
BOOL STDCALL RestartComputer(uint32_t delay)
BOOL STDCALL DefineDosDeviceW(uint32_t dwflags, const WCHAR *lpdevicename, const WCHAR *lptargetpath)
BOOL STDCALL OemToCharA(char *lpszsrc, char *lpszdst)
LCID STDCALL GetUserDefaultLCID(void)
BOOL STDCALL FindCloseFile(HANDLE hfindfile)
BOOL STDCALL SetProcessAffinityMask(HANDLE hprocess, DWORD_PTR dwprocessaffinitymask)
DWORD_PTR STDCALL GetThreadAffinityMask(HANDLE hthread)
int STDCALL lstrlenW(WCHAR *lpstring)
struct _WIN32_FIND_STREAM_DATA WIN32_FIND_STREAM_DATA
WCHAR *STDCALL lstrcpynW(WCHAR *lpstring1, WCHAR *lpstring2, int imaxlength)
uint32_t STDCALL GetEnvironmentVariableA(const char *lpname, char *lpbuffer, uint32_t nsize)
union _LARGE_INTEGER LARGE_INTEGER
BOOL STDCALL FlushFileBuffers(HANDLE hfile)
BOOL STDCALL SetCurrentDrive(const char *drive)
HANDLE HLOCAL
Definition ultibo.h:210
HANDLE STDCALL CreateMutexW(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const WCHAR *lpname)
HANDLE STDCALL CreateFileW(const WCHAR *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile)
uint32_t STDCALL GetDriveTotalSpace(uint8_t drive)
int STDCALL GetThreadPriority(HANDLE hthread)
BOOL STDCALL ResetEvent(HANDLE hevent)
int STDCALL lstrcmpiW(WCHAR *lpstring1, WCHAR *lpstring2)
HANDLE STDCALL CreateMutex(SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname)
BOOL STDCALL LocalUnlock(HLOCAL hmem)
OSVERSIONINFOA OSVERSIONINFO
Definition ultibo.h:286
DRIVE_TYPE STDCALL GetDriveType(uint8_t drive)
BOOL STDCALL SetComputerName(const char *lpcomputername)
uint32_t STDCALL GetDriveLabel(uint8_t drive, char *label, uint32_t len)
BOOL STDCALL GetExitCodeThread(HANDLE hthread, uint32_t *lpexitcode)
BOOL STDCALL GetDiskFreeSpace(const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
BOOL STDCALL SetEnvironmentVariableA(const char *lpname, const char *lpvalue)
BOOL STDCALL CreateHardLinkW(const WCHAR *lpfilename, const WCHAR *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
uint32_t STDCALL MinEx(uint32_t a, uint32_t b)
WCHAR *STDCALL lstrcpyW(WCHAR *lpstring1, WCHAR *lpstring2)
double_t STDCALL GetTimezoneStandardDate(void)
Get the next date of the standard time start for the current Timezone.
BOOL STDCALL DeleteFileW(const WCHAR *lpfilename)
struct _RTL_CONDITION_VARIABLE RTL_CONDITION_VARIABLE
uint32_t STDCALL GetCurrentDirectory(uint32_t nbufferlength, char *lpbuffer)
BOOL STDCALL GetVersionExA(OSVERSIONINFOA *lpversioninformation)
BOOL STDCALL GetComputerName(char *lpbuffer, uint32_t *nsize)
void STDCALL SetTimezoneDaylightOffset(int32_t offset)
Sets the Daylight Offset for the current Timezone.
uint32_t STDCALL GetLongPathNameW(const WCHAR *lpszshortpath, WCHAR *lpszlongpath, uint32_t cchbuffer)
BOOL STDCALL GetProcessAffinityMask(HANDLE hprocess, DWORD_PTR *lpprocessaffinitymask, DWORD_PTR *lpsystemaffinitymask)
UINT_PTR WPARAM
Definition ultibo.h:215
uint32_t STDCALL GUIDToString(GUID *value, char *string, uint32_t len)
Convert a TGUID to a string representation.
struct _QUAD QUAD
int32_t STDCALL GetTimezoneStandardOffset(void)
Gets the Standard Offset from the current Timezone.
ssize_t INT_PTR
Definition ultibo.h:194
SIZE_T STDCALL GetLargePageMinimum(void)
BOOL STDCALL GetFileSizeEx(HANDLE hfile, LARGE_INTEGER *lpfilesize)
struct _BITMAPINFOHEADER BITMAPINFOHEADER
uint32_t STDCALL SetFilePointer(HANDLE hfile, long ldistancetomove, long *lpdistancetomovehigh, uint32_t dwmovemethod)
BOOL STDCALL SetComputerNameExW(COMPUTER_NAME_FORMAT nametype, const WCHAR *lpbuffer)
BOOL STDCALL TlsSetValue(uint32_t dwtlsindex, void *lptlsvalue)
FILETIME STDCALL ConvertFileTime(FILETIME *filetime, int offset, BOOL local)
Convert a FileTime value to a specified offset (Local or UTC).
void STDCALL GetSystemInfo(SYSTEM_INFO *lpsysteminfo)
int STDCALL Min(int a, int b)
BOOL STDCALL CharToOemBuffA(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
HLOCAL STDCALL LocalReAlloc(HLOCAL hmem, SIZE_T ubytes, UINT uflags)
uint32_t STDCALL GetLongPathNameA(const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer)
int32_t STDCALL GetTimeAdjust(void)
Gets the time adjustment used internally.
void *STDCALL LocalLock(HLOCAL hmem)
BOOL STDCALL SetComputerNameEx(COMPUTER_NAME_FORMAT nametype, const char *lpbuffer)
BOOL STDCALL SetVolumeLabelA(const char *lprootpathname, const char *lpvolumename)
char *STDCALL CharLower(char *lpsz)
uint32_t STDCALL GetFinalPathNameByHandle(HANDLE hfile, char *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags)
Retrieves the final path for the specified open file handle.
uint32_t STDCALL GetCurrentTimezone(char *name, uint32_t len)
Get the name of the current Timezone.
HANDLE STDCALL CreateSemaphoreW(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const WCHAR *lpname)
BOOL STDCALL VirtualLock(void *lpaddress, SIZE_T dwsize)
FILETIME STDCALL AdjustedTimeToFileTime(FILETIME *filetime)
Convert a DST adjusted FileTime value to a local FileTime value.
HANDLE STDCALL CreateEvent(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname)
char *STDCALL lstrcpy(char *lpstring1, char *lpstring2)
HANDLE STDCALL CreateEventA(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname)
uint32_t STDCALL ExpandEnvironmentStringsW(const WCHAR *lpsrc, WCHAR *lpdst, uint32_t nsize)
struct _BITMAPCOREINFO BITMAPCOREINFO
BOOL STDCALL CreateDirectoryW(const WCHAR *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
HANDLE STDCALL CreateEventW(SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const WCHAR *lpname)
uint32_t STDCALL GetLogicalDriveStringsA(uint32_t nbufferlength, char *lpbuffer)
void STDCALL FillMemory(void *destination, SIZE_T length, uint8_t fill)
struct _DRIVE_DATA DRIVE_DATA
uint32_t STDCALL CharUpperBuff(char *lpsz, uint32_t cchlength)
BOOL STDCALL SetComputerNameA(const char *lpcomputername)
int64_t STDCALL Max64(int64_t *a, int64_t *b)
BOOL STDCALL SetConsoleCP(UINT wcodepageid)
BOOL STDCALL SwitchToThread(void)
uint32_t STDCALL GetEnvironmentVariableW(const WCHAR *lpname, WCHAR *lpbuffer, uint32_t nsize)
int64_t STDCALL GetDriveTotalSpaceEx(uint8_t drive)
double_t STDCALL LocalFileTimeToDateTime(FILETIME *filetime)
Convert a FileTime value to a DateTime value.
void *STDCALL InterlockedExchangePointer(void *target, void *value)
uint32_t STDCALL TlsAlloc(void)
int STDCALL WideCharToMultiByte(UINT codepage, uint32_t dwflags, WCHAR *lpwidecharstr, int cchwidechar, char *lpmultibytestr, int cbmultibyte, char *lpdefaultchar, BOOL *lpuseddefaultchar)
uint32_t ULONG
unsigned long // In Windows ULONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler
Definition ultibo.h:191
uint32_t STDCALL QueryDosDevice(const char *lpdevicename, char *lptargetpath, uint32_t ucchmax)
BOOL STDCALL SetSystemTime(SYSTEMTIME *lpsystemtime)
Set the current system time in UTC.
void STDCALL ZeroMemory(void *destination, SIZE_T length)
HANDLE STDCALL CreateSemaphoreA(SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname)
BOOL STDCALL GetFileInformationByHandle(HANDLE hfile, BY_HANDLE_FILE_INFORMATION *lpfileinformation)
uint32_t STDCALL GetDriveSerial(uint8_t drive)
BOOL STDCALL SetCurrentTimezone(const char *name)
Set the current Timezone by name.
char *STDCALL CharUpper(char *lpsz)
BOOL STDCALL GlobalUnlock(HGLOBAL hmem)
BOOL STDCALL SetSystemDefaultLCID(LCID localeid)
BOOL STDCALL FileTimeToLocalFileTime(FILETIME *lpfiletime, FILETIME *lplocalfiletime)
Convert a FileTime in UTC to a FileTime in Local time.
char *STDCALL CharLowerA(char *lpsz)
int STDCALL MultiByteToWideChar(UINT codepage, uint32_t dwflags, char *lpmultibytestr, int cbmultibyte, WCHAR *lpwidecharstr, int cchwidechar)
BOOL STDCALL GetDriveInformation(const char *path, uint32_t *clustersize, int64_t *totalclustercount, int64_t *freeclustercount)
int32_t STDCALL GetTimezoneDaylightOffset(void)
Gets the Daylight Offset from the current Timezone.
uint32_t STDCALL GetVersion(void)
struct _MEMORY_BASIC_INFORMATION MEMORY_BASIC_INFORMATION
HANDLE STDCALL OpenMutex(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
void STDCALL InitializeCriticalSection(CRITICAL_SECTION *lpcriticalsection)
FILETIME STDCALL DateTimeToSystemFileTime(double_t datetime)
Convert a DateTime value to a FileTime value.
BOOL STDCALL AnsiToOemBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
uint32_t STDCALL GenerateNameHash(const char *name, int size)
Sum of (byte value + 1) * (position + 257) for all bytes in uppercase string.
uint32_t STDCALL SuspendThread(HANDLE hthread)
HANDLE STDCALL OpenEventA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
uint32_t STDCALL GetLogicalDrives(void)
HANDLE STDCALL FindFirstFileW(const WCHAR *lpfilename, WIN32_FIND_DATAW *lpfindfiledata)
BOOL STDCALL MoveFileW(const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename)
int32_t FXPT16DOT16
Definition ultibo.h:493
BOOL STDCALL CreateHardLinkA(const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
uint32_t STDCALL GetDriveAttr(uint8_t drive)
void STDCALL GetLocalTime(SYSTEMTIME *lpsystemtime)
Get the current local time.
struct _BITMAPFILEHEADER BITMAPFILEHEADER
BOOL STDCALL CharToOem(char *lpszsrc, char *lpszdst)
void *STDCALL VirtualAlloc(void *lpaddress, SIZE_T dwsize, uint32_t flallocationtype, uint32_t flprotect)
BOOL STDCALL SetCurrentDirectory(const char *lppathname)
BOOL STDCALL CharToOemBuffW(WCHAR *lpszsrc, char *lpszdst, uint32_t cchdstlength)
int64_t STDCALL Int64Swap(int64_t *value)
WCHAR *STDCALL CharUpperW(WCHAR *lpsz)
BOOL STDCALL InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount)
BOOL STDCALL SetFileTime(HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime)
double_t STDCALL SystemFileTimeToDateTime(FILETIME *filetime)
Convert a FileTime value to a DateTime value.
uint32_t STDCALL GetLogicalDriveStringsW(uint32_t nbufferlength, WCHAR *lpbuffer)
uint32_t STDCALL GetFullPathNameA(const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart)
uint32_t STDCALL QueryDosDeviceA(const char *lpdevicename, char *lptargetpath, uint32_t ucchmax)
WCHAR *STDCALL lstrcatW(WCHAR *lpstring1, WCHAR *lpstring2)
uint32_t STDCALL MaxEx(uint32_t a, uint32_t b)
int STDCALL CompareString(LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
size_t SIZE_T
Definition ultibo.h:206
UINT STDCALL GetDriveTypeW(const WCHAR *lprootpathname)
int STDCALL lstrcmpiA(char *lpstring1, char *lpstring2)
uint32_t STDCALL GetValidDrives(void)
BOOL STDCALL GetDiskFreeSpaceExA(const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
HGLOBAL STDCALL GlobalReAlloc(HGLOBAL hmem, SIZE_T dwbytes, UINT uflags)
void STDCALL SetCurrentTime(FILETIME *time)
Set the current system time in UTC from a FileTime value.
BOOL STDCALL GetNumaHighestNodeNumber(ULONG *highestnodenumber)
struct _SYSTEM_INFO SYSTEM_INFO
BOOL STDCALL SetVolumeLabel(const char *lprootpathname, const char *lpvolumename)
struct _WIN32_FIND_DATAW WIN32_FIND_DATAW
struct _GUID GUID
BOOL STDCALL FindNextFileW(HANDLE hfindfile, WIN32_FIND_DATAW *lpfindfiledata)
uint32_t STDCALL SetCriticalSectionSpinCount(CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount)
double_t STDCALL GetTimezoneDaylightDate(void)
Get the next date of the daylight time start for the current Timezone.
void STDCALL SetTimeAdjust(int32_t adjust)
Sets the time adjustment used internally.
BOOL STDCALL GetComputerNameExA(COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize)
void STDCALL ExitThread(uint32_t dwexitcode)
double_t STDCALL FileTimeToDateTime(FILETIME *filetime)
Convert a FileTime value to a DateTime value.
uint32_t STDCALL CharLowerBuff(char *lpsz, uint32_t cchlength)
_STREAM_INFO_LEVELS
Definition ultibo.h:344
@ FindStreamInfoMaxInfoLevel
Definition ultibo.h:346
@ FindStreamInfoStandard
Definition ultibo.h:345
size_t UINT_PTR
Definition ultibo.h:195
BOOL STDCALL GetThreadTimes(HANDLE hthread, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime)
uint32_t STDCALL GetFullPathName(const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart)
FILETIME STDCALL DateTimeToLocalFileTime(double_t datetime)
Convert a DateTime value to a FileTime value.
struct _CIEXYZTRIPLE CIEXYZTRIPLE
WCHAR *STDCALL CharLowerW(WCHAR *lpsz)
BOOL STDCALL SetFileShortNameW(HANDLE hfile, const WCHAR *lpshortname)
uint64_t ULONGLONG
Definition ultibo.h:202
uint8_t STDCALL GetPathDrive(const char *path)
uint32_t STDCALL GetShortPathName(const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer)
long STDCALL InterlockedDecrement(long *lpaddend)
BOOL STDCALL SetVolumeLabelW(const WCHAR *lprootpathname, const WCHAR *lpvolumename)
BOOL STDCALL SetCurrentDirectoryW(const WCHAR *lppathname)
BOOL STDCALL IsValidCodePage(UINT codepage)
uint32_t STDCALL GenerateStringHash(const char *value, BOOL casesensitive)
Sum of (byte value + 1) * (position + 257) for all bytes in string.
BOOL STDCALL CreateDirectory(const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
void STDCALL CopyMemory(void *destination, void *source, SIZE_T length)
long STDCALL InterlockedCompareExchange(long *destination, long exchange, long comperand)
BOOL STDCALL SetTimeZoneInformation(TIME_ZONE_INFORMATION *lptimezoneinformation)
uint32_t STDCALL GetFullPathNameW(const WCHAR *lpfilename, uint32_t nbufferlength, WCHAR *lpbuffer, WCHAR *lpfilepart)
BOOL STDCALL SetCurrentDirectoryA(const char *lppathname)
BOOL STDCALL SetHandleInformation(HANDLE hobject, uint32_t dwmask, uint32_t dwflags)
uint32_t STDCALL GetDriveFreeSpace(uint8_t drive)
BOOL STDCALL DosDateTimeToFileTime(uint16_t wfatdate, uint16_t wfattime, FILETIME *lpfiletime)
Convert a DOS date and time value to a FileTime value.
RTL_CONDITION_VARIABLE CONDITION_VARIABLE
Definition ultibo.h:464
BOOL STDCALL SetFileAttributes(const char *lpfilename, uint32_t dwfileattributes)
BOOL STDCALL LocalFileTimeToFileTime(FILETIME *lplocalfiletime, FILETIME *lpfiletime)
Convert a FileTime in Local time to a FileTime in UTC.
BOOL STDCALL TryEnterCriticalSection(CRITICAL_SECTION *lpcriticalsection)
long STDCALL InterlockedExchangeAdd(long *addend, long value)
time_t STDCALL FileTimeToUnixTime(FILETIME *filetime)
Convert a FileTime value to a Unix/Linux time value.
int STDCALL lstrlen(char *lpstring)
void STDCALL WakeAllConditionVariable(CONDITION_VARIABLE *conditionvariable)
Wake all threads waiting on the specified condition variable.
UINT STDCALL GetDriveTypeA(const char *lprootpathname)
BOOL STDCALL CreateSymbolicLink(const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags)
BOOL STDCALL SetOEMCP(UINT codepage)
DWORD_PTR STDCALL SetThreadAffinityMask(HANDLE hthread, DWORD_PTR dwthreadaffinitymask)
char *STDCALL lstrcpyA(char *lpstring1, char *lpstring2)
uint32_t STDCALL WaitForSingleObjectEx(HANDLE hhandle, uint32_t dwmilliseconds, BOOL balertable)
BOOL STDCALL SetThreadLocale(LCID localeid)
enum _STREAM_INFO_LEVELS STREAM_INFO_LEVELS
uint32_t STDCALL GetLastError(void)
Get the last error value for the calling thread.
int STDCALL CompareStringA(LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
uint32_t STDCALL GetValidDriveNames(char *names, uint32_t len)
uint8_t STDCALL GetCurrentDrive(void)
BOOL STDCALL CharToOemBuff(char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
int STDCALL lstrcmpA(char *lpstring1, char *lpstring2)
BOOL STDCALL ExitUltiboEx(UINT uflags, uint32_t dwreserved)
HANDLE STDCALL OpenSemaphoreW(uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
_COMPUTER_NAME_FORMAT
Definition ultibo.h:305
@ ComputerNameNetBIOS
Definition ultibo.h:306
@ ComputerNameDnsFullyQualified
Definition ultibo.h:309
@ ComputerNamePhysicalDnsHostname
Definition ultibo.h:311
@ ComputerNameDnsDomain
Definition ultibo.h:308
@ ComputerNameDnsHostname
Definition ultibo.h:307
@ ComputerNameMax
Definition ultibo.h:314
@ ComputerNamePhysicalDnsFullyQualified
Definition ultibo.h:313
@ ComputerNamePhysicalNetBIOS
Definition ultibo.h:310
@ ComputerNamePhysicalDnsDomain
Definition ultibo.h:312
HANDLE STDCALL OpenMutexA(uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
void STDCALL GetSystemTimeAsFileTime(FILETIME *lpsystemtimeasfiletime)
Get the current system time in UTC as a FileTime value.
struct _RGBQUAD RGBQUAD
struct _RECT RECT
BOOL STDCALL ReleaseSemaphore(HANDLE hsemaphore, long lreleasecount, long *lppreviouscount)
struct _RTL_CRITICAL_SECTION_DEBUG RTL_CRITICAL_SECTION_DEBUG
BOOL STDCALL SetComputerNameW(const WCHAR *lpcomputername)
union _ULARGE_INTEGER ULARGE_INTEGER
HANDLE STDCALL FindFirstFile(const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata)
uint32_t STDCALL(* THREAD_START_ROUTINE)(void *lpthreadparameter)
Definition ultibo.h:393
UINT STDCALL GetDiskType(const char *lprootpathname)
GetDriveType - Already defined below.
Definition ultibo.h:240
struct _LARGE_INTEGER::@374221332373267040030033153241155114317214321106 u
DWORD LowPart
Definition ultibo.h:242
LONGLONG QuadPart
Definition ultibo.h:249
LONG HighPart
Definition ultibo.h:243
Definition ultibo.h:253
DWORD HighPart
Definition ultibo.h:256
DWORD LowPart
Definition ultibo.h:255
ULONGLONG QuadPart
Definition ultibo.h:262
struct _ULARGE_INTEGER::@336025125037264047112356013304153263307063151330 u