26#ifndef _ULTIBO_ULTIBO_H
27#define _ULTIBO_ULTIBO_H
41#define MAXLONGLONG 0x7fffffffffffffff
44#define CREATE_SUSPENDED 0x00000004
47#define PM_NOREMOVE 0x0000
48#define PM_REMOVE 0x0001
49#define PM_NOYIELD 0x0002
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
63#define DRIVE_UNKNOWN 0
64#define DRIVE_NO_ROOT_DIR 1
65#define DRIVE_REMOVABLE 2
69#define DRIVE_RAMDISK 6
72#define SYMBOLIC_LINK_FLAG_FILE 0x00000000
73#define SYMBOLIC_LINK_FLAG_DIRECTORY 0x00000001
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
86#define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)
87#define LPTR (LMEM_FIXED | LMEM_ZEROINIT)
89#define NONZEROLHND (LMEM_MOVEABLE)
90#define NONZEROLPTR (LMEM_FIXED)
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
108#define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)
109#define GPTR (GMEM_FIXED | GMEM_ZEROINIT)
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
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
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
158#define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
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
170#define VER_PLATFORM_ULTIBO 10011
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
655static const FILETIME TIME_NULL_TIME = {0x00000000, 0x00000000};
658#define DEFAULT_DRIVE 0
659#define INVALID_DRIVE 0
669#define MAX_FAT_PATH 64
670#define MAX_FAT_FILE 12
671#define MAX_VFAT_PATH 260
672#define MAX_VFAT_FILE 255
674#define FAT_PATH_CHAR "\\"
675#define FAT_NAME_CHAR ":"
676#define FAT_FILE_CHAR "."
677#define FAT_DRIVE_CHAR ":"
679#define UNIX_PATH_CHAR "/"
680#define UNIX_NAME_CHAR ":"
681#define UNIX_FILE_CHAR "."
684#define MACRO_FILENAME_CHAR "%"
685#define WILDCARD_FILENAME_CHAR "*"
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);
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);
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
RGBTRIPLE bmciColors[1]
Definition ultibo.h:624
BITMAPCOREHEADER bmciHeader
Definition ultibo.h:623
BITMAPINFOHEADER bmiHeader
Definition ultibo.h:617
RGBQUAD bmiColors[1]
Definition ultibo.h:618
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
CIEXYZ ciexyzGreen
Definition ultibo.h:507
CIEXYZ ciexyzBlue
Definition ultibo.h:508
CIEXYZ ciexyzRed
Definition ultibo.h:506
FXPT2DOT30 ciexyzX
Definition ultibo.h:499
FXPT2DOT30 ciexyzY
Definition ultibo.h:500
FXPT2DOT30 ciexyzZ
Definition ultibo.h:501
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
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
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
struct _LOCKS_LIST_ENTRY * Blink
Definition ultibo.h:425
struct _LOCKS_LIST_ENTRY * Flink
Definition ultibo.h:424
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
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
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
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
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
LONG x
Definition ultibo.h:406
LONG y
Definition ultibo.h:407
double_t donotusethisfield
Definition ultibo.h:221
LONG left
Definition ultibo.h:398
LONG right
Definition ultibo.h:400
LONG bottom
Definition ultibo.h:401
LONG top
Definition ultibo.h:399
BYTE rgbRed
Definition ultibo.h:534
BYTE rgbBlue
Definition ultibo.h:532
BYTE rgbGreen
Definition ultibo.h:533
BYTE rgbReserved
Definition ultibo.h:535
BYTE rgbtBlue
Definition ultibo.h:525
BYTE rgbtRed
Definition ultibo.h:527
BYTE rgbtGreen
Definition ultibo.h:526
void * ptr
Definition ultibo.h:461
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
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
void * lpSecurityDescriptor
Definition ultibo.h:388
BOOL bInheritHandle
Definition ultibo.h:389
DWORD nLength
Definition ultibo.h:387
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
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
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)
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)
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)
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)
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.
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
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.
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.
struct _LARGE_INTEGER::@374221332373267040030033153241155114317214321106 u
DWORD LowPart
Definition ultibo.h:242
LONGLONG QuadPart
Definition ultibo.h:249
LONG HighPart
Definition ultibo.h:243
DWORD HighPart
Definition ultibo.h:256
DWORD LowPart
Definition ultibo.h:255
ULONGLONG QuadPart
Definition ultibo.h:262
struct _ULARGE_INTEGER::@336025125037264047112356013304153263307063151330 u