Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
ultibo.h File Reference
#include "ultibo/globaltypes.h"
#include "ultibo/globalconst.h"
#include "ultibo/timezone.h"
#include "ultibo/locale.h"
#include "ultibo/sysutils.h"

Go to the source code of this file.

Data Structures

struct  _QUAD
struct  _GUID
union  _LARGE_INTEGER
union  _ULARGE_INTEGER
struct  _OSVERSIONINFOA
struct  _OSVERSIONINFOW
struct  _SYSTEM_INFO
struct  _WIN32_FIND_DATAW
struct  _WIN32_FIND_STREAM_DATA
struct  _MEMORYSTATUS
struct  _MEMORYSTATUSEX
struct  _SECURITY_ATTRIBUTES
struct  _RECT
struct  _POINT
struct  _MSG
struct  _LOCKS_LIST_ENTRY
struct  _RTL_CRITICAL_SECTION_DEBUG
struct  _RTL_CRITICAL_SECTION
struct  _RTL_CONDITION_VARIABLE
struct  _IO_COUNTERS
struct  _MEMORY_BASIC_INFORMATION
struct  _CIEXYZ
struct  _CIEXYZTRIPLE
struct  _BITMAP
struct  _RGBTRIPLE
struct  _RGBQUAD
struct  _BITMAPCOREHEADER
struct  _BITMAPINFOHEADER
struct  BITMAPV4HEADER
struct  BITMAPV5HEADER
struct  _BITMAPINFO
struct  _BITMAPCOREINFO
struct  _BITMAPFILEHEADER
struct  _BY_HANDLE_FILE_INFORMATION
struct  _DRIVE_DATA

Macros

#define MAXLONGLONG   0x7fffffffffffffff
#define CREATE_SUSPENDED   0x00000004
#define PM_NOREMOVE   0x0000
#define PM_REMOVE   0x0001
#define PM_NOYIELD   0x0002
#define EWX_LOGOFF   0x00000000
#define EWX_SHUTDOWN   0x00000001
#define EWX_REBOOT   0x00000002
#define EWX_FORCE   0x00000004
#define EWX_POWEROFF   0x00000008
#define EWX_FORCEIFHUNG   0x00000010
#define DRIVE_UNKNOWN   0
#define DRIVE_NO_ROOT_DIR   1
#define DRIVE_REMOVABLE   2
#define DRIVE_FIXED   3
#define DRIVE_REMOTE   4
#define DRIVE_CDROM   5
#define DRIVE_RAMDISK   6
#define SYMBOLIC_LINK_FLAG_FILE   0x00000000
 The link target is a file.
#define SYMBOLIC_LINK_FLAG_DIRECTORY   0x00000001
 The link target is a directory.
#define LMEM_FIXED   0x0000
#define LMEM_MOVEABLE   0x0002
#define LMEM_NOCOMPACT   0x0010
#define LMEM_NODISCARD   0x0020
#define LMEM_ZEROINIT   0x0040
#define LMEM_MODIFY   0x0080
#define LMEM_DISCARDABLE   0x0F00
#define LMEM_VALID_FLAGS   0x0F72
#define LMEM_INVALID_HANDLE   0x8000
#define LHND   (LMEM_MOVEABLE | LMEM_ZEROINIT)
#define LPTR   (LMEM_FIXED | LMEM_ZEROINIT)
#define NONZEROLHND   (LMEM_MOVEABLE)
#define NONZEROLPTR   (LMEM_FIXED)
#define GMEM_FIXED   0x0000
#define GMEM_MOVEABLE   0x0002
#define GMEM_NOCOMPACT   0x0010
#define GMEM_NODISCARD   0x0020
#define GMEM_ZEROINIT   0x0040
#define GMEM_MODIFY   0x0080
#define GMEM_DISCARDABLE   0x0100
#define GMEM_NOT_BANKED   0x1000
#define GMEM_SHARE   0x2000
#define GMEM_DDESHARE   0x2000
#define GMEM_NOTIFY   0x4000
#define GMEM_LOWER   GMEM_NOT_BANKED
#define GMEM_VALID_FLAGS   0x7F72
#define GMEM_INVALID_HANDLE   0x8000
#define GHND   (GMEM_MOVEABLE | GMEM_ZEROINIT)
#define GPTR   (GMEM_FIXED | GMEM_ZEROINIT)
#define PAGE_NOACCESS   0x01
#define PAGE_READONLY   0x02
#define PAGE_READWRITE   0x04
#define PAGE_WRITECOPY   0x08
#define PAGE_EXECUTE   0x10
#define PAGE_EXECUTE_READ   0x20
#define PAGE_EXECUTE_READWRITE   0x40
#define PAGE_EXECUTE_WRITECOPY   0x80
#define PAGE_GUARD   0x100
#define PAGE_NOCACHE   0x200
#define PAGE_WRITECOMBINE   0x400
#define MEM_COMMIT   0x1000
#define MEM_RESERVE   0x2000
#define MEM_DECOMMIT   0x4000
#define MEM_RELEASE   0x8000
#define MEM_FREE   0x10000
#define MEM_PRIVATE   0x20000
#define MEM_MAPPED   0x40000
#define MEM_RESET   0x80000
#define MEM_TOP_DOWN   0x100000
#define MEM_WRITE_WATCH   0x200000
#define MEM_PHYSICAL   0x400000
#define MEM_4MB_PAGES   (DWORD)0x80000000
#define SEC_FILE   0x800000
#define SEC_IMAGE   0x1000000
#define SEC_RESERVE   0x4000000
#define SEC_COMMIT   (DWORD)0x8000000
#define SEC_NOCACHE   0x10000000
#define MEM_IMAGE   SEC_IMAGE
#define WRITE_WATCH_FLAG_RESET   0x01
#define MEM_LARGE_PAGES   0x20000000
#define PROCESSOR_ARCHITECTURE_INTEL   0
#define PROCESSOR_ARCHITECTURE_MIPS   1
#define PROCESSOR_ARCHITECTURE_ALPHA   2
#define PROCESSOR_ARCHITECTURE_PPC   3
#define PROCESSOR_ARCHITECTURE_SHX   4
#define PROCESSOR_ARCHITECTURE_ARM   5
#define PROCESSOR_ARCHITECTURE_IA64   6
#define PROCESSOR_ARCHITECTURE_ALPHA64   7
#define PROCESSOR_ARCHITECTURE_MSIL   8
#define PROCESSOR_ARCHITECTURE_AMD64   9
#define PROCESSOR_ARCHITECTURE_UNKNOWN   0xFFFF
#define PROCESSOR_INTEL_386   386
#define PROCESSOR_INTEL_486   486
#define PROCESSOR_INTEL_PENTIUM   586
#define PROCESSOR_INTEL_IA64   2200
#define PROCESSOR_ARM_6   60999
#define PROCESSOR_ARM_7   70999
#define PROCESSOR_ARM_8   80999
#define VER_PLATFORM_ULTIBO   10011
#define DDD_RAW_TARGET_PATH   0x00000001
#define DDD_REMOVE_DEFINITION   0x00000002
#define DDD_EXACT_MATCH_ON_REMOVE   0x00000004
#define DDD_NO_BROADCAST_SYSTEM   0x00000008
#define DDD_LUID_BROADCAST_DRIVE   0x00000010
#define DEFAULT_DRIVE   0
 0 is Current Drive
#define INVALID_DRIVE   0
 Where Current is not appropriate.
#define MIN_DRIVE   1
 1 = A:, 2 = B:, 3 = C:, 26 = Z: etc
#define MAX_DRIVE   26
#define NON_DRIVE   27
 27 for Non Drive (UNC) Path
#define DRIVE_A   1
#define DRIVE_B   2
#define DRIVE_C   3
#define MAX_FAT_PATH   64
#define MAX_FAT_FILE   12
#define MAX_VFAT_PATH   260
#define MAX_VFAT_FILE   255
#define FAT_PATH_CHAR   "\\"
 Path separator.
#define FAT_NAME_CHAR   ":"
 Stream separator.
#define FAT_FILE_CHAR   "."
 Extension separator.
#define FAT_DRIVE_CHAR   ":"
 Drive separator.
#define UNIX_PATH_CHAR   "/"
 Path separator.
#define UNIX_NAME_CHAR   ":"
 Stream separator.
#define UNIX_FILE_CHAR   "."
 Extension separator.
#define MACRO_FILENAME_CHAR   "%"
#define WILDCARD_FILENAME_CHAR   "*"

Typedefs

typedef int INT
typedef int32_t LONG
 long // In Windows LONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler
typedef unsigned char BYTE
typedef unsigned short WORD
typedef unsigned int UINT
typedef unsigned char UCHAR
typedef unsigned short USHORT
typedef uint32_t ULONG
 unsigned long // In Windows ULONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler
typedef ssize_t INT_PTR
typedef size_t UINT_PTR
typedef ssize_t LONG_PTR
typedef size_t ULONG_PTR
typedef ULONG_PTR DWORD_PTR
typedef int64_t LONGLONG
typedef uint64_t ULONGLONG
typedef ULONGLONG DWORDLONG
typedef size_t SIZE_T
typedef ssize_t SSIZE_T
typedef HANDLE HLOCAL
typedef HANDLE HGLOBAL
typedef HANDLE HWND
typedef UINT_PTR WPARAM
typedef LONG_PTR LPARAM
typedef LONG_PTR LRESULT
typedef struct _QUAD QUAD
typedef QUAD UQUAD
typedef struct _GUID GUID
typedef union _LARGE_INTEGER LARGE_INTEGER
typedef union _ULARGE_INTEGER ULARGE_INTEGER
typedef struct _OSVERSIONINFOA OSVERSIONINFOA
typedef struct _OSVERSIONINFOW OSVERSIONINFOW
typedef OSVERSIONINFOA OSVERSIONINFO
typedef struct _SYSTEM_INFO SYSTEM_INFO
typedef enum _COMPUTER_NAME_FORMAT COMPUTER_NAME_FORMAT
typedef struct _WIN32_FIND_DATAW WIN32_FIND_DATAW
typedef WIN32_FIND_DATAA WIN32_FIND_DATA
typedef enum _STREAM_INFO_LEVELS STREAM_INFO_LEVELS
typedef struct _WIN32_FIND_STREAM_DATA WIN32_FIND_STREAM_DATA
typedef struct _MEMORYSTATUS MEMORYSTATUS
typedef struct _MEMORYSTATUSEX MEMORYSTATUSEX
typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES
typedef uint32_t STDCALL(* THREAD_START_ROUTINE) (void *lpthreadparameter)
typedef struct _RECT RECT
typedef struct _POINT POINT
typedef struct _MSG MSG
typedef struct _LOCKS_LIST_ENTRY LOCKS_LIST_ENTRY
typedef struct _RTL_CRITICAL_SECTION RTL_CRITICAL_SECTION
typedef struct _RTL_CRITICAL_SECTION_DEBUG RTL_CRITICAL_SECTION_DEBUG
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION
typedef struct _RTL_CONDITION_VARIABLE RTL_CONDITION_VARIABLE
typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE
typedef struct _IO_COUNTERS IO_COUNTERS
typedef struct _MEMORY_BASIC_INFORMATION MEMORY_BASIC_INFORMATION
typedef int32_t FXPT16DOT16
typedef int32_t FXPT2DOT30
typedef struct _CIEXYZ CIEXYZ
typedef struct _CIEXYZTRIPLE CIEXYZTRIPLE
typedef struct _BITMAP BITMAP
typedef struct _RGBTRIPLE RGBTRIPLE
typedef struct _RGBQUAD RGBQUAD
typedef struct _BITMAPCOREHEADER BITMAPCOREHEADER
typedef struct _BITMAPINFOHEADER BITMAPINFOHEADER
typedef struct _BITMAPINFO BITMAPINFO
typedef struct _BITMAPCOREINFO BITMAPCOREINFO
typedef struct _BITMAPFILEHEADER BITMAPFILEHEADER
typedef struct _BY_HANDLE_FILE_INFORMATION BY_HANDLE_FILE_INFORMATION
typedef enum _DRIVE_TYPE DRIVE_TYPE
typedef enum _FILE_SYS_TYPE FILE_SYS_TYPE
typedef struct _DRIVE_DATA DRIVE_DATA

Enumerations

enum  _COMPUTER_NAME_FORMAT {
  ComputerNameNetBIOS , ComputerNameDnsHostname , ComputerNameDnsDomain , ComputerNameDnsFullyQualified ,
  ComputerNamePhysicalNetBIOS , ComputerNamePhysicalDnsHostname , ComputerNamePhysicalDnsDomain , ComputerNamePhysicalDnsFullyQualified ,
  ComputerNameMax
}
enum  _STREAM_INFO_LEVELS { FindStreamInfoStandard , FindStreamInfoMaxInfoLevel }
enum  _DRIVE_TYPE {
  dtUNKNOWN , dtINVALID , dtFIXED , dtFLOPPY ,
  dtREMOVABLE , dtNETWORK , dtSUBSTITUTED , dtRAMDRIVE ,
  dtCDROM
}
enum  _FILE_SYS_TYPE {
  fsUNKNOWN , fsINVALID , fsFAT12 , fsFAT16 ,
  fsFAT32 , fsEXFAT , fsHPFS , fsNTFS ,
  fsNTFS5 , fsNTFS51 , fsCDFS , fsUDF ,
  fsEXT2 , fsEXT3 , fsEXT4
}

Functions

uint32_t STDCALL GetVersion (void)
BOOL STDCALL GetVersionEx (OSVERSIONINFOA *lpversioninformation)
BOOL STDCALL GetVersionExA (OSVERSIONINFOA *lpversioninformation)
BOOL STDCALL GetVersionExW (OSVERSIONINFOW *lpversioninformation)
void STDCALL GetSystemInfo (SYSTEM_INFO *lpsysteminfo)
void STDCALL GetNativeSystemInfo (SYSTEM_INFO *lpsysteminfo)
SIZE_T STDCALL GetLargePageMinimum (void)
BOOL STDCALL GetComputerName (char *lpbuffer, uint32_t *nsize)
BOOL STDCALL GetComputerNameA (char *lpbuffer, uint32_t *nsize)
BOOL STDCALL GetComputerNameW (WCHAR *lpbuffer, uint32_t *nsize)
BOOL STDCALL SetComputerName (const char *lpcomputername)
BOOL STDCALL SetComputerNameA (const char *lpcomputername)
BOOL STDCALL SetComputerNameW (const WCHAR *lpcomputername)
BOOL STDCALL GetComputerNameEx (COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize)
BOOL STDCALL GetComputerNameExA (COMPUTER_NAME_FORMAT nametype, char *lpbuffer, uint32_t *nsize)
BOOL STDCALL GetComputerNameExW (COMPUTER_NAME_FORMAT nametype, WCHAR *lpbuffer, uint32_t *nsize)
BOOL STDCALL SetComputerNameEx (COMPUTER_NAME_FORMAT nametype, const char *lpbuffer)
BOOL STDCALL SetComputerNameExA (COMPUTER_NAME_FORMAT nametype, const char *lpbuffer)
BOOL STDCALL SetComputerNameExW (COMPUTER_NAME_FORMAT nametype, const WCHAR *lpbuffer)
BOOL STDCALL ExitUltibo (uint32_t dwreserved, UINT ureserved)
BOOL STDCALL ExitUltiboEx (UINT uflags, uint32_t dwreserved)
BOOL STDCALL RestartComputer (uint32_t delay)
BOOL STDCALL ShutdownComputer (uint32_t delay)
FILETIME STDCALL Uptime (void)
 Get the current system up time as a FileTime value.
uint32_t STDCALL GetTickCount (void)
ULONGLONG STDCALL GetTickCount64 (void)
void STDCALL GetSystemTime (SYSTEMTIME *lpsystemtime)
 Get the current system time in UTC.
void STDCALL GetSystemTimeAsFileTime (FILETIME *lpsystemtimeasfiletime)
 Get the current system time in UTC as a FileTime value.
BOOL STDCALL SetSystemTime (SYSTEMTIME *lpsystemtime)
 Set the current system time in UTC.
void STDCALL GetLocalTime (SYSTEMTIME *lpsystemtime)
 Get the current local time.
BOOL STDCALL SetLocalTime (SYSTEMTIME *lpsystemtime)
 Set the current local time.
BOOL STDCALL SystemTimeToTzSpecificLocalTime (TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lpuniversaltime, SYSTEMTIME *lplocaltime)
BOOL STDCALL TzSpecificLocalTimeToSystemTime (TIME_ZONE_INFORMATION *lptimezoneinformation, SYSTEMTIME *lplocaltime, SYSTEMTIME *lpuniversaltime)
uint32_t STDCALL GetTimeZoneInformation (TIME_ZONE_INFORMATION *lptimezoneinformation)
BOOL STDCALL SetTimeZoneInformation (TIME_ZONE_INFORMATION *lptimezoneinformation)
BOOL STDCALL SystemTimeToFileTime (SYSTEMTIME *lpsystemtime, FILETIME *lpfiletime)
 Convert a SystemTime value to a FileTime value.
BOOL STDCALL FileTimeToSystemTime (FILETIME *lpfiletime, SYSTEMTIME *lpsystemtime)
 Convert a FileTime value to a SystemTime value.
BOOL STDCALL FileTimeToLocalFileTime (FILETIME *lpfiletime, FILETIME *lplocalfiletime)
 Convert a FileTime in UTC to a FileTime in Local time.
BOOL STDCALL LocalFileTimeToFileTime (FILETIME *lplocalfiletime, FILETIME *lpfiletime)
 Convert a FileTime in Local time to a FileTime in UTC.
long STDCALL CompareFileTime (FILETIME *lpfiletime1, FILETIME *lpfiletime2)
BOOL STDCALL FileTimeToDosDateTime (FILETIME *lpfiletime, uint16_t *lpfatdate, uint16_t *lpfattime)
 Convert a FileTime value to a DOS date and time value.
BOOL STDCALL DosDateTimeToFileTime (uint16_t wfatdate, uint16_t wfattime, FILETIME *lpfiletime)
 Convert a DOS date and time value to a FileTime value.
BOOL STDCALL QueryPerformanceCounter (LARGE_INTEGER *lpPerformanceCount)
 Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements.
BOOL STDCALL QueryPerformanceFrequency (LARGE_INTEGER *lpFrequency)
 Retrieves the frequency of the performance counter. The frequency of the performance counter is fixed at system boot and is consistent across all processors. Therefore, the frequency need only be queried upon application initialization, and the result can be cached.
FILETIME STDCALL GetCurrentTime (void)
 Get the current system time in UTC as a FileTime value.
void STDCALL SetCurrentTime (FILETIME *time)
 Set the current system time in UTC from a FileTime value.
int32_t STDCALL GetTimeAdjust (void)
 Gets the time adjustment used internally.
void STDCALL SetTimeAdjust (int32_t adjust)
 Sets the time adjustment used internally.
uint32_t STDCALL GetCurrentTimezone (char *name, uint32_t len)
 Get the name of the current Timezone.
BOOL STDCALL SetCurrentTimezone (const char *name)
 Set the current Timezone by name.
int32_t STDCALL GetTimezoneActiveOffset (void)
 Gets the Active Offset from the current Timezone.
int32_t STDCALL GetTimezoneStandardOffset (void)
 Gets the Standard Offset from the current Timezone.
void STDCALL SetTimezoneStandardOffset (int32_t offset)
 Sets the Standard Offset for the current Timezone.
int32_t STDCALL GetTimezoneDaylightOffset (void)
 Gets the Daylight Offset from the current Timezone.
void STDCALL SetTimezoneDaylightOffset (int32_t offset)
 Sets the Daylight Offset for the current Timezone.
uint32_t STDCALL GetTimezoneStandardStart (char *description, uint32_t len)
 Get the description of the standard time start for the current Timezone.
uint32_t STDCALL GetTimezoneDaylightStart (char *description, uint32_t len)
 Get the description of the daylight time start for the current Timezone.
double_t STDCALL GetTimezoneStandardDate (void)
 Get the next date of the standard time start for the current Timezone.
double_t STDCALL GetTimezoneDaylightDate (void)
 Get the next date of the daylight time start for the current Timezone.
double_t STDCALL FileTimeToDateTime (FILETIME *filetime)
 Convert a FileTime value to a DateTime value.
FILETIME STDCALL DateTimeToFileTime (double_t datetime)
 Convert a DateTime value to a FileTime value.
double_t STDCALL LocalFileTimeToDateTime (FILETIME *filetime)
 Convert a FileTime value to a DateTime value.
FILETIME STDCALL DateTimeToLocalFileTime (double_t datetime)
 Convert a DateTime value to a FileTime value.
double_t STDCALL SystemFileTimeToDateTime (FILETIME *filetime)
 Convert a FileTime value to a DateTime value.
FILETIME STDCALL DateTimeToSystemFileTime (double_t datetime)
 Convert a DateTime value to a FileTime value.
time_t STDCALL FileTimeToUnixTime (FILETIME *filetime)
 Convert a FileTime value to a Unix/Linux time value.
FILETIME STDCALL UnixTimeToFileTime (time_t unixtime)
 Convert a Unix/Linux time value to a FileTime value.
double_t STDCALL UnixTimeToDateTime (time_t unixtime)
 Convert a Unix/Linux time value to a DateTime value.
time_t STDCALL DateTimeToUnixTime (double_t datetime)
 Convert a DateTime value to a Unix/Linux time value.
int STDCALL FileTimeToFileDate (FILETIME *filetime)
 Convert a FileTime value to a DOS date value.
FILETIME STDCALL FileDateToFileTime (int filedate)
 Convert a DOS date value to a FileTime value.
FILETIME STDCALL FileTimeToAdjustedTime (FILETIME *filetime)
 Convert a local FileTime value to a DST adjusted FileTime value.
FILETIME STDCALL AdjustedTimeToFileTime (FILETIME *filetime)
 Convert a DST adjusted FileTime value to a local FileTime value.
FILETIME STDCALL RoundFileTime (FILETIME *filetime)
 Round FileTime to nearest 2 seconds for compatibility with FileDate.
FILETIME STDCALL ConvertFileTime (FILETIME *filetime, int offset, BOOL local)
 Convert a FileTime value to a specified offset (Local or UTC).
double_t STDCALL ConvertDateTime (double_t datetime, int offset, BOOL local)
 Convert a DateTime value to a specified offset (Local or UTC).
UINT STDCALL GetDiskType (const char *lprootpathname)
 GetDriveType - Already defined below.
UINT STDCALL GetDriveTypeA (const char *lprootpathname)
UINT STDCALL GetDriveTypeW (const WCHAR *lprootpathname)
uint32_t STDCALL GetLogicalDrives (void)
uint32_t STDCALL GetLogicalDriveStrings (uint32_t nbufferlength, char *lpbuffer)
uint32_t STDCALL GetLogicalDriveStringsA (uint32_t nbufferlength, char *lpbuffer)
uint32_t STDCALL GetLogicalDriveStringsW (uint32_t nbufferlength, WCHAR *lpbuffer)
BOOL STDCALL DefineDosDevice (uint32_t dwflags, const char *lpdevicename, const char *lptargetpath)
BOOL STDCALL DefineDosDeviceA (uint32_t dwflags, const char *lpdevicename, const char *lptargetpath)
BOOL STDCALL DefineDosDeviceW (uint32_t dwflags, const WCHAR *lpdevicename, const WCHAR *lptargetpath)
uint32_t STDCALL QueryDosDevice (const char *lpdevicename, char *lptargetpath, uint32_t ucchmax)
uint32_t STDCALL QueryDosDeviceA (const char *lpdevicename, char *lptargetpath, uint32_t ucchmax)
uint32_t STDCALL QueryDosDeviceW (const WCHAR *lpdevicename, WCHAR *lptargetpath, uint32_t ucchmax)
BOOL STDCALL SetVolumeLabel (const char *lprootpathname, const char *lpvolumename)
BOOL STDCALL SetVolumeLabelA (const char *lprootpathname, const char *lpvolumename)
BOOL STDCALL SetVolumeLabelW (const WCHAR *lprootpathname, const WCHAR *lpvolumename)
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 GetVolumeInformationA (const char *lprootpathname, char *lpvolumenamebuffer, uint32_t nvolumenamesize, DWORD *lpvolumeserialnumber, uint32_t *lpmaximumcomponentlength, uint32_t *lpfilesystemflags, char *lpfilesystemnamebuffer, uint32_t nfilesystemnamesize)
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 GetDiskFreeSpace (const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
BOOL STDCALL GetDiskFreeSpaceA (const char *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
BOOL STDCALL GetDiskFreeSpaceW (const WCHAR *lprootpathname, uint32_t *lpsectorspercluster, uint32_t *lpbytespersector, uint32_t *lpnumberoffreeclusters, uint32_t *lptotalnumberofclusters)
BOOL STDCALL GetDiskFreeSpaceEx (const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
BOOL STDCALL GetDiskFreeSpaceExA (const char *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
BOOL STDCALL GetDiskFreeSpaceExW (const WCHAR *lpdirectoryname, ULARGE_INTEGER *lpfreebytesavailabletocaller, ULARGE_INTEGER *lptotalnumberofbytes, ULARGE_INTEGER *lptotalnumberoffreebytes)
uint8_t STDCALL GetPathDrive (const char *path)
DRIVE_TYPE STDCALL GetDriveType (uint8_t drive)
void STDCALL GetDriveData (uint8_t drive, DRIVE_DATA *data)
uint32_t STDCALL GetDriveAttr (uint8_t drive)
uint32_t STDCALL GetDriveLabel (uint8_t drive, char *label, uint32_t len)
BOOL STDCALL SetDriveLabel (uint8_t drive, const char *label)
uint32_t STDCALL GetDriveSerial (uint8_t drive)
BOOL STDCALL SetDriveSerial (uint8_t drive, uint32_t serial)
BOOL STDCALL IsDriveValid (uint8_t drive)
uint32_t STDCALL GetValidDrives (void)
uint32_t STDCALL GetValidDriveNames (char *names, uint32_t len)
uint32_t STDCALL GetDriveFreeSpace (uint8_t drive)
int64_t STDCALL GetDriveFreeSpaceEx (uint8_t drive)
uint32_t STDCALL GetDriveTotalSpace (uint8_t drive)
int64_t STDCALL GetDriveTotalSpaceEx (uint8_t drive)
BOOL STDCALL GetDriveInformation (const char *path, uint32_t *clustersize, int64_t *totalclustercount, int64_t *freeclustercount)
uint8_t STDCALL GetCurrentDrive (void)
BOOL STDCALL SetCurrentDrive (const char *drive)
BOOL STDCALL AreFileApisANSI (void)
void STDCALL SetFileApisToOEM (void)
void STDCALL SetFileApisToANSI (void)
HANDLE STDCALL CreateFile (const char *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile)
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 CreateFileW (const WCHAR *lpfilename, uint32_t dwdesiredaccess, uint32_t dwsharemode, SECURITY_ATTRIBUTES *lpsecurityattributes, uint32_t dwcreationdisposition, uint32_t dwflagsandattributes, HANDLE htemplatefile)
BOOL STDCALL SetFileAttributes (const char *lpfilename, uint32_t dwfileattributes)
BOOL STDCALL SetFileAttributesA (const char *lpfilename, uint32_t dwfileattributes)
BOOL STDCALL SetFileAttributesW (const WCHAR *lpfilename, uint32_t dwfileattributes)
uint32_t STDCALL GetFileAttributes (const char *lpfilename)
uint32_t STDCALL GetFileAttributesA (const char *lpfilename)
uint32_t STDCALL GetFileAttributesW (const WCHAR *lpfilename)
BOOL STDCALL DeleteFile (const char *lpfilename)
BOOL STDCALL DeleteFileA (const char *lpfilename)
BOOL STDCALL DeleteFileW (const WCHAR *lpfilename)
BOOL STDCALL MoveFile (const char *lpexistingfilename, const char *lpnewfilename)
BOOL STDCALL MoveFileA (const char *lpexistingfilename, const char *lpnewfilename)
BOOL STDCALL MoveFileW (const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename)
HANDLE STDCALL FindFirstFile (const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata)
HANDLE STDCALL FindFirstFileA (const char *lpfilename, WIN32_FIND_DATAA *lpfindfiledata)
HANDLE STDCALL FindFirstFileW (const WCHAR *lpfilename, WIN32_FIND_DATAW *lpfindfiledata)
BOOL STDCALL FindNextFile (HANDLE hfindfile, WIN32_FIND_DATAA *lpfindfiledata)
BOOL STDCALL FindNextFileA (HANDLE hfindfile, WIN32_FIND_DATAA *lpfindfiledata)
BOOL STDCALL FindNextFileW (HANDLE hfindfile, WIN32_FIND_DATAW *lpfindfiledata)
BOOL STDCALL FindCloseFile (HANDLE hfindfile)
uint32_t STDCALL GetFileSize (HANDLE hfile, DWORD *lpfilesizehigh)
BOOL STDCALL GetFileSizeEx (HANDLE hfile, LARGE_INTEGER *lpfilesize)
BOOL STDCALL GetFileTime (HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime)
BOOL STDCALL SetFileTime (HANDLE hfile, FILETIME *lpcreationtime, FILETIME *lplastaccesstime, FILETIME *lplastwritetime)
BOOL STDCALL ReadFile (HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestoread, DWORD *lpnumberofbytesread, OVERLAPPED *lpoverlapped)
BOOL STDCALL WriteFile (HANDLE hfile, void *lpbuffer, uint32_t nnumberofbytestowrite, DWORD *lpnumberofbyteswritten, OVERLAPPED *lpoverlapped)
BOOL STDCALL SetEndOfFile (HANDLE hfile)
uint32_t STDCALL SetFilePointer (HANDLE hfile, long ldistancetomove, long *lpdistancetomovehigh, uint32_t dwmovemethod)
BOOL STDCALL SetFilePointerEx (HANDLE hfile, LARGE_INTEGER lidistancetomove, LARGE_INTEGER *lpnewfilepointer, uint32_t dwmovemethod)
BOOL STDCALL FlushFileBuffers (HANDLE hfile)
BOOL STDCALL CopyFile (const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists)
BOOL STDCALL CopyFileA (const char *lpexistingfilename, const char *lpnewfilename, BOOL bfailifexists)
BOOL STDCALL CopyFileW (const WCHAR *lpexistingfilename, const WCHAR *lpnewfilename, BOOL bfailifexists)
BOOL STDCALL SetFileShortName (HANDLE hfile, const char *lpshortname)
BOOL STDCALL SetFileShortNameA (HANDLE hfile, const char *lpshortname)
BOOL STDCALL SetFileShortNameW (HANDLE hfile, const WCHAR *lpshortname)
BOOL STDCALL CreateHardLink (const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL CreateHardLinkA (const char *lpfilename, const char *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL CreateHardLinkW (const WCHAR *lpfilename, const WCHAR *lpexistingfilename, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL CreateSymbolicLink (const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags)
BOOL STDCALL CreateSymbolicLinkA (const char *lpsymlinkfilename, const char *lptargetfilename, uint32_t dwflags)
BOOL STDCALL CreateSymbolicLinkW (const WCHAR *lpsymlinkfilename, const WCHAR *lptargetfilename, uint32_t dwflags)
BOOL STDCALL GetFileInformationByHandle (HANDLE hfile, BY_HANDLE_FILE_INFORMATION *lpfileinformation)
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 GetFinalPathNameByHandleA (HANDLE hfile, char *lpszFilePath, uint32_t cchFilePath, uint32_t dwFlags)
 Retrieves the final path for the specified open file handle.
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 CreateDirectory (const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL CreateDirectoryA (const char *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL CreateDirectoryW (const WCHAR *lppathname, SECURITY_ATTRIBUTES *lpsecurityattributes)
BOOL STDCALL RemoveDirectory (const char *lppathname)
BOOL STDCALL RemoveDirectoryA (const char *lppathname)
BOOL STDCALL RemoveDirectoryW (const WCHAR *lppathname)
BOOL STDCALL SetCurrentDirectory (const char *lppathname)
BOOL STDCALL SetCurrentDirectoryA (const char *lppathname)
BOOL STDCALL SetCurrentDirectoryW (const WCHAR *lppathname)
uint32_t STDCALL GetCurrentDirectory (uint32_t nbufferlength, char *lpbuffer)
uint32_t STDCALL GetCurrentDirectoryA (uint32_t nbufferlength, char *lpbuffer)
uint32_t STDCALL GetCurrentDirectoryW (uint32_t nbufferlength, WCHAR *lpbuffer)
uint32_t STDCALL GetLongPathName (const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer)
uint32_t STDCALL GetLongPathNameA (const char *lpszshortpath, char *lpszlongpath, uint32_t cchbuffer)
uint32_t STDCALL GetLongPathNameW (const WCHAR *lpszshortpath, WCHAR *lpszlongpath, uint32_t cchbuffer)
uint32_t STDCALL GetShortPathName (const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer)
uint32_t STDCALL GetShortPathNameA (const char *lpszlongpath, char *lpszshortpath, uint32_t cchbuffer)
uint32_t STDCALL GetShortPathNameW (const WCHAR *lpszlongpath, WCHAR *lpszshortpath, uint32_t cchbuffer)
uint32_t STDCALL GetFullPathName (const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart)
uint32_t STDCALL GetFullPathNameA (const char *lpfilename, uint32_t nbufferlength, char *lpbuffer, char *lpfilepart)
uint32_t STDCALL GetFullPathNameW (const WCHAR *lpfilename, uint32_t nbufferlength, WCHAR *lpbuffer, WCHAR *lpfilepart)
char *STDCALL GetCommandLine (void)
char *STDCALL GetCommandLineA (void)
WCHAR *STDCALL GetCommandLineW (void)
BOOL STDCALL IsParamPresent (const char *param)
 Check if the specified parameter is present in the command line.
int STDCALL GetParamIndex (const char *param)
 Get the index of the specified parameter in the command line.
uint32_t STDCALL GetParamValue (const char *param, char *value, uint32_t len)
 Get the value of the specified parameter from the command line.
char *STDCALL GetEnvironmentStrings (void)
char *STDCALL GetEnvironmentStringsA (void)
WCHAR *STDCALL GetEnvironmentStringsW (void)
BOOL STDCALL FreeEnvironmentStrings (char *pstr)
BOOL STDCALL FreeEnvironmentStringsA (char *pstr)
BOOL STDCALL FreeEnvironmentStringsW (WCHAR *pstr)
uint32_t STDCALL GetEnvironmentVariable (const char *lpname, char *lpbuffer, uint32_t nsize)
uint32_t STDCALL GetEnvironmentVariableA (const char *lpname, char *lpbuffer, uint32_t nsize)
uint32_t STDCALL GetEnvironmentVariableW (const WCHAR *lpname, WCHAR *lpbuffer, uint32_t nsize)
BOOL STDCALL SetEnvironmentVariable (const char *lpname, const char *lpvalue)
BOOL STDCALL SetEnvironmentVariableA (const char *lpname, const char *lpvalue)
BOOL STDCALL SetEnvironmentVariableW (const WCHAR *lpname, const WCHAR *lpvalue)
uint32_t STDCALL ExpandEnvironmentStrings (const char *lpsrc, char *lpdst, uint32_t nsize)
uint32_t STDCALL ExpandEnvironmentStringsA (const char *lpsrc, char *lpdst, uint32_t nsize)
uint32_t STDCALL ExpandEnvironmentStringsW (const WCHAR *lpsrc, WCHAR *lpdst, uint32_t nsize)
uint32_t STDCALL GetLastError (void)
 Get the last error value for the calling thread.
void STDCALL SetLastError (uint32_t dwerrcode)
 Set the last error value for the calling thread.
GUID STDCALL CreateGUID (void)
 Create a new GUID GUID has the following format DWORD-WORD-WORD-WORD-WORDDWORD | Not Swapped |.
uint32_t STDCALL GUIDToString (GUID *value, char *string, uint32_t len)
 Convert a TGUID to a string representation.
GUID STDCALL StringToGUID (const char *value)
 Convert a string to a native TGUID type.
BOOL STDCALL NullGUID (GUID *guid)
 Check if a TGUID is empty (All zeroes).
BOOL STDCALL CompareGUID (GUID *guid1, GUID *guid2)
 Check whether two TGUID variables are equal.
int STDCALL Min (int a, int b)
int STDCALL Max (int a, int b)
uint32_t STDCALL MinEx (uint32_t a, uint32_t b)
uint32_t STDCALL MaxEx (uint32_t a, uint32_t b)
int64_t STDCALL Min64 (int64_t *a, int64_t *b)
int64_t STDCALL Max64 (int64_t *a, int64_t *b)
int64_t STDCALL Or64 (int64_t *value1, int64_t *value2)
int64_t STDCALL And64 (int64_t *value1, int64_t *value2)
int64_t STDCALL Xor64 (int64_t *value1, int64_t *value2)
int64_t STDCALL Not64 (int64_t *value)
uint32_t STDCALL Rol32 (uint32_t value, uint8_t count)
uint32_t STDCALL Ror32 (uint32_t value, uint8_t count)
uint16_t STDCALL WordSwap (uint16_t value)
uint32_t STDCALL LongSwap (uint32_t value)
int64_t STDCALL Int64Swap (int64_t *value)
BOOL STDCALL BufferSwap (void *buffer, uint32_t size)
 Swap each word in the buffer supplied up to size.
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 GenerateStringHash (const char *value, BOOL casesensitive)
 Sum of (byte value + 1) * (position + 257) for all bytes in string.
BOOL STDCALL IsValidLocale (LCID localeid, uint32_t dwflags)
LCID STDCALL GetSystemDefaultLCID (void)
LCID STDCALL GetUserDefaultLCID (void)
LCID STDCALL GetThreadLocale (void)
BOOL STDCALL SetThreadLocale (LCID localeid)
BOOL STDCALL SetSystemDefaultLCID (LCID localeid)
uint32_t STDCALL WideCharToString (const WCHAR *buffer, char *string, uint32_t len)
 A replacement for WideCharToString in System unit to allow cross platform compatibility.
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 StringToWideChar (const char *string, WCHAR *buffer, int size)
 A replacement for StringToWideChar in System unit to allow cross platform compatibility.
BOOL STDCALL IsValidCodePage (UINT codepage)
UINT STDCALL GetACP (void)
UINT STDCALL GetOEMCP (void)
UINT STDCALL GetConsoleCP (void)
BOOL STDCALL SetConsoleCP (UINT wcodepageid)
UINT STDCALL GetConsoleOutputCP (void)
BOOL STDCALL SetConsoleOutputCP (UINT wcodepageid)
BOOL STDCALL GetCPInfo (UINT codepage, CPINFO *lpcpinfo)
BOOL STDCALL GetCPInfoEx (UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex)
BOOL STDCALL GetCPInfoExA (UINT codepage, uint32_t dwflags, CPINFOEXA *lpcpinfoex)
BOOL STDCALL GetCPInfoExW (UINT codepage, uint32_t dwflags, CPINFOEXW *lpcpinfoex)
BOOL STDCALL SetACP (UINT codepage)
BOOL STDCALL SetOEMCP (UINT codepage)
int STDCALL MultiByteToWideChar (UINT codepage, uint32_t dwflags, char *lpmultibytestr, int cbmultibyte, WCHAR *lpwidecharstr, int cchwidechar)
int STDCALL WideCharToMultiByte (UINT codepage, uint32_t dwflags, WCHAR *lpwidecharstr, int cchwidechar, char *lpmultibytestr, int cbmultibyte, char *lpdefaultchar, BOOL *lpuseddefaultchar)
int STDCALL CompareString (LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
int STDCALL CompareStringA (LCID locale, uint32_t dwcmpflags, char *lpstring1, int cchcount1, char *lpstring2, int cchcount2)
int STDCALL CompareStringW (LCID locale, uint32_t dwcmpflags, WCHAR *lpstring1, int cchcount1, WCHAR *lpstring2, int cchcount2)
char *STDCALL CharUpper (char *lpsz)
char *STDCALL CharUpperA (char *lpsz)
WCHAR *STDCALL CharUpperW (WCHAR *lpsz)
uint32_t STDCALL CharUpperBuff (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharUpperBuffA (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharUpperBuffW (WCHAR *lpsz, uint32_t cchlength)
char *STDCALL CharLower (char *lpsz)
char *STDCALL CharLowerA (char *lpsz)
WCHAR *STDCALL CharLowerW (WCHAR *lpsz)
uint32_t STDCALL CharLowerBuff (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharLowerBuffA (char *lpsz, uint32_t cchlength)
uint32_t STDCALL CharLowerBuffW (WCHAR *lpsz, uint32_t cchlength)
BOOL STDCALL AnsiToOem (char *lpszsrc, char *lpszdst)
BOOL STDCALL AnsiToOemBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToAnsi (char *lpszsrc, char *lpszdst)
BOOL STDCALL OemToAnsiBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CharToOem (char *lpszsrc, char *lpszdst)
BOOL STDCALL CharToOemA (char *lpszsrc, char *lpszdst)
BOOL STDCALL CharToOemW (WCHAR *lpszsrc, char *lpszdst)
BOOL STDCALL OemToChar (char *lpszsrc, char *lpszdst)
BOOL STDCALL OemToCharA (char *lpszsrc, char *lpszdst)
BOOL STDCALL OemToCharW (char *lpszsrc, WCHAR *lpszdst)
BOOL STDCALL CharToOemBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CharToOemBuffA (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CharToOemBuffW (WCHAR *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToCharBuff (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToCharBuffA (char *lpszsrc, char *lpszdst, uint32_t cchdstlength)
BOOL STDCALL OemToCharBuffW (char *lpszsrc, WCHAR *lpszdst, uint32_t cchdstlength)
BOOL STDCALL CloseHandle (HANDLE hobject)
BOOL STDCALL DuplicateHandle (HANDLE hsourceprocesshandle, HANDLE hsourcehandle, HANDLE htargetprocesshandle, HANDLE *lptargethandle, uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwoptions)
BOOL STDCALL GetHandleInformation (HANDLE hobject, uint32_t *lpdwflags)
BOOL STDCALL SetHandleInformation (HANDLE hobject, uint32_t dwmask, uint32_t dwflags)
void STDCALL MoveMemory (void *destination, void *source, SIZE_T length)
void STDCALL CopyMemory (void *destination, void *source, SIZE_T length)
void STDCALL FillMemory (void *destination, SIZE_T length, uint8_t fill)
void STDCALL ZeroMemory (void *destination, SIZE_T length)
HGLOBAL STDCALL GlobalAlloc (UINT uflags, SIZE_T dwbytes)
HGLOBAL STDCALL GlobalReAlloc (HGLOBAL hmem, SIZE_T dwbytes, UINT uflags)
HGLOBAL STDCALL GlobalFree (HGLOBAL hmem)
SIZE_T STDCALL GlobalSize (HGLOBAL hmem)
UINT STDCALL GlobalFlags (HGLOBAL hmem)
void *STDCALL GlobalLock (HGLOBAL hmem)
BOOL STDCALL GlobalUnlock (HGLOBAL hmem)
HGLOBAL STDCALL GlobalHandle (void *pmem)
void STDCALL GlobalMemoryStatus (MEMORYSTATUS *lpbuffer)
BOOL STDCALL GlobalMemoryStatusEx (MEMORYSTATUSEX *lpbuffer)
HLOCAL STDCALL LocalAlloc (UINT uflags, SIZE_T ubytes)
HLOCAL STDCALL LocalReAlloc (HLOCAL hmem, SIZE_T ubytes, UINT uflags)
HLOCAL STDCALL LocalFree (HLOCAL hmem)
SIZE_T STDCALL LocalSize (HLOCAL hmem)
UINT STDCALL LocalFlags (HLOCAL hmem)
void *STDCALL LocalLock (HLOCAL hmem)
BOOL STDCALL LocalUnlock (HLOCAL hmem)
HLOCAL STDCALL LocalHandle (void *pmem)
void *STDCALL VirtualAlloc (void *lpaddress, SIZE_T dwsize, uint32_t flallocationtype, uint32_t flprotect)
BOOL STDCALL VirtualFree (void *lpaddress, SIZE_T dwsize, uint32_t dwfreetype)
uint32_t STDCALL VirtualQuery (void *lpaddress, MEMORY_BASIC_INFORMATION *lpbuffer, uint32_t dwlength)
BOOL STDCALL VirtualLock (void *lpaddress, SIZE_T dwsize)
BOOL STDCALL VirtualUnlock (void *lpaddress, SIZE_T dwsize)
BOOL STDCALL FlushInstructionCache (HANDLE hprocess, void *lpbaseaddress, uint32_t dwsize)
BOOL STDCALL GetNumaHighestNodeNumber (ULONG *highestnodenumber)
BOOL STDCALL GetNumaProcessorNode (uint8_t *processor, uint8_t *nodenumber)
uint32_t STDCALL TlsAlloc (void)
uint32_t STDCALL TlsAllocEx (BOOL bfree)
void *STDCALL TlsGetValue (uint32_t dwtlsindex)
BOOL STDCALL TlsSetValue (uint32_t dwtlsindex, void *lptlsvalue)
BOOL STDCALL TlsFree (uint32_t dwtlsindex)
BOOL STDCALL SwitchToThread (void)
void STDCALL Sleep (uint32_t dwmilliseconds)
uint32_t STDCALL SleepEx (uint32_t dwmilliseconds, BOOL balertable)
HANDLE STDCALL GetCurrentThread (void)
uint32_t STDCALL GetCurrentThreadId (void)
int STDCALL GetThreadPriority (HANDLE hthread)
BOOL STDCALL SetThreadPriority (HANDLE hthread, int npriority)
BOOL STDCALL GetExitCodeThread (HANDLE hthread, uint32_t *lpexitcode)
DWORD_PTR STDCALL GetThreadAffinityMask (HANDLE hthread)
DWORD_PTR STDCALL SetThreadAffinityMask (HANDLE hthread, DWORD_PTR dwthreadaffinitymask)
BOOL STDCALL GetThreadTimes (HANDLE hthread, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime)
HANDLE STDCALL CreateThread (SECURITY_ATTRIBUTES *lpthreadattributes, uint32_t dwstacksize, THREAD_START_ROUTINE lpstartaddress, void *lpparameter, uint32_t dwcreationflags, DWORD *lpthreadid)
HANDLE STDCALL OpenThread (uint32_t dwdesiredaccess, BOOL binherithandle, uint32_t dwthreadid)
uint32_t STDCALL SuspendThread (HANDLE hthread)
uint32_t STDCALL ResumeThread (HANDLE hthread)
BOOL STDCALL TerminateThread (HANDLE hthread, uint32_t dwexitcode)
void STDCALL ExitThread (uint32_t dwexitcode)
uint32_t STDCALL WaitForSingleObject (HANDLE hhandle, uint32_t dwmilliseconds)
uint32_t STDCALL WaitForMultipleObjects (uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds)
uint32_t STDCALL WaitForSingleObjectEx (HANDLE hhandle, uint32_t dwmilliseconds, BOOL balertable)
uint32_t STDCALL WaitForMultipleObjectsEx (uint32_t ncount, HANDLE *lphandles, BOOL bwaitall, uint32_t dwmilliseconds, BOOL balertable)
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 WaitMessage (void)
BOOL STDCALL GetMessage (MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax)
BOOL STDCALL PeekMessage (MSG *lpmsg, HANDLE hthread, UINT wmsgfiltermin, UINT wmsgfiltermax, UINT wremovemsg)
BOOL STDCALL PostMessage (HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam)
LRESULT STDCALL SendMessage (HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam)
LRESULT STDCALL SendMessageTimeout (HANDLE hthread, UINT msg, WPARAM wparam, LPARAM lparam, UINT fuflags, UINT utimeout, DWORD_PTR *lpdwresult)
long STDCALL InterlockedIncrement (long *lpaddend)
long STDCALL InterlockedDecrement (long *lpaddend)
long STDCALL InterlockedExchange (long *target, long value)
void *STDCALL InterlockedExchangePointer (void *target, void *value)
long STDCALL InterlockedExchangeAdd (long *addend, long value)
long STDCALL InterlockedCompareExchange (long *destination, long exchange, long comperand)
void *STDCALL InterlockedCompareExchangePointer (void *destination, void *exchange, void *comperand)
HANDLE STDCALL CreateMutex (SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname)
HANDLE STDCALL CreateMutexA (SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const char *lpname)
HANDLE STDCALL CreateMutexW (SECURITY_ATTRIBUTES *lpmutexattributes, BOOL binitialowner, const WCHAR *lpname)
HANDLE STDCALL OpenMutex (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenMutexA (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenMutexW (uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
BOOL STDCALL ReleaseMutex (HANDLE hmutex)
HANDLE STDCALL CreateSemaphore (SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname)
HANDLE STDCALL CreateSemaphoreA (SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const char *lpname)
HANDLE STDCALL CreateSemaphoreW (SECURITY_ATTRIBUTES *lpsemaphoreattributes, long linitialcount, long lmaximumcount, const WCHAR *lpname)
HANDLE STDCALL OpenSemaphore (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenSemaphoreA (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenSemaphoreW (uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
BOOL STDCALL ReleaseSemaphore (HANDLE hsemaphore, long lreleasecount, long *lppreviouscount)
void STDCALL InitializeCriticalSection (CRITICAL_SECTION *lpcriticalsection)
void STDCALL EnterCriticalSection (CRITICAL_SECTION *lpcriticalsection)
void STDCALL LeaveCriticalSection (CRITICAL_SECTION *lpcriticalsection)
BOOL STDCALL TryEnterCriticalSection (CRITICAL_SECTION *lpcriticalsection)
BOOL STDCALL InitializeCriticalSectionAndSpinCount (CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount)
uint32_t STDCALL SetCriticalSectionSpinCount (CRITICAL_SECTION *lpcriticalsection, uint32_t dwspincount)
void STDCALL DeleteCriticalSection (CRITICAL_SECTION *lpcriticalsection)
void STDCALL InitializeConditionVariable (CONDITION_VARIABLE *conditionvariable)
 Initializes a condition variable.
void STDCALL WakeConditionVariable (CONDITION_VARIABLE *conditionvariable)
 Wake a single thread waiting on the specified condition variable.
void STDCALL WakeAllConditionVariable (CONDITION_VARIABLE *conditionvariable)
 Wake all threads waiting on the specified condition variable.
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 operation.
void STDCALL DeleteConditionVariable (CONDITION_VARIABLE *conditionvariable)
 Destroy a condition variable.
HANDLE STDCALL CreateEvent (SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname)
HANDLE STDCALL CreateEventA (SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const char *lpname)
HANDLE STDCALL CreateEventW (SECURITY_ATTRIBUTES *lpeventattributes, BOOL bmanualreset, BOOL binitialstate, const WCHAR *lpname)
HANDLE STDCALL OpenEvent (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenEventA (uint32_t dwdesiredaccess, BOOL binherithandle, const char *lpname)
HANDLE STDCALL OpenEventW (uint32_t dwdesiredaccess, BOOL binherithandle, const WCHAR *lpname)
BOOL STDCALL SetEvent (HANDLE hevent)
BOOL STDCALL ResetEvent (HANDLE hevent)
BOOL STDCALL PulseEvent (HANDLE hevent)
BOOL STDCALL GetProcessAffinityMask (HANDLE hprocess, DWORD_PTR *lpprocessaffinitymask, DWORD_PTR *lpsystemaffinitymask)
BOOL STDCALL SetProcessAffinityMask (HANDLE hprocess, DWORD_PTR dwprocessaffinitymask)
BOOL STDCALL GetProcessTimes (HANDLE hprocess, FILETIME *lpcreationtime, FILETIME *lpexittime, FILETIME *lpkerneltime, FILETIME *lpusertime)
BOOL STDCALL GetProcessIoCounters (HANDLE hprocess, IO_COUNTERS *lpiocounters)
HANDLE STDCALL GetCurrentProcess (void)
uint32_t STDCALL GetCurrentProcessId (void)
void STDCALL ExitProcess (UINT uexitcode)
void STDCALL FatalExit (int exitcode)
BOOL STDCALL TerminateProcess (HANDLE hprocess, UINT uexitcode)
void STDCALL OutputDebugString (const char *lpoutputstring)
void STDCALL OutputDebugStringA (const char *lpoutputstring)
void STDCALL OutputDebugStringW (const WCHAR *lpoutputstring)
int STDCALL lstrcmp (char *lpstring1, char *lpstring2)
int STDCALL lstrcmpA (char *lpstring1, char *lpstring2)
int STDCALL lstrcmpW (WCHAR *lpstring1, WCHAR *lpstring2)
int STDCALL lstrcmpi (char *lpstring1, char *lpstring2)
int STDCALL lstrcmpiA (char *lpstring1, char *lpstring2)
int STDCALL lstrcmpiW (WCHAR *lpstring1, WCHAR *lpstring2)
char *STDCALL lstrcpy (char *lpstring1, char *lpstring2)
char *STDCALL lstrcpyA (char *lpstring1, char *lpstring2)
WCHAR *STDCALL lstrcpyW (WCHAR *lpstring1, WCHAR *lpstring2)
char *STDCALL lstrcpyn (char *lpstring1, char *lpstring2, int imaxlength)
char *STDCALL lstrcpynA (char *lpstring1, char *lpstring2, int imaxlength)
WCHAR *STDCALL lstrcpynW (WCHAR *lpstring1, WCHAR *lpstring2, int imaxlength)
char *STDCALL lstrcat (char *lpstring1, char *lpstring2)
char *STDCALL lstrcatA (char *lpstring1, char *lpstring2)
WCHAR *STDCALL lstrcatW (WCHAR *lpstring1, WCHAR *lpstring2)
int STDCALL lstrlen (char *lpstring)
int STDCALL lstrlenA (char *lpstring)
int STDCALL lstrlenW (WCHAR *lpstring)

Macro Definition Documentation

◆ MAXLONGLONG

#define MAXLONGLONG   0x7fffffffffffffff

Compatibility constants 64bit Constants

◆ CREATE_SUSPENDED

#define CREATE_SUSPENDED   0x00000004

Thread Constants

◆ PM_NOREMOVE

#define PM_NOREMOVE   0x0000

Message Constants

◆ PM_REMOVE

#define PM_REMOVE   0x0001

◆ PM_NOYIELD

#define PM_NOYIELD   0x0002

◆ EWX_LOGOFF

#define EWX_LOGOFF   0x00000000

Timezone Constants (See timezone.h) Shutdown/Restart Constants

◆ EWX_SHUTDOWN

#define EWX_SHUTDOWN   0x00000001

◆ EWX_REBOOT

#define EWX_REBOOT   0x00000002

◆ EWX_FORCE

#define EWX_FORCE   0x00000004

◆ EWX_POWEROFF

#define EWX_POWEROFF   0x00000008

◆ EWX_FORCEIFHUNG

#define EWX_FORCEIFHUNG   0x00000010

◆ DRIVE_UNKNOWN

#define DRIVE_UNKNOWN   0

Drive Type Constants

◆ DRIVE_NO_ROOT_DIR

#define DRIVE_NO_ROOT_DIR   1

◆ DRIVE_REMOVABLE

#define DRIVE_REMOVABLE   2

◆ DRIVE_FIXED

#define DRIVE_FIXED   3

◆ DRIVE_REMOTE

#define DRIVE_REMOTE   4

◆ DRIVE_CDROM

#define DRIVE_CDROM   5

◆ DRIVE_RAMDISK

#define DRIVE_RAMDISK   6

◆ SYMBOLIC_LINK_FLAG_FILE

#define SYMBOLIC_LINK_FLAG_FILE   0x00000000

The link target is a file.

Symbolic Link Constants

◆ SYMBOLIC_LINK_FLAG_DIRECTORY

#define SYMBOLIC_LINK_FLAG_DIRECTORY   0x00000001

The link target is a directory.

◆ LMEM_FIXED

#define LMEM_FIXED   0x0000

Local Memory Constants

◆ LMEM_MOVEABLE

#define LMEM_MOVEABLE   0x0002

◆ LMEM_NOCOMPACT

#define LMEM_NOCOMPACT   0x0010

◆ LMEM_NODISCARD

#define LMEM_NODISCARD   0x0020

◆ LMEM_ZEROINIT

#define LMEM_ZEROINIT   0x0040

◆ LMEM_MODIFY

#define LMEM_MODIFY   0x0080

◆ LMEM_DISCARDABLE

#define LMEM_DISCARDABLE   0x0F00

◆ LMEM_VALID_FLAGS

#define LMEM_VALID_FLAGS   0x0F72

◆ LMEM_INVALID_HANDLE

#define LMEM_INVALID_HANDLE   0x8000

◆ LHND

#define LHND   (LMEM_MOVEABLE | LMEM_ZEROINIT)

◆ LPTR

#define LPTR   (LMEM_FIXED | LMEM_ZEROINIT)

◆ NONZEROLHND

#define NONZEROLHND   (LMEM_MOVEABLE)

◆ NONZEROLPTR

#define NONZEROLPTR   (LMEM_FIXED)

◆ GMEM_FIXED

#define GMEM_FIXED   0x0000

Global Memory Constants

◆ GMEM_MOVEABLE

#define GMEM_MOVEABLE   0x0002

◆ GMEM_NOCOMPACT

#define GMEM_NOCOMPACT   0x0010

◆ GMEM_NODISCARD

#define GMEM_NODISCARD   0x0020

◆ GMEM_ZEROINIT

#define GMEM_ZEROINIT   0x0040

◆ GMEM_MODIFY

#define GMEM_MODIFY   0x0080

◆ GMEM_DISCARDABLE

#define GMEM_DISCARDABLE   0x0100

◆ GMEM_NOT_BANKED

#define GMEM_NOT_BANKED   0x1000

◆ GMEM_SHARE

#define GMEM_SHARE   0x2000

◆ GMEM_DDESHARE

#define GMEM_DDESHARE   0x2000

◆ GMEM_NOTIFY

#define GMEM_NOTIFY   0x4000

◆ GMEM_LOWER

#define GMEM_LOWER   GMEM_NOT_BANKED

◆ GMEM_VALID_FLAGS

#define GMEM_VALID_FLAGS   0x7F72

◆ GMEM_INVALID_HANDLE

#define GMEM_INVALID_HANDLE   0x8000

◆ GHND

#define GHND   (GMEM_MOVEABLE | GMEM_ZEROINIT)

◆ GPTR

#define GPTR   (GMEM_FIXED | GMEM_ZEROINIT)

◆ PAGE_NOACCESS

#define PAGE_NOACCESS   0x01

Virtual Page Constants

◆ PAGE_READONLY

#define PAGE_READONLY   0x02

◆ PAGE_READWRITE

#define PAGE_READWRITE   0x04

◆ PAGE_WRITECOPY

#define PAGE_WRITECOPY   0x08

◆ PAGE_EXECUTE

#define PAGE_EXECUTE   0x10

◆ PAGE_EXECUTE_READ

#define PAGE_EXECUTE_READ   0x20

◆ PAGE_EXECUTE_READWRITE

#define PAGE_EXECUTE_READWRITE   0x40

◆ PAGE_EXECUTE_WRITECOPY

#define PAGE_EXECUTE_WRITECOPY   0x80

◆ PAGE_GUARD

#define PAGE_GUARD   0x100

◆ PAGE_NOCACHE

#define PAGE_NOCACHE   0x200

◆ PAGE_WRITECOMBINE

#define PAGE_WRITECOMBINE   0x400

◆ MEM_COMMIT

#define MEM_COMMIT   0x1000

Virtual Memory Constants

◆ MEM_RESERVE

#define MEM_RESERVE   0x2000

◆ MEM_DECOMMIT

#define MEM_DECOMMIT   0x4000

◆ MEM_RELEASE

#define MEM_RELEASE   0x8000

◆ MEM_FREE

#define MEM_FREE   0x10000

◆ MEM_PRIVATE

#define MEM_PRIVATE   0x20000

◆ MEM_MAPPED

#define MEM_MAPPED   0x40000

◆ MEM_RESET

#define MEM_RESET   0x80000

◆ MEM_TOP_DOWN

#define MEM_TOP_DOWN   0x100000

◆ MEM_WRITE_WATCH

#define MEM_WRITE_WATCH   0x200000

◆ MEM_PHYSICAL

#define MEM_PHYSICAL   0x400000

◆ MEM_4MB_PAGES

#define MEM_4MB_PAGES   (DWORD)0x80000000

◆ SEC_FILE

#define SEC_FILE   0x800000

◆ SEC_IMAGE

#define SEC_IMAGE   0x1000000

◆ SEC_RESERVE

#define SEC_RESERVE   0x4000000

◆ SEC_COMMIT

#define SEC_COMMIT   (DWORD)0x8000000

◆ SEC_NOCACHE

#define SEC_NOCACHE   0x10000000

◆ MEM_IMAGE

#define MEM_IMAGE   SEC_IMAGE

◆ WRITE_WATCH_FLAG_RESET

#define WRITE_WATCH_FLAG_RESET   0x01

◆ MEM_LARGE_PAGES

#define MEM_LARGE_PAGES   0x20000000

◆ PROCESSOR_ARCHITECTURE_INTEL

#define PROCESSOR_ARCHITECTURE_INTEL   0

Processor Architechture Constants

◆ PROCESSOR_ARCHITECTURE_MIPS

#define PROCESSOR_ARCHITECTURE_MIPS   1

◆ PROCESSOR_ARCHITECTURE_ALPHA

#define PROCESSOR_ARCHITECTURE_ALPHA   2

◆ PROCESSOR_ARCHITECTURE_PPC

#define PROCESSOR_ARCHITECTURE_PPC   3

◆ PROCESSOR_ARCHITECTURE_SHX

#define PROCESSOR_ARCHITECTURE_SHX   4

◆ PROCESSOR_ARCHITECTURE_ARM

#define PROCESSOR_ARCHITECTURE_ARM   5

◆ PROCESSOR_ARCHITECTURE_IA64

#define PROCESSOR_ARCHITECTURE_IA64   6

◆ PROCESSOR_ARCHITECTURE_ALPHA64

#define PROCESSOR_ARCHITECTURE_ALPHA64   7

◆ PROCESSOR_ARCHITECTURE_MSIL

#define PROCESSOR_ARCHITECTURE_MSIL   8

◆ PROCESSOR_ARCHITECTURE_AMD64

#define PROCESSOR_ARCHITECTURE_AMD64   9

◆ PROCESSOR_ARCHITECTURE_UNKNOWN

#define PROCESSOR_ARCHITECTURE_UNKNOWN   0xFFFF

◆ PROCESSOR_INTEL_386

#define PROCESSOR_INTEL_386   386

Processor Type Constants

◆ PROCESSOR_INTEL_486

#define PROCESSOR_INTEL_486   486

◆ PROCESSOR_INTEL_PENTIUM

#define PROCESSOR_INTEL_PENTIUM   586

◆ PROCESSOR_INTEL_IA64

#define PROCESSOR_INTEL_IA64   2200

◆ PROCESSOR_ARM_6

#define PROCESSOR_ARM_6   60999

◆ PROCESSOR_ARM_7

#define PROCESSOR_ARM_7   70999

◆ PROCESSOR_ARM_8

#define PROCESSOR_ARM_8   80999

◆ VER_PLATFORM_ULTIBO

#define VER_PLATFORM_ULTIBO   10011

Version Info Constants

◆ DDD_RAW_TARGET_PATH

#define DDD_RAW_TARGET_PATH   0x00000001

Dos Device Constants

◆ DDD_REMOVE_DEFINITION

#define DDD_REMOVE_DEFINITION   0x00000002

◆ DDD_EXACT_MATCH_ON_REMOVE

#define DDD_EXACT_MATCH_ON_REMOVE   0x00000004

◆ DDD_NO_BROADCAST_SYSTEM

#define DDD_NO_BROADCAST_SYSTEM   0x00000008

◆ DDD_LUID_BROADCAST_DRIVE

#define DDD_LUID_BROADCAST_DRIVE   0x00000010

◆ DEFAULT_DRIVE

#define DEFAULT_DRIVE   0

0 is Current Drive

Drive constants

◆ INVALID_DRIVE

#define INVALID_DRIVE   0

Where Current is not appropriate.

◆ MIN_DRIVE

#define MIN_DRIVE   1

1 = A:, 2 = B:, 3 = C:, 26 = Z: etc

◆ MAX_DRIVE

#define MAX_DRIVE   26

◆ NON_DRIVE

#define NON_DRIVE   27

27 for Non Drive (UNC) Path

◆ DRIVE_A

#define DRIVE_A   1

◆ DRIVE_B

#define DRIVE_B   2

◆ DRIVE_C

#define DRIVE_C   3

◆ MAX_FAT_PATH

#define MAX_FAT_PATH   64

Path and File constants

◆ MAX_FAT_FILE

#define MAX_FAT_FILE   12

◆ MAX_VFAT_PATH

#define MAX_VFAT_PATH   260

◆ MAX_VFAT_FILE

#define MAX_VFAT_FILE   255

◆ FAT_PATH_CHAR

#define FAT_PATH_CHAR   "\\"

Path separator.

◆ FAT_NAME_CHAR

#define FAT_NAME_CHAR   ":"

Stream separator.

◆ FAT_FILE_CHAR

#define FAT_FILE_CHAR   "."

Extension separator.

◆ FAT_DRIVE_CHAR

#define FAT_DRIVE_CHAR   ":"

Drive separator.

◆ UNIX_PATH_CHAR

#define UNIX_PATH_CHAR   "/"

Path separator.

◆ UNIX_NAME_CHAR

#define UNIX_NAME_CHAR   ":"

Stream separator.

◆ UNIX_FILE_CHAR

#define UNIX_FILE_CHAR   "."

Extension separator.

◆ MACRO_FILENAME_CHAR

#define MACRO_FILENAME_CHAR   "%"

Wildcard Filename Chars

◆ WILDCARD_FILENAME_CHAR

#define WILDCARD_FILENAME_CHAR   "*"

Typedef Documentation

◆ INT

typedef int INT

Compatibility types Signed types

◆ LONG

typedef int32_t LONG

long // In Windows LONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler

◆ BYTE

typedef unsigned char BYTE

Unsigned types

◆ WORD

typedef unsigned short WORD

◆ UINT

typedef unsigned int UINT

◆ UCHAR

typedef unsigned char UCHAR

◆ USHORT

typedef unsigned short USHORT

◆ ULONG

typedef uint32_t ULONG

unsigned long // In Windows ULONG remains as 4 bytes (32-bit) regardless of 32-bit or 64-bit compiler

◆ INT_PTR

typedef ssize_t INT_PTR

Pointer types

◆ UINT_PTR

typedef size_t UINT_PTR

◆ LONG_PTR

typedef ssize_t LONG_PTR

◆ ULONG_PTR

typedef size_t ULONG_PTR

◆ DWORD_PTR

◆ LONGLONG

typedef int64_t LONGLONG

64bit types

◆ ULONGLONG

typedef uint64_t ULONGLONG

◆ DWORDLONG

◆ SIZE_T

typedef size_t SIZE_T

Size types

◆ SSIZE_T

typedef ssize_t SSIZE_T

◆ HLOCAL

typedef HANDLE HLOCAL

Handle types

◆ HGLOBAL

typedef HANDLE HGLOBAL

◆ HWND

typedef HANDLE HWND

◆ WPARAM

typedef UINT_PTR WPARAM

Parameter types

◆ LPARAM

typedef LONG_PTR LPARAM

◆ LRESULT

typedef LONG_PTR LRESULT

◆ QUAD

typedef struct _QUAD QUAD

◆ UQUAD

typedef QUAD UQUAD

◆ GUID

typedef struct _GUID GUID

◆ LARGE_INTEGER

Locale and Language Ids (See locale.h) Large Integer types

◆ ULARGE_INTEGER

◆ OSVERSIONINFOA

Version Info types

◆ OSVERSIONINFOW

◆ OSVERSIONINFO

◆ SYSTEM_INFO

typedef struct _SYSTEM_INFO SYSTEM_INFO

◆ COMPUTER_NAME_FORMAT

Computer Name types

◆ WIN32_FIND_DATAW

System Time types (See sysutils.h) File Time types (See sysutils.h) File Search types (See also sysutils.h)

◆ WIN32_FIND_DATA

◆ STREAM_INFO_LEVELS

Stream Search types

◆ WIN32_FIND_STREAM_DATA

◆ MEMORYSTATUS

typedef struct _MEMORYSTATUS MEMORYSTATUS

Timezone types (See timezone.h) Memory Status types

◆ MEMORYSTATUSEX

◆ SECURITY_ATTRIBUTES

Security Attributes types

◆ THREAD_START_ROUTINE

typedef uint32_t STDCALL(* THREAD_START_ROUTINE) (void *lpthreadparameter)

Thread Start types

◆ RECT

typedef struct _RECT RECT

Point and Rect types

◆ POINT

typedef struct _POINT POINT

◆ MSG

typedef struct _MSG MSG

Message types

◆ LOCKS_LIST_ENTRY

List types

◆ RTL_CRITICAL_SECTION

Critical Section types

◆ RTL_CRITICAL_SECTION_DEBUG

◆ CRITICAL_SECTION

◆ RTL_CONDITION_VARIABLE

Condition Variable types

◆ CONDITION_VARIABLE

◆ IO_COUNTERS

typedef struct _IO_COUNTERS IO_COUNTERS

Counter types

◆ MEMORY_BASIC_INFORMATION

Code Page types (See locale.h) Memory Information Types

◆ FXPT16DOT16

typedef int32_t FXPT16DOT16

RGB Color Types

◆ FXPT2DOT30

typedef int32_t FXPT2DOT30

◆ CIEXYZ

typedef struct _CIEXYZ CIEXYZ

◆ CIEXYZTRIPLE

typedef struct _CIEXYZTRIPLE CIEXYZTRIPLE

◆ BITMAP

typedef struct _BITMAP BITMAP

Bitmap Types

◆ RGBTRIPLE

typedef struct _RGBTRIPLE RGBTRIPLE

◆ RGBQUAD

typedef struct _RGBQUAD RGBQUAD

◆ BITMAPCOREHEADER

Bitmap Header Types

◆ BITMAPINFOHEADER

◆ BITMAPINFO

typedef struct _BITMAPINFO BITMAPINFO

Bitmap Info Types

◆ BITMAPCOREINFO

◆ BITMAPFILEHEADER

◆ BY_HANDLE_FILE_INFORMATION

File Information Types

◆ DRIVE_TYPE

typedef enum _DRIVE_TYPE DRIVE_TYPE

Ultibo types

◆ FILE_SYS_TYPE

◆ DRIVE_DATA

typedef struct _DRIVE_DATA DRIVE_DATA

Drive types

Enumeration Type Documentation

◆ _COMPUTER_NAME_FORMAT

Computer Name types

Enumerator
ComputerNameNetBIOS 
ComputerNameDnsHostname 
ComputerNameDnsDomain 
ComputerNameDnsFullyQualified 
ComputerNamePhysicalNetBIOS 
ComputerNamePhysicalDnsHostname 
ComputerNamePhysicalDnsDomain 
ComputerNamePhysicalDnsFullyQualified 
ComputerNameMax 

◆ _STREAM_INFO_LEVELS

Stream Search types

Enumerator
FindStreamInfoStandard 
FindStreamInfoMaxInfoLevel 

◆ _DRIVE_TYPE

Ultibo types

Enumerator
dtUNKNOWN 
dtINVALID 
dtFIXED 
dtFLOPPY 
dtREMOVABLE 
dtNETWORK 
dtSUBSTITUTED 
dtRAMDRIVE 
dtCDROM 

◆ _FILE_SYS_TYPE

Enumerator
fsUNKNOWN 
fsINVALID 
fsFAT12 
fsFAT16 
fsFAT32 
fsEXFAT 
fsHPFS 
fsNTFS 
fsNTFS5 
fsNTFS51 
fsCDFS 
fsUDF 
fsEXT2 
fsEXT3 
fsEXT4 

Function Documentation

◆ GetVersion()

uint32_t STDCALL GetVersion ( void )

General Functions (Compatibility)

◆ GetVersionEx()

BOOL STDCALL GetVersionEx ( OSVERSIONINFOA * lpversioninformation)

◆ GetVersionExA()

BOOL STDCALL GetVersionExA ( OSVERSIONINFOA * lpversioninformation)

◆ GetVersionExW()

BOOL STDCALL GetVersionExW ( OSVERSIONINFOW * lpversioninformation)

◆ GetSystemInfo()

void STDCALL GetSystemInfo ( SYSTEM_INFO * lpsysteminfo)

◆ GetNativeSystemInfo()

void STDCALL GetNativeSystemInfo ( SYSTEM_INFO * lpsysteminfo)

◆ GetLargePageMinimum()

SIZE_T STDCALL GetLargePageMinimum ( void )

◆ GetComputerName()

BOOL STDCALL GetComputerName ( char * lpbuffer,
uint32_t * nsize )

◆ GetComputerNameA()

BOOL STDCALL GetComputerNameA ( char * lpbuffer,
uint32_t * nsize )

◆ GetComputerNameW()

BOOL STDCALL GetComputerNameW ( WCHAR * lpbuffer,
uint32_t * nsize )

◆ SetComputerName()

BOOL STDCALL SetComputerName ( const char * lpcomputername)

◆ SetComputerNameA()

BOOL STDCALL SetComputerNameA ( const char * lpcomputername)

◆ SetComputerNameW()

BOOL STDCALL SetComputerNameW ( const WCHAR * lpcomputername)

◆ GetComputerNameEx()

BOOL STDCALL GetComputerNameEx ( COMPUTER_NAME_FORMAT nametype,
char * lpbuffer,
uint32_t * nsize )

◆ GetComputerNameExA()

BOOL STDCALL GetComputerNameExA ( COMPUTER_NAME_FORMAT nametype,
char * lpbuffer,
uint32_t * nsize )

◆ GetComputerNameExW()

BOOL STDCALL GetComputerNameExW ( COMPUTER_NAME_FORMAT nametype,
WCHAR * lpbuffer,
uint32_t * nsize )

◆ SetComputerNameEx()

BOOL STDCALL SetComputerNameEx ( COMPUTER_NAME_FORMAT nametype,
const char * lpbuffer )

◆ SetComputerNameExA()

BOOL STDCALL SetComputerNameExA ( COMPUTER_NAME_FORMAT nametype,
const char * lpbuffer )

◆ SetComputerNameExW()

BOOL STDCALL SetComputerNameExW ( COMPUTER_NAME_FORMAT nametype,
const WCHAR * lpbuffer )

◆ ExitUltibo()

BOOL STDCALL ExitUltibo ( uint32_t dwreserved,
UINT ureserved )

◆ ExitUltiboEx()

BOOL STDCALL ExitUltiboEx ( UINT uflags,
uint32_t dwreserved )

◆ RestartComputer()

BOOL STDCALL RestartComputer ( uint32_t delay)

General Functions (Ultibo)

Parameters
DelayMilliseconds to delay before restart

◆ ShutdownComputer()

BOOL STDCALL ShutdownComputer ( uint32_t delay)
Parameters
DelayMilliseconds to delay before shutdown

◆ Uptime()

FILETIME STDCALL Uptime ( void )

Get the current system up time as a FileTime value.

◆ GetTickCount()

uint32_t STDCALL GetTickCount ( void )

Time Functions (Compatibility)

◆ GetTickCount64()

ULONGLONG STDCALL GetTickCount64 ( void )

◆ GetSystemTime()

void STDCALL GetSystemTime ( SYSTEMTIME * lpsystemtime)

Get the current system time in UTC.

◆ GetSystemTimeAsFileTime()

void STDCALL GetSystemTimeAsFileTime ( FILETIME * lpsystemtimeasfiletime)

Get the current system time in UTC as a FileTime value.

◆ SetSystemTime()

BOOL STDCALL SetSystemTime ( SYSTEMTIME * lpsystemtime)

Set the current system time in UTC.

◆ GetLocalTime()

void STDCALL GetLocalTime ( SYSTEMTIME * lpsystemtime)

Get the current local time.

◆ SetLocalTime()

BOOL STDCALL SetLocalTime ( SYSTEMTIME * lpsystemtime)

Set the current local time.

◆ SystemTimeToTzSpecificLocalTime()

BOOL STDCALL SystemTimeToTzSpecificLocalTime ( TIME_ZONE_INFORMATION * lptimezoneinformation,
SYSTEMTIME * lpuniversaltime,
SYSTEMTIME * lplocaltime )

◆ TzSpecificLocalTimeToSystemTime()

BOOL STDCALL TzSpecificLocalTimeToSystemTime ( TIME_ZONE_INFORMATION * lptimezoneinformation,
SYSTEMTIME * lplocaltime,
SYSTEMTIME * lpuniversaltime )

◆ GetTimeZoneInformation()

uint32_t STDCALL GetTimeZoneInformation ( TIME_ZONE_INFORMATION * lptimezoneinformation)

◆ SetTimeZoneInformation()

BOOL STDCALL SetTimeZoneInformation ( TIME_ZONE_INFORMATION * lptimezoneinformation)

◆ SystemTimeToFileTime()

BOOL STDCALL SystemTimeToFileTime ( SYSTEMTIME * lpsystemtime,
FILETIME * lpfiletime )

Convert a SystemTime value to a FileTime value.

Note
lpSystemTime is assumed to be UTC / lpFileTime is returned as UTC

◆ FileTimeToSystemTime()

BOOL STDCALL FileTimeToSystemTime ( FILETIME * lpfiletime,
SYSTEMTIME * lpsystemtime )

Convert a FileTime value to a SystemTime value.

Note
lpFileTime is assumed to be UTC / lpSystemTime is returned as UTC
If lpFileTime is less than 30 December 1899 then SystemTime will be zero

◆ FileTimeToLocalFileTime()

BOOL STDCALL FileTimeToLocalFileTime ( FILETIME * lpfiletime,
FILETIME * lplocalfiletime )

Convert a FileTime in UTC to a FileTime in Local time.

Note
TIMEZONE_TIME_OFFSET is the number of minutes offset from UTC

◆ LocalFileTimeToFileTime()

BOOL STDCALL LocalFileTimeToFileTime ( FILETIME * lplocalfiletime,
FILETIME * lpfiletime )

Convert a FileTime in Local time to a FileTime in UTC.

Note
TIMEZONE_TIME_OFFSET is the number of minutes offset from UTC

◆ CompareFileTime()

long STDCALL CompareFileTime ( FILETIME * lpfiletime1,
FILETIME * lpfiletime2 )

◆ FileTimeToDosDateTime()

BOOL STDCALL FileTimeToDosDateTime ( FILETIME * lpfiletime,
uint16_t * lpfatdate,
uint16_t * lpfattime )

Convert a FileTime value to a DOS date and time value.

Note
FileTime is assumed to be Local / DOS date and time is returned as Local
If FileTime is less than 1 January 1980 then DOS date and time will be 1 January 1980

◆ DosDateTimeToFileTime()

BOOL STDCALL DosDateTimeToFileTime ( uint16_t wfatdate,
uint16_t wfattime,
FILETIME * lpfiletime )

Convert a DOS date and time value to a FileTime value.

Note
DOS date and time is assumed to be Local / FileTime is returned as Local
If DOS date and time is less than 1 January 1980 then FileTime will be 1 January 1980

◆ QueryPerformanceCounter()

BOOL STDCALL QueryPerformanceCounter ( LARGE_INTEGER * lpPerformanceCount)

Retrieves the current value of the performance counter, which is a high resolution (<1us) time stamp that can be used for time-interval measurements.

◆ QueryPerformanceFrequency()

BOOL STDCALL QueryPerformanceFrequency ( LARGE_INTEGER * lpFrequency)

Retrieves the frequency of the performance counter. The frequency of the performance counter is fixed at system boot and is consistent across all processors. Therefore, the frequency need only be queried upon application initialization, and the result can be cached.

◆ GetCurrentTime()

FILETIME STDCALL GetCurrentTime ( void )

Get the current system time in UTC as a FileTime value.

Time Functions (Ultibo)

◆ SetCurrentTime()

void STDCALL SetCurrentTime ( FILETIME * time)

Set the current system time in UTC from a FileTime value.

◆ GetTimeAdjust()

int32_t STDCALL GetTimeAdjust ( void )

Gets the time adjustment used internally.

◆ SetTimeAdjust()

void STDCALL SetTimeAdjust ( int32_t adjust)

Sets the time adjustment used internally.

◆ GetCurrentTimezone()

uint32_t STDCALL GetCurrentTimezone ( char * name,
uint32_t len )

Get the name of the current Timezone.

◆ SetCurrentTimezone()

BOOL STDCALL SetCurrentTimezone ( const char * name)

Set the current Timezone by name.

◆ GetTimezoneActiveOffset()

int32_t STDCALL GetTimezoneActiveOffset ( void )

Gets the Active Offset from the current Timezone.

◆ GetTimezoneStandardOffset()

int32_t STDCALL GetTimezoneStandardOffset ( void )

Gets the Standard Offset from the current Timezone.

◆ SetTimezoneStandardOffset()

void STDCALL SetTimezoneStandardOffset ( int32_t offset)

Sets the Standard Offset for the current Timezone.

◆ GetTimezoneDaylightOffset()

int32_t STDCALL GetTimezoneDaylightOffset ( void )

Gets the Daylight Offset from the current Timezone.

◆ SetTimezoneDaylightOffset()

void STDCALL SetTimezoneDaylightOffset ( int32_t offset)

Sets the Daylight Offset for the current Timezone.

◆ GetTimezoneStandardStart()

uint32_t STDCALL GetTimezoneStandardStart ( char * description,
uint32_t len )

Get the description of the standard time start for the current Timezone.

◆ GetTimezoneDaylightStart()

uint32_t STDCALL GetTimezoneDaylightStart ( char * description,
uint32_t len )

Get the description of the daylight time start for the current Timezone.

◆ GetTimezoneStandardDate()

double_t STDCALL GetTimezoneStandardDate ( void )

Get the next date of the standard time start for the current Timezone.

◆ GetTimezoneDaylightDate()

double_t STDCALL GetTimezoneDaylightDate ( void )

Get the next date of the daylight time start for the current Timezone.

◆ FileTimeToDateTime()

double_t STDCALL FileTimeToDateTime ( FILETIME * filetime)

Convert a FileTime value to a DateTime value.

Note
FileTime is assumed to be UTC / DateTime is returned as Local
If FileTime is less than 30 December 1899 then Result will be zero

◆ DateTimeToFileTime()

FILETIME STDCALL DateTimeToFileTime ( double_t datetime)

Convert a DateTime value to a FileTime value.

Note
DateTime is assumed to be Local / FileTime is returned as UTC

◆ LocalFileTimeToDateTime()

double_t STDCALL LocalFileTimeToDateTime ( FILETIME * filetime)

Convert a FileTime value to a DateTime value.

Note
FileTime is assumed to be Local / DateTime is returned as Local
If FileTime is less than 30 December 1899 then Result will be zero

◆ DateTimeToLocalFileTime()

FILETIME STDCALL DateTimeToLocalFileTime ( double_t datetime)

Convert a DateTime value to a FileTime value.

Note
DateTime is assumed to be Local / FileTime is returned as Local

◆ SystemFileTimeToDateTime()

double_t STDCALL SystemFileTimeToDateTime ( FILETIME * filetime)

Convert a FileTime value to a DateTime value.

Note
FileTime is assumed to be UTC / DateTime is returned as UTC
If FileTime is less than 30 December 1899 then Result will be zero
Same as LocalFileTimeToDateTime but renamed for clarity

◆ DateTimeToSystemFileTime()

FILETIME STDCALL DateTimeToSystemFileTime ( double_t datetime)

Convert a DateTime value to a FileTime value.

Note
DateTime is assumed to be UTC / FileTime is returned as UTC
Same as DateTimeToLocalFileTime but renamed for clarity

◆ FileTimeToUnixTime()

time_t STDCALL FileTimeToUnixTime ( FILETIME * filetime)

Convert a FileTime value to a Unix/Linux time value.

Note
FileTime is assumed to be Local / UnixTime is returned as Local
If FileTime is less than 1 January 1970 then Result will be zero

◆ UnixTimeToFileTime()

FILETIME STDCALL UnixTimeToFileTime ( time_t unixtime)

Convert a Unix/Linux time value to a FileTime value.

Note
UnixTime is assumed to be Local / FileTime is returned as Local

◆ UnixTimeToDateTime()

double_t STDCALL UnixTimeToDateTime ( time_t unixtime)

Convert a Unix/Linux time value to a DateTime value.

Note
UnixTime is assumed to be Local / DateTime is returned as Local

◆ DateTimeToUnixTime()

time_t STDCALL DateTimeToUnixTime ( double_t datetime)

Convert a DateTime value to a Unix/Linux time value.

Note
DateTime is assumed to be Local / UnixTime is returned as Local
If DateTime is less than 1 January 1970 then Result will be zero

◆ FileTimeToFileDate()

int STDCALL FileTimeToFileDate ( FILETIME * filetime)

Convert a FileTime value to a DOS date value.

Note
FileTime is assumed to be UTC / FileDate is returned as Local
If FileTime is less than 1 January 1980 then Result will be zero

◆ FileDateToFileTime()

FILETIME STDCALL FileDateToFileTime ( int filedate)

Convert a DOS date value to a FileTime value.

Note
FileDate is assumed to be Local / FileTime is returned as UTC
If FileDate is less than 1 January 1980 then Result will be zero

◆ FileTimeToAdjustedTime()

FILETIME STDCALL FileTimeToAdjustedTime ( FILETIME * filetime)

Convert a local FileTime value to a DST adjusted FileTime value.

Note
TIMEZONE_TIME_ADJUST is the number of minutes difference from TIMEZONE_TIME_OFFSET

◆ AdjustedTimeToFileTime()

FILETIME STDCALL AdjustedTimeToFileTime ( FILETIME * filetime)

Convert a DST adjusted FileTime value to a local FileTime value.

Note
TIMEZONE_TIME_ADJUST is the number of minutes difference from TIMEZONE_TIME_OFFSET

◆ RoundFileTime()

FILETIME STDCALL RoundFileTime ( FILETIME * filetime)

Round FileTime to nearest 2 seconds for compatibility with FileDate.

◆ ConvertFileTime()

FILETIME STDCALL ConvertFileTime ( FILETIME * filetime,
int offset,
BOOL local )

Convert a FileTime value to a specified offset (Local or UTC).

Note
Offset is the number of minutes to adjust in conversion Local indicates whether the source time is Local or UTC

◆ ConvertDateTime()

double_t STDCALL ConvertDateTime ( double_t datetime,
int offset,
BOOL local )

Convert a DateTime value to a specified offset (Local or UTC).

Note
Offset is the number of minutes to adjust in conversion Local indicates whether the source time is Local or UTC

◆ GetDiskType()

UINT STDCALL GetDiskType ( const char * lprootpathname)

GetDriveType - Already defined below.

Drive Functions (Compatibility)

◆ GetDriveTypeA()

UINT STDCALL GetDriveTypeA ( const char * lprootpathname)

◆ GetDriveTypeW()

UINT STDCALL GetDriveTypeW ( const WCHAR * lprootpathname)

◆ GetLogicalDrives()

uint32_t STDCALL GetLogicalDrives ( void )

◆ GetLogicalDriveStrings()

uint32_t STDCALL GetLogicalDriveStrings ( uint32_t nbufferlength,
char * lpbuffer )

◆ GetLogicalDriveStringsA()

uint32_t STDCALL GetLogicalDriveStringsA ( uint32_t nbufferlength,
char * lpbuffer )

◆ GetLogicalDriveStringsW()

uint32_t STDCALL GetLogicalDriveStringsW ( uint32_t nbufferlength,
WCHAR * lpbuffer )

◆ DefineDosDevice()

BOOL STDCALL DefineDosDevice ( uint32_t dwflags,
const char * lpdevicename,
const char * lptargetpath )

◆ DefineDosDeviceA()

BOOL STDCALL DefineDosDeviceA ( uint32_t dwflags,
const char * lpdevicename,
const char * lptargetpath )

◆ DefineDosDeviceW()

BOOL STDCALL DefineDosDeviceW ( uint32_t dwflags,
const WCHAR * lpdevicename,
const WCHAR * lptargetpath )

◆ QueryDosDevice()

uint32_t STDCALL QueryDosDevice ( const char * lpdevicename,
char * lptargetpath,
uint32_t ucchmax )

◆ QueryDosDeviceA()

uint32_t STDCALL QueryDosDeviceA ( const char * lpdevicename,
char * lptargetpath,
uint32_t ucchmax )

◆ QueryDosDeviceW()

uint32_t STDCALL QueryDosDeviceW ( const WCHAR * lpdevicename,
WCHAR * lptargetpath,
uint32_t ucchmax )

◆ SetVolumeLabel()

BOOL STDCALL SetVolumeLabel ( const char * lprootpathname,
const char * lpvolumename )

◆ SetVolumeLabelA()

BOOL STDCALL SetVolumeLabelA ( const char * lprootpathname,
const char * lpvolumename )

◆ SetVolumeLabelW()

BOOL STDCALL SetVolumeLabelW ( const WCHAR * lprootpathname,
const WCHAR * lpvolumename )

◆ GetVolumeInformation()

BOOL STDCALL GetVolumeInformation ( const char * lprootpathname,
char * lpvolumenamebuffer,
uint32_t nvolumenamesize,
DWORD * lpvolumeserialnumber,
uint32_t * lpmaximumcomponentlength,
uint32_t * lpfilesystemflags,
char * lpfilesystemnamebuffer,
uint32_t nfilesystemnamesize )

◆ GetVolumeInformationA()

BOOL STDCALL GetVolumeInformationA ( const char * lprootpathname,
char * lpvolumenamebuffer,
uint32_t nvolumenamesize,
DWORD * lpvolumeserialnumber,
uint32_t * lpmaximumcomponentlength,
uint32_t * lpfilesystemflags,
char * lpfilesystemnamebuffer,
uint32_t nfilesystemnamesize )

◆ GetVolumeInformationW()

BOOL STDCALL GetVolumeInformationW ( const WCHAR * lprootpathname,
WCHAR * lpvolumenamebuffer,
uint32_t nvolumenamesize,
DWORD * lpvolumeserialnumber,
uint32_t * lpmaximumcomponentlength,
uint32_t * lpfilesystemflags,
WCHAR * lpfilesystemnamebuffer,
uint32_t nfilesystemnamesize )

◆ GetDiskFreeSpace()

BOOL STDCALL GetDiskFreeSpace ( const char * lprootpathname,
uint32_t * lpsectorspercluster,
uint32_t * lpbytespersector,
uint32_t * lpnumberoffreeclusters,
uint32_t * lptotalnumberofclusters )

◆ GetDiskFreeSpaceA()

BOOL STDCALL GetDiskFreeSpaceA ( const char * lprootpathname,
uint32_t * lpsectorspercluster,
uint32_t * lpbytespersector,
uint32_t * lpnumberoffreeclusters,
uint32_t * lptotalnumberofclusters )

◆ GetDiskFreeSpaceW()

BOOL STDCALL GetDiskFreeSpaceW ( const WCHAR * lprootpathname,
uint32_t * lpsectorspercluster,
uint32_t * lpbytespersector,
uint32_t * lpnumberoffreeclusters,
uint32_t * lptotalnumberofclusters )

◆ GetDiskFreeSpaceEx()

BOOL STDCALL GetDiskFreeSpaceEx ( const char * lpdirectoryname,
ULARGE_INTEGER * lpfreebytesavailabletocaller,
ULARGE_INTEGER * lptotalnumberofbytes,
ULARGE_INTEGER * lptotalnumberoffreebytes )

◆ GetDiskFreeSpaceExA()

BOOL STDCALL GetDiskFreeSpaceExA ( const char * lpdirectoryname,
ULARGE_INTEGER * lpfreebytesavailabletocaller,
ULARGE_INTEGER * lptotalnumberofbytes,
ULARGE_INTEGER * lptotalnumberoffreebytes )

◆ GetDiskFreeSpaceExW()

BOOL STDCALL GetDiskFreeSpaceExW ( const WCHAR * lpdirectoryname,
ULARGE_INTEGER * lpfreebytesavailabletocaller,
ULARGE_INTEGER * lptotalnumberofbytes,
ULARGE_INTEGER * lptotalnumberoffreebytes )

◆ GetPathDrive()

uint8_t STDCALL GetPathDrive ( const char * path)

Drive Functions (Ultibo)

◆ GetDriveType()

DRIVE_TYPE STDCALL GetDriveType ( uint8_t drive)

◆ GetDriveData()

void STDCALL GetDriveData ( uint8_t drive,
DRIVE_DATA * data )

◆ GetDriveAttr()

uint32_t STDCALL GetDriveAttr ( uint8_t drive)

◆ GetDriveLabel()

uint32_t STDCALL GetDriveLabel ( uint8_t drive,
char * label,
uint32_t len )

◆ SetDriveLabel()

BOOL STDCALL SetDriveLabel ( uint8_t drive,
const char * label )

◆ GetDriveSerial()

uint32_t STDCALL GetDriveSerial ( uint8_t drive)

◆ SetDriveSerial()

BOOL STDCALL SetDriveSerial ( uint8_t drive,
uint32_t serial )

◆ IsDriveValid()

BOOL STDCALL IsDriveValid ( uint8_t drive)

◆ GetValidDrives()

uint32_t STDCALL GetValidDrives ( void )

◆ GetValidDriveNames()

uint32_t STDCALL GetValidDriveNames ( char * names,
uint32_t len )

◆ GetDriveFreeSpace()

uint32_t STDCALL GetDriveFreeSpace ( uint8_t drive)

◆ GetDriveFreeSpaceEx()

int64_t STDCALL GetDriveFreeSpaceEx ( uint8_t drive)

◆ GetDriveTotalSpace()

uint32_t STDCALL GetDriveTotalSpace ( uint8_t drive)

◆ GetDriveTotalSpaceEx()

int64_t STDCALL GetDriveTotalSpaceEx ( uint8_t drive)

◆ GetDriveInformation()

BOOL STDCALL GetDriveInformation ( const char * path,
uint32_t * clustersize,
int64_t * totalclustercount,
int64_t * freeclustercount )

◆ GetCurrentDrive()

uint8_t STDCALL GetCurrentDrive ( void )

◆ SetCurrentDrive()

BOOL STDCALL SetCurrentDrive ( const char * drive)

◆ AreFileApisANSI()

BOOL STDCALL AreFileApisANSI ( void )

File Functions (Compatibility)

◆ SetFileApisToOEM()

void STDCALL SetFileApisToOEM ( void )

◆ SetFileApisToANSI()

void STDCALL SetFileApisToANSI ( void )

◆ CreateFile()

HANDLE STDCALL CreateFile ( const char * lpfilename,
uint32_t dwdesiredaccess,
uint32_t dwsharemode,
SECURITY_ATTRIBUTES * lpsecurityattributes,
uint32_t dwcreationdisposition,
uint32_t dwflagsandattributes,
HANDLE htemplatefile )

◆ CreateFileA()

HANDLE STDCALL CreateFileA ( const char * lpfilename,
uint32_t dwdesiredaccess,
uint32_t dwsharemode,
SECURITY_ATTRIBUTES * lpsecurityattributes,
uint32_t dwcreationdisposition,
uint32_t dwflagsandattributes,
HANDLE htemplatefile )
Note
lpSecurityAttributes and hTemplateFile are currently ignored by Ultibo

◆ CreateFileW()

HANDLE STDCALL CreateFileW ( const WCHAR * lpfilename,
uint32_t dwdesiredaccess,
uint32_t dwsharemode,
SECURITY_ATTRIBUTES * lpsecurityattributes,
uint32_t dwcreationdisposition,
uint32_t dwflagsandattributes,
HANDLE htemplatefile )
Note
lpSecurityAttributes and hTemplateFile are currently ignored by Ultibo

◆ SetFileAttributes()

BOOL STDCALL SetFileAttributes ( const char * lpfilename,
uint32_t dwfileattributes )

◆ SetFileAttributesA()

BOOL STDCALL SetFileAttributesA ( const char * lpfilename,
uint32_t dwfileattributes )

◆ SetFileAttributesW()

BOOL STDCALL SetFileAttributesW ( const WCHAR * lpfilename,
uint32_t dwfileattributes )

◆ GetFileAttributes()

uint32_t STDCALL GetFileAttributes ( const char * lpfilename)

◆ GetFileAttributesA()

uint32_t STDCALL GetFileAttributesA ( const char * lpfilename)

◆ GetFileAttributesW()

uint32_t STDCALL GetFileAttributesW ( const WCHAR * lpfilename)

◆ DeleteFile()

BOOL STDCALL DeleteFile ( const char * lpfilename)

◆ DeleteFileA()

BOOL STDCALL DeleteFileA ( const char * lpfilename)

◆ DeleteFileW()

BOOL STDCALL DeleteFileW ( const WCHAR * lpfilename)

◆ MoveFile()

BOOL STDCALL MoveFile ( const char * lpexistingfilename,
const char * lpnewfilename )

◆ MoveFileA()

BOOL STDCALL MoveFileA ( const char * lpexistingfilename,
const char * lpnewfilename )

◆ MoveFileW()

BOOL STDCALL MoveFileW ( const WCHAR * lpexistingfilename,
const WCHAR * lpnewfilename )

◆ FindFirstFile()

HANDLE STDCALL FindFirstFile ( const char * lpfilename,
WIN32_FIND_DATAA * lpfindfiledata )

◆ FindFirstFileA()

HANDLE STDCALL FindFirstFileA ( const char * lpfilename,
WIN32_FIND_DATAA * lpfindfiledata )

◆ FindFirstFileW()

HANDLE STDCALL FindFirstFileW ( const WCHAR * lpfilename,
WIN32_FIND_DATAW * lpfindfiledata )

◆ FindNextFile()

BOOL STDCALL FindNextFile ( HANDLE hfindfile,
WIN32_FIND_DATAA * lpfindfiledata )

◆ FindNextFileA()

BOOL STDCALL FindNextFileA ( HANDLE hfindfile,
WIN32_FIND_DATAA * lpfindfiledata )

◆ FindNextFileW()

BOOL STDCALL FindNextFileW ( HANDLE hfindfile,
WIN32_FIND_DATAW * lpfindfiledata )

◆ FindCloseFile()

BOOL STDCALL FindCloseFile ( HANDLE hfindfile)

◆ GetFileSize()

uint32_t STDCALL GetFileSize ( HANDLE hfile,
DWORD * lpfilesizehigh )

◆ GetFileSizeEx()

BOOL STDCALL GetFileSizeEx ( HANDLE hfile,
LARGE_INTEGER * lpfilesize )

◆ GetFileTime()

BOOL STDCALL GetFileTime ( HANDLE hfile,
FILETIME * lpcreationtime,
FILETIME * lplastaccesstime,
FILETIME * lplastwritetime )

◆ SetFileTime()

BOOL STDCALL SetFileTime ( HANDLE hfile,
FILETIME * lpcreationtime,
FILETIME * lplastaccesstime,
FILETIME * lplastwritetime )

◆ ReadFile()

BOOL STDCALL ReadFile ( HANDLE hfile,
void * lpbuffer,
uint32_t nnumberofbytestoread,
DWORD * lpnumberofbytesread,
OVERLAPPED * lpoverlapped )

◆ WriteFile()

BOOL STDCALL WriteFile ( HANDLE hfile,
void * lpbuffer,
uint32_t nnumberofbytestowrite,
DWORD * lpnumberofbyteswritten,
OVERLAPPED * lpoverlapped )

◆ SetEndOfFile()

BOOL STDCALL SetEndOfFile ( HANDLE hfile)

◆ SetFilePointer()

uint32_t STDCALL SetFilePointer ( HANDLE hfile,
long ldistancetomove,
long * lpdistancetomovehigh,
uint32_t dwmovemethod )

◆ SetFilePointerEx()

BOOL STDCALL SetFilePointerEx ( HANDLE hfile,
LARGE_INTEGER lidistancetomove,
LARGE_INTEGER * lpnewfilepointer,
uint32_t dwmovemethod )

◆ FlushFileBuffers()

BOOL STDCALL FlushFileBuffers ( HANDLE hfile)

◆ CopyFile()

BOOL STDCALL CopyFile ( const char * lpexistingfilename,
const char * lpnewfilename,
BOOL bfailifexists )

◆ CopyFileA()

BOOL STDCALL CopyFileA ( const char * lpexistingfilename,
const char * lpnewfilename,
BOOL bfailifexists )

◆ CopyFileW()

BOOL STDCALL CopyFileW ( const WCHAR * lpexistingfilename,
const WCHAR * lpnewfilename,
BOOL bfailifexists )

◆ SetFileShortName()

BOOL STDCALL SetFileShortName ( HANDLE hfile,
const char * lpshortname )

◆ SetFileShortNameA()

BOOL STDCALL SetFileShortNameA ( HANDLE hfile,
const char * lpshortname )

◆ SetFileShortNameW()

BOOL STDCALL SetFileShortNameW ( HANDLE hfile,
const WCHAR * lpshortname )

◆ CreateHardLink()

BOOL STDCALL CreateHardLink ( const char * lpfilename,
const char * lpexistingfilename,
SECURITY_ATTRIBUTES * lpsecurityattributes )

◆ CreateHardLinkA()

BOOL STDCALL CreateHardLinkA ( const char * lpfilename,
const char * lpexistingfilename,
SECURITY_ATTRIBUTES * lpsecurityattributes )
Note
lpSecurityAttributes is currently ignored by Ultibo

◆ CreateHardLinkW()

BOOL STDCALL CreateHardLinkW ( const WCHAR * lpfilename,
const WCHAR * lpexistingfilename,
SECURITY_ATTRIBUTES * lpsecurityattributes )
Note
lpSecurityAttributes is currently ignored by Ultibo

◆ CreateSymbolicLink()

BOOL STDCALL CreateSymbolicLink ( const char * lpsymlinkfilename,
const char * lptargetfilename,
uint32_t dwflags )

◆ CreateSymbolicLinkA()

BOOL STDCALL CreateSymbolicLinkA ( const char * lpsymlinkfilename,
const char * lptargetfilename,
uint32_t dwflags )

◆ CreateSymbolicLinkW()

BOOL STDCALL CreateSymbolicLinkW ( const WCHAR * lpsymlinkfilename,
const WCHAR * lptargetfilename,
uint32_t dwflags )

◆ GetFileInformationByHandle()

BOOL STDCALL GetFileInformationByHandle ( HANDLE hfile,
BY_HANDLE_FILE_INFORMATION * lpfileinformation )

◆ GetFinalPathNameByHandle()

uint32_t STDCALL GetFinalPathNameByHandle ( HANDLE hfile,
char * lpszFilePath,
uint32_t cchFilePath,
uint32_t dwFlags )

Retrieves the final path for the specified open file handle.

◆ GetFinalPathNameByHandleA()

uint32_t STDCALL GetFinalPathNameByHandleA ( HANDLE hfile,
char * lpszFilePath,
uint32_t cchFilePath,
uint32_t dwFlags )

Retrieves the final path for the specified open file handle.

◆ GetFinalPathNameByHandleW()

uint32_t STDCALL GetFinalPathNameByHandleW ( HANDLE hfile,
WCHAR * lpszFilePath,
uint32_t cchFilePath,
uint32_t dwFlags )

Retrieves the final path for the specified open file handle.

◆ CreateDirectory()

BOOL STDCALL CreateDirectory ( const char * lppathname,
SECURITY_ATTRIBUTES * lpsecurityattributes )

File Functions (Ultibo) Directory Functions (Compatibility)

◆ CreateDirectoryA()

BOOL STDCALL CreateDirectoryA ( const char * lppathname,
SECURITY_ATTRIBUTES * lpsecurityattributes )
Note
lpSecurityAttributes is currently ignored by Ultibo

◆ CreateDirectoryW()

BOOL STDCALL CreateDirectoryW ( const WCHAR * lppathname,
SECURITY_ATTRIBUTES * lpsecurityattributes )
Note
lpSecurityAttributes is currently ignored by Ultibo

◆ RemoveDirectory()

BOOL STDCALL RemoveDirectory ( const char * lppathname)

◆ RemoveDirectoryA()

BOOL STDCALL RemoveDirectoryA ( const char * lppathname)

◆ RemoveDirectoryW()

BOOL STDCALL RemoveDirectoryW ( const WCHAR * lppathname)

◆ SetCurrentDirectory()

BOOL STDCALL SetCurrentDirectory ( const char * lppathname)

◆ SetCurrentDirectoryA()

BOOL STDCALL SetCurrentDirectoryA ( const char * lppathname)

◆ SetCurrentDirectoryW()

BOOL STDCALL SetCurrentDirectoryW ( const WCHAR * lppathname)

◆ GetCurrentDirectory()

uint32_t STDCALL GetCurrentDirectory ( uint32_t nbufferlength,
char * lpbuffer )

◆ GetCurrentDirectoryA()

uint32_t STDCALL GetCurrentDirectoryA ( uint32_t nbufferlength,
char * lpbuffer )

◆ GetCurrentDirectoryW()

uint32_t STDCALL GetCurrentDirectoryW ( uint32_t nbufferlength,
WCHAR * lpbuffer )

◆ GetLongPathName()

uint32_t STDCALL GetLongPathName ( const char * lpszshortpath,
char * lpszlongpath,
uint32_t cchbuffer )

◆ GetLongPathNameA()

uint32_t STDCALL GetLongPathNameA ( const char * lpszshortpath,
char * lpszlongpath,
uint32_t cchbuffer )

◆ GetLongPathNameW()

uint32_t STDCALL GetLongPathNameW ( const WCHAR * lpszshortpath,
WCHAR * lpszlongpath,
uint32_t cchbuffer )

◆ GetShortPathName()

uint32_t STDCALL GetShortPathName ( const char * lpszlongpath,
char * lpszshortpath,
uint32_t cchbuffer )

◆ GetShortPathNameA()

uint32_t STDCALL GetShortPathNameA ( const char * lpszlongpath,
char * lpszshortpath,
uint32_t cchbuffer )

◆ GetShortPathNameW()

uint32_t STDCALL GetShortPathNameW ( const WCHAR * lpszlongpath,
WCHAR * lpszshortpath,
uint32_t cchbuffer )

◆ GetFullPathName()

uint32_t STDCALL GetFullPathName ( const char * lpfilename,
uint32_t nbufferlength,
char * lpbuffer,
char * lpfilepart )

◆ GetFullPathNameA()

uint32_t STDCALL GetFullPathNameA ( const char * lpfilename,
uint32_t nbufferlength,
char * lpbuffer,
char * lpfilepart )
Note
lpFilePart is currently ignored by Ultibo

◆ GetFullPathNameW()

uint32_t STDCALL GetFullPathNameW ( const WCHAR * lpfilename,
uint32_t nbufferlength,
WCHAR * lpbuffer,
WCHAR * lpfilepart )
Note
lpFilePart is currently ignored by Ultibo

◆ GetCommandLine()

char *STDCALL GetCommandLine ( void )

Directory Functions (Ultibo) Command Line Functions (Compatibility)

◆ GetCommandLineA()

char *STDCALL GetCommandLineA ( void )
Note
The returned string must be freed with SysUtils.StrDispose

◆ GetCommandLineW()

WCHAR *STDCALL GetCommandLineW ( void )
Note
The returned string must be freed with SysUtils.StrDispose

◆ IsParamPresent()

BOOL STDCALL IsParamPresent ( const char * param)

Check if the specified parameter is present in the command line.

Command Line Functions (Ultibo)

◆ GetParamIndex()

int STDCALL GetParamIndex ( const char * param)

Get the index of the specified parameter in the command line.

◆ GetParamValue()

uint32_t STDCALL GetParamValue ( const char * param,
char * value,
uint32_t len )

Get the value of the specified parameter from the command line.

◆ GetEnvironmentStrings()

char *STDCALL GetEnvironmentStrings ( void )

Environment Functions (Compatibility)

◆ GetEnvironmentStringsA()

char *STDCALL GetEnvironmentStringsA ( void )

◆ GetEnvironmentStringsW()

WCHAR *STDCALL GetEnvironmentStringsW ( void )

◆ FreeEnvironmentStrings()

BOOL STDCALL FreeEnvironmentStrings ( char * pstr)

◆ FreeEnvironmentStringsA()

BOOL STDCALL FreeEnvironmentStringsA ( char * pstr)

◆ FreeEnvironmentStringsW()

BOOL STDCALL FreeEnvironmentStringsW ( WCHAR * pstr)

◆ GetEnvironmentVariable()

uint32_t STDCALL GetEnvironmentVariable ( const char * lpname,
char * lpbuffer,
uint32_t nsize )

◆ GetEnvironmentVariableA()

uint32_t STDCALL GetEnvironmentVariableA ( const char * lpname,
char * lpbuffer,
uint32_t nsize )

◆ GetEnvironmentVariableW()

uint32_t STDCALL GetEnvironmentVariableW ( const WCHAR * lpname,
WCHAR * lpbuffer,
uint32_t nsize )

◆ SetEnvironmentVariable()

BOOL STDCALL SetEnvironmentVariable ( const char * lpname,
const char * lpvalue )

◆ SetEnvironmentVariableA()

BOOL STDCALL SetEnvironmentVariableA ( const char * lpname,
const char * lpvalue )

◆ SetEnvironmentVariableW()

BOOL STDCALL SetEnvironmentVariableW ( const WCHAR * lpname,
const WCHAR * lpvalue )

◆ ExpandEnvironmentStrings()

uint32_t STDCALL ExpandEnvironmentStrings ( const char * lpsrc,
char * lpdst,
uint32_t nsize )

◆ ExpandEnvironmentStringsA()

uint32_t STDCALL ExpandEnvironmentStringsA ( const char * lpsrc,
char * lpdst,
uint32_t nsize )

◆ ExpandEnvironmentStringsW()

uint32_t STDCALL ExpandEnvironmentStringsW ( const WCHAR * lpsrc,
WCHAR * lpdst,
uint32_t nsize )

◆ GetLastError()

uint32_t STDCALL GetLastError ( void )

Get the last error value for the calling thread.

Error Functions (Compatibility)

◆ SetLastError()

void STDCALL SetLastError ( uint32_t dwerrcode)

Set the last error value for the calling thread.

◆ CreateGUID()

GUID STDCALL CreateGUID ( void )

Create a new GUID GUID has the following format DWORD-WORD-WORD-WORD-WORDDWORD | Not Swapped |.

String Functions (Ultibo) GUID Functions (Ultibo)

◆ GUIDToString()

uint32_t STDCALL GUIDToString ( GUID * value,
char * string,
uint32_t len )

Convert a TGUID to a string representation.

◆ StringToGUID()

GUID STDCALL StringToGUID ( const char * value)

Convert a string to a native TGUID type.

◆ NullGUID()

BOOL STDCALL NullGUID ( GUID * guid)

Check if a TGUID is empty (All zeroes).

◆ CompareGUID()

BOOL STDCALL CompareGUID ( GUID * guid1,
GUID * guid2 )

Check whether two TGUID variables are equal.

◆ Min()

int STDCALL Min ( int a,
int b )

SID Functions (Ultibo) Date Functions (Ultibo) Numeric Functions (Ultibo)

◆ Max()

int STDCALL Max ( int a,
int b )

◆ MinEx()

uint32_t STDCALL MinEx ( uint32_t a,
uint32_t b )

◆ MaxEx()

uint32_t STDCALL MaxEx ( uint32_t a,
uint32_t b )

◆ Min64()

int64_t STDCALL Min64 ( int64_t * a,
int64_t * b )

◆ Max64()

int64_t STDCALL Max64 ( int64_t * a,
int64_t * b )

◆ Or64()

int64_t STDCALL Or64 ( int64_t * value1,
int64_t * value2 )

◆ And64()

int64_t STDCALL And64 ( int64_t * value1,
int64_t * value2 )

◆ Xor64()

int64_t STDCALL Xor64 ( int64_t * value1,
int64_t * value2 )

◆ Not64()

int64_t STDCALL Not64 ( int64_t * value)

◆ Rol32()

uint32_t STDCALL Rol32 ( uint32_t value,
uint8_t count )

◆ Ror32()

uint32_t STDCALL Ror32 ( uint32_t value,
uint8_t count )

◆ WordSwap()

uint16_t STDCALL WordSwap ( uint16_t value)

◆ LongSwap()

uint32_t STDCALL LongSwap ( uint32_t value)

◆ Int64Swap()

int64_t STDCALL Int64Swap ( int64_t * value)

◆ BufferSwap()

BOOL STDCALL BufferSwap ( void * buffer,
uint32_t size )

Swap each word in the buffer supplied up to size.

Note
Size is the number of Bytes in the buffer to swap

◆ GenerateNameHash()

uint32_t STDCALL GenerateNameHash ( const char * name,
int size )

Sum of (byte value + 1) * (position + 257) for all bytes in uppercase string.

Hash Functions (Ultibo)

Note
Case Insensitive Hash

◆ GenerateStringHash()

uint32_t STDCALL GenerateStringHash ( const char * value,
BOOL casesensitive )

Sum of (byte value + 1) * (position + 257) for all bytes in string.

◆ IsValidLocale()

BOOL STDCALL IsValidLocale ( LCID localeid,
uint32_t dwflags )

Locale Functions (Compatibility)

◆ GetSystemDefaultLCID()

LCID STDCALL GetSystemDefaultLCID ( void )

◆ GetUserDefaultLCID()

LCID STDCALL GetUserDefaultLCID ( void )

◆ GetThreadLocale()

LCID STDCALL GetThreadLocale ( void )

◆ SetThreadLocale()

BOOL STDCALL SetThreadLocale ( LCID localeid)

◆ SetSystemDefaultLCID()

BOOL STDCALL SetSystemDefaultLCID ( LCID localeid)

Locale Functions (Ultibo)

◆ WideCharToString()

uint32_t STDCALL WideCharToString ( const WCHAR * buffer,
char * string,
uint32_t len )

A replacement for WideCharToString in System unit to allow cross platform compatibility.

Note
The WideStringManager installed by the Unicode unit should make the System version equivalent

◆ WideCharLenToString()

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.

Note
Length is the size of the Buffer in WideChars (not Bytes)
The WideStringManager installed by the Unicode unit should make the System version equivalent

◆ StringToWideChar()

BOOL STDCALL StringToWideChar ( const char * string,
WCHAR * buffer,
int size )

A replacement for StringToWideChar in System unit to allow cross platform compatibility.

Note
Size is the size of the Buffer in Bytes (not WideChars)
The WideStringManager installed by the Unicode unit should make the System version equivalent

◆ IsValidCodePage()

BOOL STDCALL IsValidCodePage ( UINT codepage)

Code Page Functions (Compatibility)

◆ GetACP()

UINT STDCALL GetACP ( void )

◆ GetOEMCP()

UINT STDCALL GetOEMCP ( void )

◆ GetConsoleCP()

UINT STDCALL GetConsoleCP ( void )

◆ SetConsoleCP()

BOOL STDCALL SetConsoleCP ( UINT wcodepageid)

◆ GetConsoleOutputCP()

UINT STDCALL GetConsoleOutputCP ( void )

◆ SetConsoleOutputCP()

BOOL STDCALL SetConsoleOutputCP ( UINT wcodepageid)

◆ GetCPInfo()

BOOL STDCALL GetCPInfo ( UINT codepage,
CPINFO * lpcpinfo )

◆ GetCPInfoEx()

BOOL STDCALL GetCPInfoEx ( UINT codepage,
uint32_t dwflags,
CPINFOEXA * lpcpinfoex )

◆ GetCPInfoExA()

BOOL STDCALL GetCPInfoExA ( UINT codepage,
uint32_t dwflags,
CPINFOEXA * lpcpinfoex )

◆ GetCPInfoExW()

BOOL STDCALL GetCPInfoExW ( UINT codepage,
uint32_t dwflags,
CPINFOEXW * lpcpinfoex )

◆ SetACP()

BOOL STDCALL SetACP ( UINT codepage)

Code Page Functions (Ultibo)

◆ SetOEMCP()

BOOL STDCALL SetOEMCP ( UINT codepage)

◆ MultiByteToWideChar()

int STDCALL MultiByteToWideChar ( UINT codepage,
uint32_t dwflags,
char * lpmultibytestr,
int cbmultibyte,
WCHAR * lpwidecharstr,
int cchwidechar )

Translation Functions (Compatibility)

◆ WideCharToMultiByte()

int STDCALL WideCharToMultiByte ( UINT codepage,
uint32_t dwflags,
WCHAR * lpwidecharstr,
int cchwidechar,
char * lpmultibytestr,
int cbmultibyte,
char * lpdefaultchar,
BOOL * lpuseddefaultchar )

◆ CompareString()

int STDCALL CompareString ( LCID locale,
uint32_t dwcmpflags,
char * lpstring1,
int cchcount1,
char * lpstring2,
int cchcount2 )

◆ CompareStringA()

int STDCALL CompareStringA ( LCID locale,
uint32_t dwcmpflags,
char * lpstring1,
int cchcount1,
char * lpstring2,
int cchcount2 )

◆ CompareStringW()

int STDCALL CompareStringW ( LCID locale,
uint32_t dwcmpflags,
WCHAR * lpstring1,
int cchcount1,
WCHAR * lpstring2,
int cchcount2 )

◆ CharUpper()

char *STDCALL CharUpper ( char * lpsz)

◆ CharUpperA()

char *STDCALL CharUpperA ( char * lpsz)

◆ CharUpperW()

WCHAR *STDCALL CharUpperW ( WCHAR * lpsz)

◆ CharUpperBuff()

uint32_t STDCALL CharUpperBuff ( char * lpsz,
uint32_t cchlength )

◆ CharUpperBuffA()

uint32_t STDCALL CharUpperBuffA ( char * lpsz,
uint32_t cchlength )

◆ CharUpperBuffW()

uint32_t STDCALL CharUpperBuffW ( WCHAR * lpsz,
uint32_t cchlength )

◆ CharLower()

char *STDCALL CharLower ( char * lpsz)

◆ CharLowerA()

char *STDCALL CharLowerA ( char * lpsz)

◆ CharLowerW()

WCHAR *STDCALL CharLowerW ( WCHAR * lpsz)

◆ CharLowerBuff()

uint32_t STDCALL CharLowerBuff ( char * lpsz,
uint32_t cchlength )

◆ CharLowerBuffA()

uint32_t STDCALL CharLowerBuffA ( char * lpsz,
uint32_t cchlength )

◆ CharLowerBuffW()

uint32_t STDCALL CharLowerBuffW ( WCHAR * lpsz,
uint32_t cchlength )

◆ AnsiToOem()

BOOL STDCALL AnsiToOem ( char * lpszsrc,
char * lpszdst )

◆ AnsiToOemBuff()

BOOL STDCALL AnsiToOemBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToAnsi()

BOOL STDCALL OemToAnsi ( char * lpszsrc,
char * lpszdst )

◆ OemToAnsiBuff()

BOOL STDCALL OemToAnsiBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ CharToOem()

BOOL STDCALL CharToOem ( char * lpszsrc,
char * lpszdst )

◆ CharToOemA()

BOOL STDCALL CharToOemA ( char * lpszsrc,
char * lpszdst )

◆ CharToOemW()

BOOL STDCALL CharToOemW ( WCHAR * lpszsrc,
char * lpszdst )

◆ OemToChar()

BOOL STDCALL OemToChar ( char * lpszsrc,
char * lpszdst )

◆ OemToCharA()

BOOL STDCALL OemToCharA ( char * lpszsrc,
char * lpszdst )

◆ OemToCharW()

BOOL STDCALL OemToCharW ( char * lpszsrc,
WCHAR * lpszdst )

◆ CharToOemBuff()

BOOL STDCALL CharToOemBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ CharToOemBuffA()

BOOL STDCALL CharToOemBuffA ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ CharToOemBuffW()

BOOL STDCALL CharToOemBuffW ( WCHAR * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToCharBuff()

BOOL STDCALL OemToCharBuff ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToCharBuffA()

BOOL STDCALL OemToCharBuffA ( char * lpszsrc,
char * lpszdst,
uint32_t cchdstlength )

◆ OemToCharBuffW()

BOOL STDCALL OemToCharBuffW ( char * lpszsrc,
WCHAR * lpszdst,
uint32_t cchdstlength )

◆ CloseHandle()

BOOL STDCALL CloseHandle ( HANDLE hobject)

Handle Functions (Compatibility)

◆ DuplicateHandle()

BOOL STDCALL DuplicateHandle ( HANDLE hsourceprocesshandle,
HANDLE hsourcehandle,
HANDLE htargetprocesshandle,
HANDLE * lptargethandle,
uint32_t dwdesiredaccess,
BOOL binherithandle,
uint32_t dwoptions )

◆ GetHandleInformation()

BOOL STDCALL GetHandleInformation ( HANDLE hobject,
uint32_t * lpdwflags )

◆ SetHandleInformation()

BOOL STDCALL SetHandleInformation ( HANDLE hobject,
uint32_t dwmask,
uint32_t dwflags )

◆ MoveMemory()

void STDCALL MoveMemory ( void * destination,
void * source,
SIZE_T length )

Memory Functions (Compatibility)

◆ CopyMemory()

void STDCALL CopyMemory ( void * destination,
void * source,
SIZE_T length )

◆ FillMemory()

void STDCALL FillMemory ( void * destination,
SIZE_T length,
uint8_t fill )

◆ ZeroMemory()

void STDCALL ZeroMemory ( void * destination,
SIZE_T length )

◆ GlobalAlloc()

HGLOBAL STDCALL GlobalAlloc ( UINT uflags,
SIZE_T dwbytes )

◆ GlobalReAlloc()

HGLOBAL STDCALL GlobalReAlloc ( HGLOBAL hmem,
SIZE_T dwbytes,
UINT uflags )

◆ GlobalFree()

HGLOBAL STDCALL GlobalFree ( HGLOBAL hmem)

◆ GlobalSize()

SIZE_T STDCALL GlobalSize ( HGLOBAL hmem)

◆ GlobalFlags()

UINT STDCALL GlobalFlags ( HGLOBAL hmem)

◆ GlobalLock()

void *STDCALL GlobalLock ( HGLOBAL hmem)

◆ GlobalUnlock()

BOOL STDCALL GlobalUnlock ( HGLOBAL hmem)

◆ GlobalHandle()

HGLOBAL STDCALL GlobalHandle ( void * pmem)

◆ GlobalMemoryStatus()

void STDCALL GlobalMemoryStatus ( MEMORYSTATUS * lpbuffer)

◆ GlobalMemoryStatusEx()

BOOL STDCALL GlobalMemoryStatusEx ( MEMORYSTATUSEX * lpbuffer)

◆ LocalAlloc()

HLOCAL STDCALL LocalAlloc ( UINT uflags,
SIZE_T ubytes )

◆ LocalReAlloc()

HLOCAL STDCALL LocalReAlloc ( HLOCAL hmem,
SIZE_T ubytes,
UINT uflags )

◆ LocalFree()

HLOCAL STDCALL LocalFree ( HLOCAL hmem)

◆ LocalSize()

SIZE_T STDCALL LocalSize ( HLOCAL hmem)

◆ LocalFlags()

UINT STDCALL LocalFlags ( HLOCAL hmem)

◆ LocalLock()

void *STDCALL LocalLock ( HLOCAL hmem)

◆ LocalUnlock()

BOOL STDCALL LocalUnlock ( HLOCAL hmem)

◆ LocalHandle()

HLOCAL STDCALL LocalHandle ( void * pmem)

◆ VirtualAlloc()

void *STDCALL VirtualAlloc ( void * lpaddress,
SIZE_T dwsize,
uint32_t flallocationtype,
uint32_t flprotect )
Note
The value of lpAddress on entry is currently ignored by Ultibo
The value of flProtect is currently ignored by Ultibo
As per Win32, the value of dwSize is rounded to the next page multiple

◆ VirtualFree()

BOOL STDCALL VirtualFree ( void * lpaddress,
SIZE_T dwsize,
uint32_t dwfreetype )

◆ VirtualQuery()

uint32_t STDCALL VirtualQuery ( void * lpaddress,
MEMORY_BASIC_INFORMATION * lpbuffer,
uint32_t dwlength )

◆ VirtualLock()

BOOL STDCALL VirtualLock ( void * lpaddress,
SIZE_T dwsize )

◆ VirtualUnlock()

BOOL STDCALL VirtualUnlock ( void * lpaddress,
SIZE_T dwsize )

◆ FlushInstructionCache()

BOOL STDCALL FlushInstructionCache ( HANDLE hprocess,
void * lpbaseaddress,
uint32_t dwsize )

◆ GetNumaHighestNodeNumber()

BOOL STDCALL GetNumaHighestNodeNumber ( ULONG * highestnodenumber)

◆ GetNumaProcessorNode()

BOOL STDCALL GetNumaProcessorNode ( uint8_t * processor,
uint8_t * nodenumber )

◆ TlsAlloc()

uint32_t STDCALL TlsAlloc ( void )

Tls Functions (Compatibility)

◆ TlsAllocEx()

uint32_t STDCALL TlsAllocEx ( BOOL bfree)
Parameters
bFreeIf true then TlsValue will be freed on TlsFree or thread terminate

◆ TlsGetValue()

void *STDCALL TlsGetValue ( uint32_t dwtlsindex)

◆ TlsSetValue()

BOOL STDCALL TlsSetValue ( uint32_t dwtlsindex,
void * lptlsvalue )

◆ TlsFree()

BOOL STDCALL TlsFree ( uint32_t dwtlsindex)

◆ SwitchToThread()

BOOL STDCALL SwitchToThread ( void )

Thread Functions (Compatibility)

◆ Sleep()

void STDCALL Sleep ( uint32_t dwmilliseconds)

◆ SleepEx()

uint32_t STDCALL SleepEx ( uint32_t dwmilliseconds,
BOOL balertable )
Note
The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx

◆ GetCurrentThread()

HANDLE STDCALL GetCurrentThread ( void )

◆ GetCurrentThreadId()

uint32_t STDCALL GetCurrentThreadId ( void )
Note
Thread Id and Thread Handle are currently equivalent

◆ GetThreadPriority()

int STDCALL GetThreadPriority ( HANDLE hthread)
Note
Returns priority values in the range -15..+15, must use the FPC RTL function

◆ SetThreadPriority()

BOOL STDCALL SetThreadPriority ( HANDLE hthread,
int npriority )
Note
Expects priority values in the range -15..+15, must use the FPC RTL function

◆ GetExitCodeThread()

BOOL STDCALL GetExitCodeThread ( HANDLE hthread,
uint32_t * lpexitcode )

◆ GetThreadAffinityMask()

DWORD_PTR STDCALL GetThreadAffinityMask ( HANDLE hthread)

◆ SetThreadAffinityMask()

DWORD_PTR STDCALL SetThreadAffinityMask ( HANDLE hthread,
DWORD_PTR dwthreadaffinitymask )

◆ GetThreadTimes()

BOOL STDCALL GetThreadTimes ( HANDLE hthread,
FILETIME * lpcreationtime,
FILETIME * lpexittime,
FILETIME * lpkerneltime,
FILETIME * lpusertime )

◆ CreateThread()

HANDLE STDCALL CreateThread ( SECURITY_ATTRIBUTES * lpthreadattributes,
uint32_t dwstacksize,
THREAD_START_ROUTINE lpstartaddress,
void * lpparameter,
uint32_t dwcreationflags,
DWORD * lpthreadid )

◆ OpenThread()

HANDLE STDCALL OpenThread ( uint32_t dwdesiredaccess,
BOOL binherithandle,
uint32_t dwthreadid )

◆ SuspendThread()

uint32_t STDCALL SuspendThread ( HANDLE hthread)

◆ ResumeThread()

uint32_t STDCALL ResumeThread ( HANDLE hthread)

◆ TerminateThread()

BOOL STDCALL TerminateThread ( HANDLE hthread,
uint32_t dwexitcode )

◆ ExitThread()

void STDCALL ExitThread ( uint32_t dwexitcode)

◆ WaitForSingleObject()

uint32_t STDCALL WaitForSingleObject ( HANDLE hhandle,
uint32_t dwmilliseconds )

◆ WaitForMultipleObjects()

uint32_t STDCALL WaitForMultipleObjects ( uint32_t ncount,
HANDLE * lphandles,
BOOL bwaitall,
uint32_t dwmilliseconds )

◆ WaitForSingleObjectEx()

uint32_t STDCALL WaitForSingleObjectEx ( HANDLE hhandle,
uint32_t dwmilliseconds,
BOOL balertable )
Note
The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx

◆ WaitForMultipleObjectsEx()

uint32_t STDCALL WaitForMultipleObjectsEx ( uint32_t ncount,
HANDLE * lphandles,
BOOL bwaitall,
uint32_t dwmilliseconds,
BOOL balertable )
Note
The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx

◆ BeginThreadEx()

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 )

Thread Functions (Ultibo)

◆ WaitMessage()

BOOL STDCALL WaitMessage ( void )

Message Functions (Compatibility)

◆ GetMessage()

BOOL STDCALL GetMessage ( MSG * lpmsg,
HANDLE hthread,
UINT wmsgfiltermin,
UINT wmsgfiltermax )

◆ PeekMessage()

BOOL STDCALL PeekMessage ( MSG * lpmsg,
HANDLE hthread,
UINT wmsgfiltermin,
UINT wmsgfiltermax,
UINT wremovemsg )

◆ PostMessage()

BOOL STDCALL PostMessage ( HANDLE hthread,
UINT msg,
WPARAM wparam,
LPARAM lparam )

◆ SendMessage()

LRESULT STDCALL SendMessage ( HANDLE hthread,
UINT msg,
WPARAM wparam,
LPARAM lparam )

◆ SendMessageTimeout()

LRESULT STDCALL SendMessageTimeout ( HANDLE hthread,
UINT msg,
WPARAM wparam,
LPARAM lparam,
UINT fuflags,
UINT utimeout,
DWORD_PTR * lpdwresult )

◆ InterlockedIncrement()

long STDCALL InterlockedIncrement ( long * lpaddend)

Notification Functions (Compatibility) Interlocked Functions (Compatibility)

◆ InterlockedDecrement()

long STDCALL InterlockedDecrement ( long * lpaddend)

◆ InterlockedExchange()

long STDCALL InterlockedExchange ( long * target,
long value )

◆ InterlockedExchangePointer()

void *STDCALL InterlockedExchangePointer ( void * target,
void * value )

◆ InterlockedExchangeAdd()

long STDCALL InterlockedExchangeAdd ( long * addend,
long value )

◆ InterlockedCompareExchange()

long STDCALL InterlockedCompareExchange ( long * destination,
long exchange,
long comperand )

◆ InterlockedCompareExchangePointer()

void *STDCALL InterlockedCompareExchangePointer ( void * destination,
void * exchange,
void * comperand )

◆ CreateMutex()

HANDLE STDCALL CreateMutex ( SECURITY_ATTRIBUTES * lpmutexattributes,
BOOL binitialowner,
const char * lpname )

Mutex Functions (Compatibility)

◆ CreateMutexA()

HANDLE STDCALL CreateMutexA ( SECURITY_ATTRIBUTES * lpmutexattributes,
BOOL binitialowner,
const char * lpname )

◆ CreateMutexW()

HANDLE STDCALL CreateMutexW ( SECURITY_ATTRIBUTES * lpmutexattributes,
BOOL binitialowner,
const WCHAR * lpname )

◆ OpenMutex()

HANDLE STDCALL OpenMutex ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenMutexA()

HANDLE STDCALL OpenMutexA ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenMutexW()

HANDLE STDCALL OpenMutexW ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const WCHAR * lpname )

◆ ReleaseMutex()

BOOL STDCALL ReleaseMutex ( HANDLE hmutex)

◆ CreateSemaphore()

HANDLE STDCALL CreateSemaphore ( SECURITY_ATTRIBUTES * lpsemaphoreattributes,
long linitialcount,
long lmaximumcount,
const char * lpname )

Semaphore Functions (Compatibility)

◆ CreateSemaphoreA()

HANDLE STDCALL CreateSemaphoreA ( SECURITY_ATTRIBUTES * lpsemaphoreattributes,
long linitialcount,
long lmaximumcount,
const char * lpname )

◆ CreateSemaphoreW()

HANDLE STDCALL CreateSemaphoreW ( SECURITY_ATTRIBUTES * lpsemaphoreattributes,
long linitialcount,
long lmaximumcount,
const WCHAR * lpname )

◆ OpenSemaphore()

HANDLE STDCALL OpenSemaphore ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenSemaphoreA()

HANDLE STDCALL OpenSemaphoreA ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenSemaphoreW()

HANDLE STDCALL OpenSemaphoreW ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const WCHAR * lpname )

◆ ReleaseSemaphore()

BOOL STDCALL ReleaseSemaphore ( HANDLE hsemaphore,
long lreleasecount,
long * lppreviouscount )

◆ InitializeCriticalSection()

void STDCALL InitializeCriticalSection ( CRITICAL_SECTION * lpcriticalsection)

Critical Section Functions (Compatibility)

◆ EnterCriticalSection()

void STDCALL EnterCriticalSection ( CRITICAL_SECTION * lpcriticalsection)

◆ LeaveCriticalSection()

void STDCALL LeaveCriticalSection ( CRITICAL_SECTION * lpcriticalsection)

◆ TryEnterCriticalSection()

BOOL STDCALL TryEnterCriticalSection ( CRITICAL_SECTION * lpcriticalsection)

◆ InitializeCriticalSectionAndSpinCount()

BOOL STDCALL InitializeCriticalSectionAndSpinCount ( CRITICAL_SECTION * lpcriticalsection,
uint32_t dwspincount )

◆ SetCriticalSectionSpinCount()

uint32_t STDCALL SetCriticalSectionSpinCount ( CRITICAL_SECTION * lpcriticalsection,
uint32_t dwspincount )

◆ DeleteCriticalSection()

void STDCALL DeleteCriticalSection ( CRITICAL_SECTION * lpcriticalsection)

◆ InitializeConditionVariable()

void STDCALL InitializeConditionVariable ( CONDITION_VARIABLE * conditionvariable)

Initializes a condition variable.

Condition Variable Functions (Compatibility)

Parameters
ConditionVariableThe condition variable to initialize

◆ WakeConditionVariable()

void STDCALL WakeConditionVariable ( CONDITION_VARIABLE * conditionvariable)

Wake a single thread waiting on the specified condition variable.

Parameters
ConditionVariableThe condition variable to wake

◆ WakeAllConditionVariable()

void STDCALL WakeAllConditionVariable ( CONDITION_VARIABLE * conditionvariable)

Wake all threads waiting on the specified condition variable.

Parameters
ConditionVariableThe condition variable to wake

◆ SleepConditionVariableCS()

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 operation.

Parameters
ConditionVariableThe condition variable to sleep on
CriticalSectionThe critical section object to release (This critical section must be entered exactly once by the caller at the time SleepConditionVariableCS is called)
dwMillisecondsThe time-out interval, in milliseconds. (If the time-out interval elapses, the function re-acquires the critical section and returns false)

◆ DeleteConditionVariable()

void STDCALL DeleteConditionVariable ( CONDITION_VARIABLE * conditionvariable)

Destroy a condition variable.

Parameters
ConditionVariableThe condition variable to destroy
Note
This function is Ultibo specific and is not part of the normal Windows API

◆ CreateEvent()

HANDLE STDCALL CreateEvent ( SECURITY_ATTRIBUTES * lpeventattributes,
BOOL bmanualreset,
BOOL binitialstate,
const char * lpname )

Event Functions (Compatibility)

◆ CreateEventA()

HANDLE STDCALL CreateEventA ( SECURITY_ATTRIBUTES * lpeventattributes,
BOOL bmanualreset,
BOOL binitialstate,
const char * lpname )

◆ CreateEventW()

HANDLE STDCALL CreateEventW ( SECURITY_ATTRIBUTES * lpeventattributes,
BOOL bmanualreset,
BOOL binitialstate,
const WCHAR * lpname )

◆ OpenEvent()

HANDLE STDCALL OpenEvent ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenEventA()

HANDLE STDCALL OpenEventA ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const char * lpname )

◆ OpenEventW()

HANDLE STDCALL OpenEventW ( uint32_t dwdesiredaccess,
BOOL binherithandle,
const WCHAR * lpname )

◆ SetEvent()

BOOL STDCALL SetEvent ( HANDLE hevent)

◆ ResetEvent()

BOOL STDCALL ResetEvent ( HANDLE hevent)

◆ PulseEvent()

BOOL STDCALL PulseEvent ( HANDLE hevent)

◆ GetProcessAffinityMask()

BOOL STDCALL GetProcessAffinityMask ( HANDLE hprocess,
DWORD_PTR * lpprocessaffinitymask,
DWORD_PTR * lpsystemaffinitymask )

Process Functions (Compatibility)

Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ SetProcessAffinityMask()

BOOL STDCALL SetProcessAffinityMask ( HANDLE hprocess,
DWORD_PTR dwprocessaffinitymask )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ GetProcessTimes()

BOOL STDCALL GetProcessTimes ( HANDLE hprocess,
FILETIME * lpcreationtime,
FILETIME * lpexittime,
FILETIME * lpkerneltime,
FILETIME * lpusertime )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ GetProcessIoCounters()

BOOL STDCALL GetProcessIoCounters ( HANDLE hprocess,
IO_COUNTERS * lpiocounters )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ GetCurrentProcess()

HANDLE STDCALL GetCurrentProcess ( void )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ GetCurrentProcessId()

uint32_t STDCALL GetCurrentProcessId ( void )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead
Thread Id and Thread Handle are currently equivalent

◆ ExitProcess()

void STDCALL ExitProcess ( UINT uexitcode)
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ FatalExit()

void STDCALL FatalExit ( int exitcode)
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ TerminateProcess()

BOOL STDCALL TerminateProcess ( HANDLE hprocess,
UINT uexitcode )
Note
Ultibo has no concept of a Process so this function is mapped to Threads instead

◆ OutputDebugString()

void STDCALL OutputDebugString ( const char * lpoutputstring)

Debug Functions (Compatibility)

◆ OutputDebugStringA()

void STDCALL OutputDebugStringA ( const char * lpoutputstring)

◆ OutputDebugStringW()

void STDCALL OutputDebugStringW ( const WCHAR * lpoutputstring)

◆ lstrcmp()

int STDCALL lstrcmp ( char * lpstring1,
char * lpstring2 )

Library Functions (Compatibility)

◆ lstrcmpA()

int STDCALL lstrcmpA ( char * lpstring1,
char * lpstring2 )

◆ lstrcmpW()

int STDCALL lstrcmpW ( WCHAR * lpstring1,
WCHAR * lpstring2 )

◆ lstrcmpi()

int STDCALL lstrcmpi ( char * lpstring1,
char * lpstring2 )

◆ lstrcmpiA()

int STDCALL lstrcmpiA ( char * lpstring1,
char * lpstring2 )

◆ lstrcmpiW()

int STDCALL lstrcmpiW ( WCHAR * lpstring1,
WCHAR * lpstring2 )

◆ lstrcpy()

char *STDCALL lstrcpy ( char * lpstring1,
char * lpstring2 )

◆ lstrcpyA()

char *STDCALL lstrcpyA ( char * lpstring1,
char * lpstring2 )

◆ lstrcpyW()

WCHAR *STDCALL lstrcpyW ( WCHAR * lpstring1,
WCHAR * lpstring2 )

◆ lstrcpyn()

char *STDCALL lstrcpyn ( char * lpstring1,
char * lpstring2,
int imaxlength )

◆ lstrcpynA()

char *STDCALL lstrcpynA ( char * lpstring1,
char * lpstring2,
int imaxlength )

◆ lstrcpynW()

WCHAR *STDCALL lstrcpynW ( WCHAR * lpstring1,
WCHAR * lpstring2,
int imaxlength )

◆ lstrcat()

char *STDCALL lstrcat ( char * lpstring1,
char * lpstring2 )

◆ lstrcatA()

char *STDCALL lstrcatA ( char * lpstring1,
char * lpstring2 )

◆ lstrcatW()

WCHAR *STDCALL lstrcatW ( WCHAR * lpstring1,
WCHAR * lpstring2 )

◆ lstrlen()

int STDCALL lstrlen ( char * lpstring)

◆ lstrlenA()

int STDCALL lstrlenA ( char * lpstring)

◆ lstrlenW()

int STDCALL lstrlenW ( WCHAR * lpstring)