Unit Ultibo
Return to Unit Reference
Description
Ultibo interface unit
To be documented
Constants
MAXLONGLONG_*
MAXLONGLONG = $7fffffffffffffff;
|
CREATE_*
CREATE_SUSPENDED = $00000004;
|
PM_*
PM_NOREMOVE = $0000;
|
|
PM_REMOVE = $0001;
|
|
PM_NOYIELD = $0002;
|
TIME_ZONE_*
TIME_ZONE_ID_UNKNOWN = Timezone.TIME_ZONE_ID_UNKNOWN;
|
|
TIME_ZONE_ID_STANDARD = Timezone.TIME_ZONE_ID_STANDARD;
|
|
TIME_ZONE_ID_DAYLIGHT = Timezone.TIME_ZONE_ID_DAYLIGHT;
|
|
TIME_ZONE_ID_INVALID = Timezone.TIME_ZONE_ID_INVALID;
|
EWX_*
EWX_LOGOFF = $00000000;
|
|
EWX_SHUTDOWN = $00000001;
|
|
EWX_REBOOT = $00000002;
|
|
EWX_FORCE = $00000004;
|
|
EWX_POWEROFF = $00000008;
|
|
EWX_FORCEIFHUNG = $00000010;
|
DRIVE_*
DRIVE_UNKNOWN = 0;
|
|
DRIVE_NO_ROOT_DIR = 1;
|
|
DRIVE_REMOVABLE = 2;
|
|
DRIVE_FIXED = 3;
|
|
DRIVE_REMOTE = 4;
|
|
DRIVE_CDROM = 5;
|
|
DRIVE_RAMDISK = 6;
|
SYMBOLIC_LINK_*
SYMBOLIC_LINK_FLAG_FILE = $00000000;
|
The link target is a file |
SYMBOLIC_LINK_FLAG_DIRECTORY = $00000001;
|
The link target is a directory |
LMEM_*
LMEM_FIXED = $0000;
|
|
LMEM_MOVEABLE = $0002;
|
|
LMEM_NOCOMPACT = $0010;
|
|
LMEM_NODISCARD = $0020;
|
|
LMEM_ZEROINIT = $0040;
|
|
LMEM_MODIFY = $0080;
|
|
LMEM_DISCARDABLE = $0F00;
|
|
LMEM_VALID_FLAGS = $0F72;
|
|
LMEM_INVALID_HANDLE = $8000;
|
|
LHND = (LMEM_MOVEABLE or LMEM_ZEROINIT);
|
|
LPTR = (LMEM_FIXED or LMEM_ZEROINIT);
|
|
NONZEROLHND = (LMEM_MOVEABLE);
|
|
NONZEROLPTR = (LMEM_FIXED);
|
GMEM_*
GMEM_FIXED = $0000;
|
|
GMEM_MOVEABLE = $0002;
|
|
GMEM_NOCOMPACT = $0010;
|
|
GMEM_NODISCARD = $0020;
|
|
GMEM_ZEROINIT = $0040;
|
|
GMEM_MODIFY = $0080;
|
|
GMEM_DISCARDABLE = $0100;
|
|
GMEM_NOT_BANKED = $1000;
|
|
GMEM_SHARE = $2000;
|
|
GMEM_DDESHARE = $2000;
|
|
GMEM_NOTIFY = $4000;
|
|
GMEM_LOWER = GMEM_NOT_BANKED;
|
|
GMEM_VALID_FLAGS = $7F72;
|
|
GMEM_INVALID_HANDLE = $8000;
|
|
GHND = (GMEM_MOVEABLE or GMEM_ZEROINIT);
|
|
GPTR = (GMEM_FIXED or GMEM_ZEROINIT);
|
PAGE_*
PAGE_NOACCESS = $01;
|
|
PAGE_READONLY = $02;
|
|
PAGE_READWRITE = $04;
|
|
PAGE_WRITECOPY = $08;
|
|
PAGE_EXECUTE = $10;
|
|
PAGE_EXECUTE_READ = $20;
|
|
PAGE_EXECUTE_READWRITE = $40;
|
|
PAGE_EXECUTE_WRITECOPY = $80;
|
|
PAGE_GUARD = $100;
|
|
PAGE_NOCACHE = $200;
|
|
PAGE_WRITECOMBINE = $400;
|
MEM_*, SEC_*, WRITE_*
MEM_COMMIT = $1000;
|
|
MEM_RESERVE = $2000;
|
|
MEM_DECOMMIT = $4000;
|
|
MEM_RELEASE = $8000;
|
|
MEM_FREE = $10000;
|
|
MEM_PRIVATE = $20000;
|
|
MEM_MAPPED = $40000;
|
|
MEM_RESET = $80000;
|
|
MEM_TOP_DOWN = $100000;
|
|
MEM_WRITE_WATCH = $200000;
|
|
MEM_PHYSICAL = $400000;
|
|
MEM_4MB_PAGES = DWORD($80000000);
|
|
SEC_FILE = $800000;
|
|
SEC_IMAGE = $1000000;
|
|
SEC_RESERVE = $4000000;
|
|
SEC_COMMIT = DWORD($8000000);
|
|
SEC_NOCACHE = $10000000;
|
|
MEM_IMAGE = SEC_IMAGE;
|
|
WRITE_WATCH_FLAG_RESET = $01;
|
|
MEM_LARGE_PAGES = $20000000;
|
PROCESSOR_ARCHITECTURE_*
PROCESSOR_ARCHITECTURE_INTEL = 0;
|
|
PROCESSOR_ARCHITECTURE_MIPS = 1;
|
|
PROCESSOR_ARCHITECTURE_ALPHA = 2;
|
|
PROCESSOR_ARCHITECTURE_PPC = 3;
|
|
PROCESSOR_ARCHITECTURE_SHX = 4;
|
|
PROCESSOR_ARCHITECTURE_ARM = 5;
|
|
PROCESSOR_ARCHITECTURE_IA64 = 6;
|
|
PROCESSOR_ARCHITECTURE_ALPHA64 = 7;
|
|
PROCESSOR_ARCHITECTURE_MSIL = 8;
|
|
PROCESSOR_ARCHITECTURE_AMD64 = 9;
|
|
PROCESSOR_ARCHITECTURE_UNKNOWN = $FFFF;
|
PROCESSOR_*
PROCESSOR_INTEL_386 = 386;
|
|
PROCESSOR_INTEL_486 = 486;
|
|
PROCESSOR_INTEL_PENTIUM = 586;
|
|
PROCESSOR_INTEL_IA64 = 2200;
|
|
PROCESSOR_ARM_6 = 60999;
|
|
PROCESSOR_ARM_7 = 70999;
|
|
PROCESSOR_ARM_8 = 80999;
|
VER_*
VER_PLATFORM_ULTIBO = 10011;
|
FILE_ATTRIBUTE_*
FILE_ATTRIBUTE_READONLY = $00000001;
|
|
FILE_ATTRIBUTE_HIDDEN = $00000002;
|
|
FILE_ATTRIBUTE_SYSTEM = $00000004;
|
|
FILE_ATTRIBUTE_DIRECTORY = $00000010;
|
|
FILE_ATTRIBUTE_ARCHIVE = $00000020;
|
|
FILE_ATTRIBUTE_DEVICE = $00000040;
|
|
FILE_ATTRIBUTE_NORMAL = $00000080;
|
|
FILE_ATTRIBUTE_TEMPORARY = $00000100;
|
|
FILE_ATTRIBUTE_SPARSE_FILE = $00000200;
|
|
FILE_ATTRIBUTE_REPARSE_POINT = $00000400;
|
|
FILE_ATTRIBUTE_COMPRESSED = $00000800;
|
|
FILE_ATTRIBUTE_OFFLINE = $00001000;
|
|
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = $00002000;
|
|
FILE_ATTRIBUTE_ENCRYPTED = $00004000;
|
FILE_*
FILE_CASE_SENSITIVE_SEARCH = $00000001;
|
|
FILE_CASE_PRESERVED_NAMES = $00000002;
|
|
FILE_UNICODE_ON_DISK = $00000004;
|
|
FILE_PERSISTENT_ACLS = $00000008;
|
|
FILE_FILE_COMPRESSION = $00000010;
|
|
FILE_VOLUME_QUOTAS = $00000020;
|
|
FILE_SUPPORTS_SPARSE_FILES = $00000040;
|
|
FILE_SUPPORTS_REPARSE_POINTS = $00000080;
|
|
FILE_SUPPORTS_REMOTE_STORAGE = $00000100;
|
|
FILE_VOLUME_IS_COMPRESSED = $00008000;
|
|
FILE_SUPPORTS_OBJECT_IDS = $00010000;
|
|
FILE_SUPPORTS_ENCRYPTION = $00020000;
|
|
FILE_NAMED_STREAMS = $00040000;
|
|
FILE_READ_ONLY_VOLUME = $00080000;
|
DDD_*
DDD_RAW_TARGET_PATH = $00000001;
|
|
DDD_REMOVE_DEFINITION = $00000002;
|
|
DDD_EXACT_MATCH_ON_REMOVE = $00000004;
|
|
DDD_NO_BROADCAST_SYSTEM = $00000008;
|
|
DDD_LUID_BROADCAST_DRIVE = $00000010;
|
TIME_NULL_*
TIME_NULL_TIME:TFileTime = (dwLowDateTime:$00000000;dwHighDateTime:$00000000);
|
*_DRIVE
DEFAULT_DRIVE = 0;
|
0 is Current Drive |
INVALID_DRIVE = 0;
|
Where Current is not appropriate |
MIN_DRIVE = 1;
|
1 = A:, 2 = B:, 3 = C:, 26 = Z: etc |
MAX_DRIVE = 26;
|
|
NON_DRIVE = 27;
|
27 for Non Drive (UNC) Path |
DRIVE_NAMES:array[DEFAULT_DRIVE..NON_DRIVE] of String = (
| |
,'A:\','B:\','C:\','D:\','E:\','F:\','G:\','H:\','I:\','J:\','K:\','L:\','M:\',
|
|
'N:\','O:\','P:\','Q:\','R:\','S:\','T:\','U:\','V:\','W:\','X:\','Y:\','Z:\','\\');
|
|
DRIVE_ROOTS:array[DEFAULT_DRIVE..NON_DRIVE] of String = (
| |
,'A:','B:','C:','D:','E:','F:','G:','H:','I:','J:','K:','L:','M:',
|
|
'N:','O:','P:','Q:','R:','S:','T:','U:','V:','W:','X:','Y:','Z:','\\');
|
|
DRIVE_MASKS:array[MIN_DRIVE..MAX_DRIVE] of LongWord = (
| |
$00000001,$00000002,$00000004,$00000008,
|
|
$00000010,$00000020,$00000040,$00000080,
|
|
$00000100,$00000200,$00000400,$00000800,
|
|
$00001000,$00002000,$00004000,$00008000,
|
|
$00010000,$00020000,$00040000,$00080000,
|
|
$00100000,$00200000,$00400000,$00800000,
|
|
$01000000,$02000000);
|
|
DRIVE_A = 1;
|
|
DRIVE_B = 2;
|
|
DRIVE_C = 3;
|
*_PATH, _FILE*
MAX_FAT_PATH = 64;
|
|
MAX_FAT_FILE = 12;
|
|
MAX_VFAT_PATH = 260;
|
|
MAX_VFAT_FILE = 255;
|
|
FAT_PATH_CHAR = '\';
|
Path separator |
FAT_NAME_CHAR = ':';
|
Stream separator |
FAT_FILE_CHAR = '.';
|
Extension separator |
FAT_DRIVE_CHAR = ':';
|
Drive separator |
UNIX_PATH_CHAR = '/';
|
Path separator |
UNIX_NAME_CHAR = ':';
|
Stream separator |
UNIX_FILE_CHAR = '.';
|
Extension separator |
Invalid Filename Chars etc | |
',':']; | |
SHORT_FILENAME_SUBST_CHARS:set of Char = ['+','=',',','[',']',';'];
|
|
'; | |
Invalid Stream name Chars etc | |
',':']; | |
'; | |
Wildcard Filename Chars' | |
MACRO_FILENAME_CHAR:Char = '%';
|
|
WILDCARD_FILENAME_CHAR:Char = '*';
|
|
',':']; |
Type definitions
To be documented
Public variables
None defined
Function declarations
Initialization functions
procedure UltiboInit;
Note | None documented |
---|
General functions (Compatibility)
function GetVersion:DWORD;
Note | None documented |
---|
function GetVersionEx(lpVersionInformation:LPOSVERSIONINFOA):BOOL; inline;
Note | None documented |
---|
function GetVersionExA(lpVersionInformation:LPOSVERSIONINFOA):BOOL;
Note | None documented |
---|
function GetVersionExW(lpVersionInformation:LPOSVERSIONINFOW):BOOL;
Note | None documented |
---|
procedure GetSystemInfo(var lpSystemInfo:SYSTEM_INFO);
Note | None documented |
---|
procedure GetNativeSystemInfo(lpSystemInfo:LPSYSTEM_INFO);
Note | None documented |
---|
function GetLargePageMinimum:SIZE_T;
Note | None documented |
---|
function GetComputerName(lpBuffer:LPSTR; var nSize:DWORD):BOOL; inline;
Note | None documented |
---|
function GetComputerNameA(lpBuffer:LPSTR; var nSize:DWORD):BOOL;
Note | None documented |
---|
function GetComputerNameW(lpBuffer:LPWSTR; var nSize:DWORD):BOOL;
Note | None documented |
---|
function SetComputerName(lpComputerName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetComputerNameA(lpComputerName:LPCSTR):BOOL;
Note | None documented |
---|
function SetComputerNameW(lpComputerName:LPCWSTR):BOOL;
Note | None documented |
---|
function GetComputerNameEx(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPSTR; var nSize:DWORD):BOOL; inline;
Note | None documented |
---|
function GetComputerNameExA(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPSTR; var nSize:DWORD):BOOL;
Note | None documented |
---|
function GetComputerNameExW(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPWSTR; var nSize:DWORD):BOOL;
Note | None documented |
---|
function SetComputerNameEx(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetComputerNameExA(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPCSTR):BOOL;
Note | None documented |
---|
function SetComputerNameExW(NameType:COMPUTER_NAME_FORMAT; lpBuffer:LPCWSTR):BOOL;
Note | None documented |
---|
function ExitUltibo(dwReserved:DWORD; uReserved:UINT):BOOL;
Note | None documented |
---|
function ExitUltiboEx(uFlags:UINT; dwReserved:DWORD):BOOL;
Note | None documented |
---|
General functions (Ultibo)
function RestartComputer(Delay:LongWord):Boolean;
Delay | Milliseconds to delay before restart |
---|
function ShutdownComputer(Delay:LongWord):Boolean;
Delay | Milliseconds to delay before restart |
---|
function Uptime:TFileTime;
Note | None documented |
---|
Time functions (Compatibility)
function GetTickCount:DWORD;
Note | None documented |
---|
function GetTickCount64:ULONGLONG;
Note | None documented |
---|
procedure GetSystemTime(var lpSystemTime:SYSTEMTIME);
Note | None documented |
---|
procedure GetSystemTimeAsFileTime(var lpSystemTimeAsFileTime:FILETIME);
Note | None documented |
---|
function SetSystemTime(var lpSystemTime:SYSTEMTIME):BOOL;
Note | None documented |
---|
procedure GetLocalTime(var lpSystemTime:SYSTEMTIME);
Note | None documented |
---|
function SetLocalTime(var lpSystemTime:SYSTEMTIME):BOOL;
Note | None documented |
---|
function SystemTimeToTzSpecificLocalTime(lpTimeZoneInformation:LPTIME_ZONE_INFORMATION; var lpUniversalTime,lpLocalTime:SYSTEMTIME):BOOL;
Note | None documented |
---|
function TzSpecificLocalTimeToSystemTime(const lpTimeZoneInformation:TIME_ZONE_INFORMATION; const lpLocalTime:SYSTEMTIME; var lpUniversalTime:SYSTEMTIME):BOOL;
Note | None documented |
---|
function GetTimeZoneInformation(var lpTimeZoneInformation:TIME_ZONE_INFORMATION):DWORD;
Note | None documented |
---|
function SetTimeZoneInformation(const lpTimeZoneInformation:TIME_ZONE_INFORMATION):BOOL;
Note | None documented |
---|
function SystemTimeToFileTime(const lpSystemTime:SYSTEMTIME; var lpFileTime:FILETIME):BOOL;
Note | lpSystemTime is assumed to be UTC / lpFileTime is returned as UTC |
---|
function FileTimeToSystemTime(const lpFileTime:FILETIME; var lpSystemTime:SYSTEMTIME):BOOL;
Note | lpFileTime is assumed to be UTC / lpSystemTime is returned as UTC. If lpFileTime is less than 30/12/1899 then SystemTime will be zero. |
---|
function FileTimeToLocalFileTime(const lpFileTime:FILETIME; var lpLocalFileTime:FILETIME):BOOL;
Note | TIMEZONE_TIME_OFFSET is the number of minutes offset from UTC |
---|
function LocalFileTimeToFileTime(const lpLocalFileTime:FILETIME; var lpFileTime:FILETIME):BOOL;
Note | TIMEZONE_TIME_OFFSET is the number of minutes offset from UTC |
---|
function CompareFileTime(const lpFileTime1,lpFileTime2:FILETIME):LONG;
Note | None documented |
---|
function FileTimeToDosDateTime(const lpFileTime:FILETIME; var lpFatDate,lpFatTime:WORD):BOOL;
Note | FileTime is assumed to be Local / DOS data and time is returned as Local. If FileTime is less than 1/1/1980 then DOS date and time will be zero. |
---|
function DosDateTimeToFileTime(wFatDate,wFatTime:WORD; var lpFileTime:FILETIME):BOOL;
Note | DOS date and time is assumed to be Local / FileTime is returned as Local. If DOS date and time is less than 1/1/1980 then FileTime will be zero. |
---|
Time functions (Ultibo)
function GetCurrentTime:TFileTime;
Note | None documented |
---|
procedure SetCurrentTime(const ATime:TFileTime);
Note | None documented |
---|
function GetTimeAdjust:LongInt;
Note | None documented |
---|
procedure SetTimeAdjust(AAdjust:LongInt);
Note | None documented |
---|
function GetCurrentTimezone:String;
Note | None documented |
---|
function SetCurrentTimezone(const AName:String):Boolean;
Note | None documented |
---|
function GetTimezoneActiveOffset:LongInt;
Note | None documented |
---|
function GetTimezoneStandardOffset:LongInt;
Note | None documented |
---|
procedure SetTimezoneStandardOffset(AOffset:LongInt);
Note | None documented |
---|
function GetTimezoneDaylightOffset:LongInt;
Note | None documented |
---|
procedure SetTimezoneDaylightOffset(AOffset:LongInt);
Note | None documented |
---|
function GetTimezoneStandardStart:String;
Note | None documented |
---|
function GetTimezoneDaylightStart:String;
Note | None documented |
---|
function GetTimezoneStandardDate:TDateTime;
Note | None documented |
---|
function GetTimezoneDaylightDate:TDateTime;
Note | None documented |
---|
function FileTimeToDateTime(const AFileTime:TFileTime):TDateTime;
Note | FileTime is assumed to be UTC / DateTime is returned as Local. If FileTime is less than 30/12/1899 then Result will be zero. |
---|
function DateTimeToFileTime(ADateTime:TDateTime):TFileTime;
Note | DateTime is assumed to be Local / FileTime is returned as UTC |
---|
function LocalFileTimeToDateTime(const AFileTime:TFileTime):TDateTime;
Note | FileTime is assumed to be Local / DateTime is returned as Local. If FileTime is less than 30/12/1899 then Result will be zero. |
---|
function DateTimeToLocalFileTime(ADateTime:TDateTime):TFileTime;
Note | DateTime is assumed to be Local / FileTime is returned as Local |
---|
function SystemFileTimeToDateTime(const AFileTime:TFileTime):TDateTime;
Note | FileTime is assumed to be UTC / DateTime is returned as UTC. If FileTime is less than 30/12/1899 then Result will be zero. Same as LocalFileTimeToDateTime but renamed for clarity. |
---|
function DateTimeToSystemFileTime(ADateTime:TDateTime):TFileTime;
Note | DateTime is assumed to be UTC / FileTime is returned as UTC. Same as DateTimeToLocalFileTime but renamed for clarity. |
---|
function FileTimeToUnixTime(const AFileTime:TFileTime):LongInt;
Note | FileTime is assumed to be Local / UnixTime is returned as Local. If FileTime is less than 1/1/1970 then Result will be zero. |
---|
function UnixTimeToFileTime(AUnixTime:LongInt):TFileTime;
Note | UnixTime is assumed to be Local / FileTime is returned as Local |
---|
function UnixTimeToDateTime(AUnixTime:LongInt):TDateTime;
Note | UnixTime is assumed to be Local / DateTime is returned as Local |
---|
function DateTimeToUnixTime(ADateTime:TDateTime):LongInt;
Note | DateTime is assumed to be Local / UnixTime is returned as Local. If DateTime is less than 1/1/1970 then Result will be zero. |
---|
function FileTimeToFileDate(const AFileTime:TFileTime):Integer;
Note | FileTime is assumed to be UTC / FileDate is returned as Local. If FileTime is less than 1/1/1980 then Result will be zero. |
---|
function FileDateToFileTime(AFileDate:Integer):TFileTime;
Note | FileDate is assumed to be Local / FileTime is returned as UTC. If FileDate is less than 1/1/1980 then Result will be zero. |
---|
function FileTimeToAdjustedTime(const AFileTime:TFileTime):TFileTime;
Note | TIMEZONE_TIME_ADJUST is the number of minutes difference from TIMEZONE_TIME_OFFSET |
---|
function AdjustedTimeToFileTime(const AFileTime:TFileTime):TFileTime;
Note | TIMEZONE_TIME_ADJUST is the number of minutes difference from TIMEZONE_TIME_OFFSET |
---|
function RoundFileTime(const AFileTime:TFileTime):TFileTime;
Note | None documented |
---|
function ConvertFileTime(const AFileTime:TFileTime; AOffset:Integer; ALocal:Boolean):TFileTime;
Note | Offset is the number of minutes to adjust in conversion. Local indicates whether the source time is Local or UTC. |
---|
function ConvertDateTime(ADateTime:TDateTime; AOffset:Integer; ALocal:Boolean):TDateTime;
Note | Offset is the number of minutes to adjust in conversion. Local indicates whether the source time is Local or UTC. |
---|
Drive functions (Compatibility)
function GetDiskType(lpRootPathName:LPCSTR):UINT; inline;
Note | None documented |
---|
function GetDriveTypeA(lpRootPathName:LPCSTR):UINT;
Note | None documented |
---|
function GetDriveTypeW(lpRootPathName:LPCWSTR):UINT;
Note | None documented |
---|
function GetLogicalDrives:DWORD;
Note | None documented |
---|
function GetLogicalDriveStrings(nBufferLength:DWORD; lpBuffer:LPSTR):DWORD; inline;
Note | None documented |
---|
function GetLogicalDriveStringsA(nBufferLength:DWORD; lpBuffer:LPSTR):DWORD;
Note | None documented |
---|
function GetLogicalDriveStringsW(nBufferLength:DWORD; lpBuffer:LPWSTR):DWORD;
Note | None documented |
---|
function DefineDosDevice(dwFlags:DWORD; lpDeviceName,lpTargetPath:LPCSTR):BOOL; inline;
Note | None documented |
---|
function DefineDosDeviceA(dwFlags:DWORD; lpDeviceName,lpTargetPath:LPCSTR):BOOL;
Note | None documented |
---|
function DefineDosDeviceW(dwFlags:DWORD; lpDeviceName,lpTargetPath:LPCWSTR):BOOL;
Note | None documented |
---|
function QueryDosDevice(lpDeviceName,lpTargetPath:LPSTR; ucchMax:DWORD):DWORD; inline;
Note | None documented |
---|
function QueryDosDeviceA(lpDeviceName,lpTargetPath:LPSTR; ucchMax:DWORD):DWORD;
Note | None documented |
---|
function QueryDosDeviceW(lpDeviceName,lpTargetPath:LPWSTR; ucchMax:DWORD):DWORD;
Note | None documented |
---|
function SetVolumeLabel(lpRootPathName,lpVolumeName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetVolumeLabelA(lpRootPathName,lpVolumeName:LPCSTR):BOOL;
Note | None documented |
---|
function SetVolumeLabelW(lpRootPathName,lpVolumeName:LPCWSTR):BOOL;
Note | None documented |
---|
function GetVolumeInformation(lpRootPathName:LPCSTR; lpVolumeNameBuffer:LPSTR; nVolumeNameSize:DWORD; lpVolumeSerialNumber:LPDWORD; var lpMaximumComponentLength,lpFileSystemFlags:DWORD; lpFileSystemNameBuffer:LPSTR; nFileSystemNameSize:DWORD):BOOL; inline;
Note | None documented |
---|
function GetVolumeInformationA(lpRootPathName:LPCSTR; lpVolumeNameBuffer:LPSTR; nVolumeNameSize:DWORD; lpVolumeSerialNumber:LPDWORD; var lpMaximumComponentLength,lpFileSystemFlags:DWORD;lpFileSystemNameBuffer:LPSTR; nFileSystemNameSize:DWORD):BOOL;
Note | None documented |
---|
function GetVolumeInformationW(lpRootPathName:LPCWSTR; lpVolumeNameBuffer:LPWSTR; nVolumeNameSize:DWORD; lpVolumeSerialNumber:LPDWORD; var lpMaximumComponentLength,lpFileSystemFlags:DWORD;lpFileSystemNameBuffer:LPWSTR; nFileSystemNameSize:DWORD):BOOL;
Note | None documented |
---|
function GetDiskFreeSpace(lpRootPathName:LPCSTR; var lpSectorsPerCluster,lpBytesPerSector,lpNumberOfFreeClusters,lpTotalNumberOfClusters:DWORD):BOOL; inline;
Note | None documented |
---|
function GetDiskFreeSpaceA(lpRootPathName:LPCSTR; var lpSectorsPerCluster,lpBytesPerSector,lpNumberOfFreeClusters,lpTotalNumberOfClusters:DWORD):BOOL;
Note | None documented |
---|
function GetDiskFreeSpaceW(lpRootPathName:LPCWSTR; var lpSectorsPerCluster,lpBytesPerSector,lpNumberOfFreeClusters,lpTotalNumberOfClusters:DWORD):BOOL;
Note | None documented |
---|
function GetDiskFreeSpaceEx(lpDirectoryName:LPCSTR; var lpFreeBytesAvailableToCaller,lpTotalNumberOfBytes:ULARGE_INTEGER; lpTotalNumberOfFreeBytes:PULARGE_INTEGER):BOOL; inline;
Note | None documented |
---|
Drive functions (Ultibo)
function GetPathDrive(const APath:String):Byte;
Note | None documented |
---|
function GetDriveType(ADrive:Byte):TDriveType;
Note | None documented |
---|
function GetDriveData(ADrive:Byte):TDriveData;
Note | None documented |
---|
function GetDriveAttr(ADrive:Byte):LongWord;
Note | None documented |
---|
function GetDriveLabel(ADrive:Byte):String;
Note | None documented |
---|
function SetDriveLabel(ADrive:Byte; const ALabel:String):Boolean;
Note | None documented |
---|
function GetDriveSerial(ADrive:Byte):LongWord;
Note | None documented |
---|
function SetDriveSerial(ADrive:Byte; ASerial:LongWord):Boolean;
Note | None documented |
---|
function IsDriveValid(ADrive:Byte):Boolean;
Note | None documented |
---|
function GetValidDrives:LongWord;
Note | None documented |
---|
function GetValidDriveNames:String;
Note | None documented |
---|
function GetDriveFreeSpace(ADrive:Byte):LongWord;
Note | None documented |
---|
function GetDriveFreeSpaceEx(ADrive:Byte):Int64;
Note | None documented |
---|
function GetDriveTotalSpace(ADrive:Byte):LongWord;
Note | None documented |
---|
function GetDriveTotalSpaceEx(ADrive:Byte):Int64;
Note | None documented |
---|
function GetCurrentDrive:Byte;
Note | None documented |
---|
function SetCurrentDrive(const ADrive:String):Boolean;
Note | None documented |
---|
File functions (Compatibility)
function AreFileApisANSI:BOOL;
Note | None documented |
---|
procedure SetFileApisToOEM;
Note | None documented |
---|
procedure SetFileApisToANSI;
Note | None documented |
---|
function CreateFile(lpFileName:LPCSTR; dwDesiredAccess,dwShareMode:DWORD; lpSecurityAttributes:LPSECURITY_ATTRIBUTES; dwCreationDisposition:DWORD; dwFlagsAndAttributes:DWORD; hTemplateFile:HANDLE):HANDLE; inline;
Note | None documented |
---|
function CreateFileA(lpFileName:LPCSTR; dwDesiredAccess,dwShareMode:DWORD; lpSecurityAttributes:LPSECURITY_ATTRIBUTES; dwCreationDisposition:DWORD; dwFlagsAndAttributes:DWORD; hTemplateFile:HANDLE):HANDLE;
Note | lpSecurityAttributes and hTemplateFile are currently ignored by Ultibo |
---|
function CreateFileW(lpFileName:LPCWSTR; dwDesiredAccess,dwShareMode:DWORD; lpSecurityAttributes:LPSECURITY_ATTRIBUTES; dwCreationDisposition:DWORD; dwFlagsAndAttributes:DWORD; hTemplateFile:HANDLE):HANDLE;
Note | lpSecurityAttributes and hTemplateFile are currently ignored by Ultibo |
---|
function SetFileAttributes(lpFileName:LPCSTR; dwFileAttributes:DWORD):BOOL; inline;
Note | None documented |
---|
function SetFileAttributesA(lpFileName:LPCSTR; dwFileAttributes:DWORD):BOOL;
Note | None documented |
---|
function SetFileAttributesW(lpFileName:LPCWSTR; dwFileAttributes:DWORD):BOOL;
Note | None documented |
---|
function GetFileAttributes(lpFileName:LPCSTR):DWORD; inline;
Note | None documented |
---|
function GetFileAttributesA(lpFileName:LPCSTR):DWORD;
Note | None documented |
---|
function GetFileAttributesW(lpFileName:LPCWSTR):DWORD;
Note | None documented |
---|
function DeleteFile(lpFileName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function DeleteFileA(lpFileName:LPCSTR):BOOL;
Note | None documented |
---|
function DeleteFileW(lpFileName:LPCWSTR):BOOL;
Note | None documented |
---|
function MoveFile(lpExistingFileName,lpNewFileName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function MoveFileA(lpExistingFileName,lpNewFileName:LPCSTR):BOOL;
Note | None documented |
---|
function MoveFileW(lpExistingFileName,lpNewFileName:LPCWSTR):BOOL;
Note | None documented |
---|
function FindFirstFile(lpFileName:LPCSTR; var lpFindFileData:WIN32_FIND_DATAA):HANDLE; inline;
Note | None documented |
---|
function FindFirstFileA(lpFileName:LPCSTR; var lpFindFileData:WIN32_FIND_DATAA):HANDLE;
Note | None documented |
---|
function FindFirstFileW(lpFileName:LPCWSTR; var lpFindFileData:WIN32_FIND_DATAW):HANDLE;
Note | None documented |
---|
function FindNextFile(hFindFile:HANDLE; var lpFindFileData:WIN32_FIND_DATAA):BOOL; inline;
Note | None documented |
---|
function FindNextFileA(hFindFile:HANDLE; var lpFindFileData:WIN32_FIND_DATAA):BOOL;
Note | None documented |
---|
function FindNextFileW(hFindFile:HANDLE; var lpFindFileData:WIN32_FIND_DATAW):BOOL;
Note | None documented |
---|
function FindCloseFile(hFindFile:HANDLE):BOOL;
Note | None documented |
---|
function GetFileSize(hFile:HANDLE;lpFileSizeHigh:LPDWORD):DWORD;
Note | None documented |
---|
function GetFileSizeEx(hFile:HANDLE; var lpFileSize:LARGE_INTEGER):BOOL;
Note | None documented |
---|
function GetFileTime(hFile:HANDLE; lpCreationTime,lpLastAccessTime,lpLastWriteTime:PFILETIME):BOOL;
Note | None documented |
---|
function SetFileTime(hFile:HANDLE; lpCreationTime,lpLastAccessTime,lpLastWriteTime:PFILETIME):BOOL;
Note | None documented |
---|
function ReadFile(hFile:HANDLE; lpBuffer:LPVOID; nNumberOfBytesToRead:DWORD; lpNumberOfBytesRead:LPDWORD; lpOverlapped:LPOVERLAPPED):BOOL;
Note | None documented |
---|
function WriteFile(hFile:HANDLE; lpBuffer:LPCVOID; nNumberOfBytesToWrite:DWORD; lpNumberOfBytesWritten:LPDWORD; lpOverlapped:LPOVERLAPPED):BOOL;
Note | None documented |
---|
function SetEndOfFile(hFile:HANDLE):BOOL;
Note | None documented |
---|
function SetFilePointer(hFile:HANDLE; lDistanceToMove:LONG; lpDistanceToMoveHigh:PLONG; dwMoveMethod:DWORD):DWORD;
Note | None documented |
---|
function SetFilePointerEx(hFile:HANDLE; liDistanceToMove:LARGE_INTEGER; lpNewFilePointer:PLARGE_INTEGER; dwMoveMethod:DWORD):BOOL;
Note | None documented |
---|
function FlushFileBuffers(hFile:HANDLE):BOOL;
Note | None documented |
---|
function CopyFile(lpExistingFileName,lpNewFileName:LPCSTR; bFailIfExists:BOOL):BOOL; inline;
Note | None documented |
---|
function CopyFileA(lpExistingFileName,lpNewFileName:LPCSTR; bFailIfExists:BOOL):BOOL;
Note | None documented |
---|
function CopyFileW(lpExistingFileName,lpNewFileName:LPCWSTR; bFailIfExists:BOOL):BOOL;
Note | None documented |
---|
function SetFileShortName(hFile:HANDLE; lpShortName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetFileShortNameA(hFile:HANDLE; lpShortName:LPCSTR):BOOL;
Note | None documented |
---|
function SetFileShortNameW(hFile:HANDLE; lpShortName:LPCWSTR):BOOL;
Note | None documented |
---|
function CreateHardLink(lpFileName,lpExistingFileName:LPCSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL; inline;
Note | None documented |
---|
function CreateHardLinkA(lpFileName,lpExistingFileName:LPCSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL;
Note | lpSecurityAttributes is currently ignored by Ultibo |
---|
function CreateHardLinkW(lpFileName,lpExistingFileName:LPCWSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL;
Note | lpSecurityAttributes is currently ignored by Ultibo |
---|
function CreateSymbolicLink(lpSymlinkFileName,lpTargetFileName:LPCSTR; dwFlags:DWORD):BOOL; inline;
Note | None documented |
---|
function CreateSymbolicLinkA(lpSymlinkFileName,lpTargetFileName:LPCSTR; dwFlags:DWORD):BOOL;
Note | None documented |
---|
function CreateSymbolicLinkW(lpSymlinkFileName,lpTargetFileName:LPCWSTR; dwFlags:DWORD):BOOL;
Note | None documented |
---|
Directory functions (Compatibility)
function CreateDirectory(lpPathName:LPCSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL; inline;
Note | None documented |
---|
function CreateDirectoryA(lpPathName:LPCSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL;
Note | lpSecurityAttributes is currently ignored by Ultibo |
---|
function CreateDirectoryW(lpPathName:LPCWSTR; lpSecurityAttributes:LPSECURITY_ATTRIBUTES):BOOL;
Note | lpSecurityAttributes is currently ignored by Ultibo |
---|
function RemoveDirectory(lpPathName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function RemoveDirectoryA(lpPathName:LPCSTR):BOOL;
Note | None documented |
---|
function RemoveDirectoryW(lpPathName:LPCWSTR):BOOL;
Note | None documented |
---|
function SetCurrentDirectory(lpPathName:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetCurrentDirectoryA(lpPathName:LPCSTR):BOOL;
Note | None documented |
---|
function SetCurrentDirectoryW(lpPathName:LPCWSTR):BOOL;
Note | None documented |
---|
function GetCurrentDirectory(nBufferLength:DWORD; lpBuffer:LPSTR):DWORD; inline;
Note | None documented |
---|
function GetCurrentDirectoryA(nBufferLength:DWORD; lpBuffer:LPSTR):DWORD;
Note | None documented |
---|
function GetCurrentDirectoryW(nBufferLength:DWORD; lpBuffer:LPWSTR):DWORD;
Note | None documented |
---|
function GetLongPathName(lpszShortPath:LPCSTR; lpszLongPath:LPSTR; cchBuffer:DWORD):DWORD; inline;
Note | None documented |
---|
function GetLongPathNameA(lpszShortPath:LPCSTR; lpszLongPath:LPSTR; cchBuffer:DWORD):DWORD;
Note | None documented |
---|
function GetLongPathNameW(lpszShortPath:LPCWSTR; lpszLongPath:LPWSTR; cchBuffer:DWORD):DWORD;
Note | None documented |
---|
function GetShortPathName(lpszLongPath:LPCSTR; lpszShortPath:LPSTR; cchBuffer:DWORD):DWORD; inline;
Note | None documented |
---|
function GetShortPathNameA(lpszLongPath:LPCSTR; lpszShortPath:LPSTR; cchBuffer:DWORD):DWORD;
Note | None documented |
---|
function GetShortPathNameW(lpszLongPath:LPCWSTR; lpszShortPath:LPWSTR; cchBuffer:DWORD):DWORD;
Note | None documented |
---|
function GetFullPathName(lpFileName:LPCSTR; nBufferLength:DWORD; lpBuffer:LPSTR; var lpFilePart:LPSTR):DWORD; inline;
Note | None documented |
---|
function GetFullPathNameA(lpFileName:LPCSTR; nBufferLength:DWORD; lpBuffer:LPSTR; var lpFilePart:LPSTR):DWORD;
Note | lpFilePart is currently ignored by Ultibo |
---|
function GetFullPathNameW(lpFileName:LPCWSTR; nBufferLength:DWORD; lpBuffer:LPWSTR; var lpFilePart:LPWSTR):DWORD;
Note | lpFilePart is currently ignored by Ultibo |
---|
Command line functions (RTL)
function SysParamCount:LongInt;
Note | This should be in System however the implementation there will need to be modified |
---|
function SysParamStr(Index:LongInt):String;
Note | This should be in System however the implementation there will need to be modified |
---|
Command line functions (Compatibility)
function GetCommandLine:LPSTR; inline;
Note | None documented |
---|
function GetCommandLineA:LPSTR;
Note | The returned string must be freed with SysUtils.StrDispose |
---|
function GetCommandLineW:LPWSTR;
Note | The returned string must be freed with SysUtils.StrDispose |
---|
Command line functions (Ultibo)
function IsParamPresent(const AParam:String):Boolean;
Note | None documented |
---|
function GetParamIndex(const AParam:String):Integer;
Note | None documented |
---|
function GetParamValue(const AParam:String):String;
Note | None documented |
---|
Environment functions (Compatibility)
function GetEnvironmentStrings:LPSTR; inline;
Note | None documented |
---|
function GetEnvironmentStringsA:LPSTR;
Note | None documented |
---|
function GetEnvironmentStringsW:LPWSTR;
Note | None documented |
---|
function FreeEnvironmentStrings(pstr:LPSTR):BOOL; inline;
Note | None documented |
---|
function FreeEnvironmentStringsA(pstr:LPSTR):BOOL;
Note | None documented |
---|
function FreeEnvironmentStringsW(pstr:LPWSTR):BOOL;
Note | None documented |
---|
function GetEnvironmentVariable(lpName:LPCSTR; lpBuffer:LPSTR; nSize:DWORD):DWORD; inline;
Note | None documented |
---|
function GetEnvironmentVariableA(lpName:LPCSTR; lpBuffer:LPSTR; nSize:DWORD):DWORD;
Note | None documented |
---|
function GetEnvironmentVariableW(lpName:LPCWSTR; lpBuffer:LPWSTR; nSize:DWORD):DWORD;
Note | None documented |
---|
function SetEnvironmentVariable(lpName,lpValue:LPCSTR):BOOL; inline;
Note | None documented |
---|
function SetEnvironmentVariableA(lpName,lpValue:LPCSTR):BOOL;
Note | None documented |
---|
function SetEnvironmentVariableW(lpName,lpValue:LPCWSTR):BOOL;
Note | None documented |
---|
function ExpandEnvironmentStrings(lpSrc:LPCSTR; lpDst:LPSTR; nSize:DWORD):DWORD; inline;
Note | None documented |
---|
function ExpandEnvironmentStringsA(lpSrc:LPCSTR; lpDst:LPSTR; nSize:DWORD):DWORD;
Note | None documented |
---|
function ExpandEnvironmentStringsW(lpSrc:LPCWSTR; lpDst:LPWSTR; nSize:DWORD):DWORD;
Note | None documented |
---|
Error functions (Compatibility)
function GetLastError:DWORD;
Note | None documented |
---|
procedure SetLastError(dwErrCode:DWORD);
Note | None documented |
---|
GUID functions (Ultibo)
function CreateGUID:TGUID;
Note | None documented |
---|
function GUIDToString(const Value:TGUID):String;
Note | None documented |
---|
function StringToGUID(const Value:String):TGUID;
Note | None documented |
---|
function HexChar(Value:Char):Byte;
Note | None documented |
---|
function HexByte(Value:PChar):Byte;
Note | None documented |
---|
function NullGUID(const GUID:TGUID):Boolean;
Note | None documented |
---|
function CompareGUID(const GUID1,GUID2:TGUID):Boolean;
Note | None documented |
---|
SID functions (Ultibo)
function SIDToString(ASID:PSID):String;
Note | None documented |
---|
function StringToSID(const Value:String):PSID;
Note | None documented |
---|
Numeric functions (Ultibo)
function Min(A,B:Integer):Integer; inline;
Note | None documented |
---|
function Max(A,B:Integer):Integer; inline;
Note | None documented |
---|
function MinEx(A,B:LongWord):LongWord; inline;
Note | None documented |
---|
function MaxEx(A,B:LongWord):LongWord; inline;
Note | None documented |
---|
function Min64(const A,B:Int64):Int64; inline;
Note | None documented |
---|
function Max64(const A,B:Int64):Int64; inline;
Note | None documented |
---|
function Or64(const Value1,Value2:Int64):Int64; inline;
Note | None documented |
---|
function And64(const Value1,Value2:Int64):Int64; inline;
Note | None documented |
---|
function Xor64(const Value1,Value2:Int64):Int64; inline;
Note | None documented |
---|
function Not64(const Value:Int64):Int64; inline;
Note | None documented |
---|
function Rol32(Value:LongWord; Count:Byte):LongWord; inline;
Note | None documented |
---|
function Ror32(Value:LongWord; Count:Byte):LongWord; inline;
Note | None documented |
---|
function WordSwap(AValue:Word):Word; inline;
Note | None documented |
---|
function LongSwap(AValue:LongWord):LongWord; inline;
Note | None documented |
---|
function Int64Swap(const AValue:Int64):Int64; inline;
Note | None documented |
---|
function BufferSwap(ABuffer:Pointer; ASize:LongWord):Boolean;
Note | Size is the number of Bytes in the buffer to swap |
---|
Hash functions (Ultibo)
function GenerateNameHash(const Name:String; Size:Integer):LongWord;
Note | Case Insensitive Hash |
---|
function GeneratePasswordHash(const Password:String):LongWord;
Note | Case Sensitive Hash |
---|
Locale functions (Compatibility)
function IsValidLocale(LocaleID:LCID; dwFlags:DWORD):BOOL; inline;
Note | None documented |
---|
function GetSystemDefaultLCID:LCID; inline;
Note | None documented |
---|
function GetUserDefaultLCID:LCID; inline;
Note | None documented |
---|
function GetThreadLocale:LCID;
Note | None documented |
---|
function SetThreadLocale(LocaleID:LCID):BOOL;
Note | None documented |
---|
Locale functions (Ultibo)
function SetSystemDefaultLCID(LocaleID:LCID):BOOL; inline;
Note | None documented |
---|
function WideCharToString(ABuffer:PWideChar):String;
Note | The WideStringManager installed by the Unicode unit should make the System version equivalent |
---|
function WideCharLenToString(ABuffer:PWideChar; ALength:Integer):String;
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. |
---|
function StringToWideChar(const AString:String; ABuffer:PWideChar; ASize:Integer):Boolean;
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. |
---|
Code page functions (Compatibility)
function IsValidCodePage(CodePage:UINT):BOOL; inline;
Note | None documented |
---|
function GetACP:UINT; inline;
Note | None documented |
---|
function GetOEMCP:UINT; inline;
Note | None documented |
---|
function GetConsoleCP:UINT; inline;
Note | None documented |
---|
function SetConsoleCP(wCodePageID:UINT):BOOL; inline;
Note | None documented |
---|
function GetConsoleOutputCP:UINT; inline;
Note | None documented |
---|
function SetConsoleOutputCP(wCodePageID:UINT):BOOL; inline;
Note | None documented |
---|
function GetCPInfo(CodePage:UINT; var lpCPInfo:TCPInfo):BOOL; inline;
Note | None documented |
---|
function GetCPInfoEx(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXA):BOOL; inline;
Note | None documented |
---|
function GetCPInfoExA(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXA):BOOL; inline;
Note | None documented |
---|
function GetCPInfoExW(CodePage:UINT; dwFlags:DWORD; var lpCPInfoEx:CPINFOEXW):BOOL; inline;
Note | None documented |
---|
Code page functions (Ultibo)
function SetACP(CodePage:UINT):BOOL; inline;
Note | None documented |
---|
function SetOEMCP(CodePage:UINT):BOOL; inline;
Note | None documented |
---|
Translation functions (Compatibility)
function MultiByteToWideChar(CodePage:UINT; dwFlags:DWORD; lpMultiByteStr:LPCSTR; cbMultiByte:Integer; lpWideCharStr:LPWSTR; cchWideChar:Integer):Integer; inline;
Note | None documented |
---|
function WideCharToMultiByte(CodePage:UINT; dwFlags:DWORD; lpWideCharStr:LPCWSTR; cchWideChar:Integer; lpMultiByteStr:LPSTR; cbMultiByte:Integer; lpDefaultChar:LPCSTR; lpUsedDefaultChar:LPBOOL):Integer; inline;
Note | None documented |
---|
function CompareString(Locale:LCID; dwCmpFlags:DWORD; lpString1:LPCSTR; cchCount1:Integer; lpString2:LPCSTR; cchCount2:Integer):Integer; inline;
Note | None documented |
---|
function CompareStringA(Locale:LCID; dwCmpFlags:DWORD; lpString1:LPCSTR; cchCount1:Integer; lpString2:LPCSTR; cchCount2:Integer):Integer; inline;
Note | None documented |
---|
function CompareStringW(Locale:LCID; dwCmpFlags:DWORD; lpString1:LPCWSTR; cchCount1:Integer; lpString2:LPCWSTR; cchCount2:Integer):Integer; inline;
Note | None documented |
---|
function CharUpper(lpsz:LPSTR):LPSTR; inline;
Note | None documented |
---|
function CharUpperA(lpsz:LPSTR):LPSTR; inline;
Note | None documented |
---|
function CharUpperW(lpsz:LPWSTR):LPWSTR; inline;
Note | None documented |
---|
function CharUpperBuff(lpsz:LPSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function CharUpperBuffA(lpsz:LPSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function CharUpperBuffW(lpsz:LPWSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function CharLower(lpsz:LPSTR):LPSTR; inline;
Note | None documented |
---|
function CharLowerA(lpsz:LPSTR):LPSTR; inline;
Note | None documented |
---|
function CharLowerW(lpsz:LPWSTR):LPWSTR; inline;
Note | None documented |
---|
function CharLowerBuff(lpsz:LPSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function CharLowerBuffA(lpsz:LPSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function CharLowerBuffW(lpsz:LPWSTR; cchLength:DWORD):DWORD; inline;
Note | None documented |
---|
function AnsiToOem(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function AnsiToOemBuff(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function OemToAnsi(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function OemToAnsiBuff(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function CharToOem(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function CharToOemA(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function CharToOemW(lpszSrc:LPCWSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function OemToChar(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function OemToCharA(lpszSrc:LPCSTR; lpszDst:LPSTR):BOOL; inline;
Note | None documented |
---|
function OemToCharW(lpszSrc:LPCSTR; lpszDst:LPWSTR):BOOL; inline;
Note | None documented |
---|
function CharToOemBuff(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function CharToOemBuffA(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function CharToOemBuffW(lpszSrc:LPCWSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function OemToCharBuff(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function OemToCharBuffA(lpszSrc:LPCSTR; lpszDst:LPSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
function OemToCharBuffW(lpszSrc:LPCSTR; lpszDst:LPWSTR; cchDstLength:DWORD):BOOL; inline;
Note | None documented |
---|
Handle functions (Compatibility)
function CloseHandle(hObject:HANDLE):BOOL;
Note | None documented |
---|
function DuplicateHandle(hSourceProcessHandle:HANDLE; hSourceHandle:HANDLE; hTargetProcessHandle:HANDLE; lpTargetHandle:LPHANDLE; dwDesiredAccess:DWORD; bInheritHandle:BOOL; dwOptions:DWORD):BOOL;
Note | None documented |
---|
function GetHandleInformation(hObject:HANDLE; var lpdwFlags:DWORD):BOOL;
Note | None documented |
---|
function SetHandleInformation(hObject:HANDLE; dwMask:DWORD; dwFlags:DWORD):BOOL;
Note | None documented |
---|
Memory functions (Compatibility)
procedure MoveMemory(Destination,Source:PVOID; Length:SIZE_T); inline;
Note | None documented |
---|
procedure CopyMemory(Destination,Source:PVOID; Length:SIZE_T); inline;
Note | None documented |
---|
procedure FillMemory(Destination:PVOID; Length:SIZE_T;Fill:BYTE); inline;
Note | None documented |
---|
procedure ZeroMemory(Destination:PVOID; Length:SIZE_T); inline;
Note | None documented |
---|
function GlobalAlloc(uFlags:UINT; dwBytes:SIZE_T):HGLOBAL;
Note | All flags except GMEM_ZEROINIT are ignored by Ultibo |
---|
function GlobalReAlloc(hMem:HGLOBAL; dwBytes:SIZE_T; uFlags:UINT):HGLOBAL;
Note | None documented |
---|
function GlobalFree(hMem:HGLOBAL):HGLOBAL;
Note | None documented |
---|
function GlobalSize(hMem:HGLOBAL):SIZE_T;
Note | None documented |
---|
function GlobalFlags(hMem:HGLOBAL):UINT;
Note | None documented |
---|
function GlobalLock(hMem:HGLOBAL):LPVOID;
Note | None documented |
---|
function GlobalUnlock(hMem:HGLOBAL):BOOL;
Note | None documented |
---|
function GlobalHandle(pMem:LPCVOID):HGLOBAL;
Note | None documented |
---|
procedure GlobalMemoryStatus(var lpBuffer:MEMORYSTATUS);
Note | None documented |
---|
function GlobalMemoryStatusEx(var lpBuffer:MEMORYSTATUSEX):BOOL;
Note | None documented |
---|
function LocalAlloc(uFlags:UINT; uBytes:SIZE_T):HLOCAL;
Note | All flags except LMEM_ZEROINIT are ignored by Ultibo |
---|
function LocalReAlloc(hMem:HLOCAL; uBytes:SIZE_T; uFlags:UINT):HLOCAL;
Note | None documented |
---|
function LocalFree(hMem:HLOCAL):HLOCAL;
Note | None documented |
---|
function LocalSize(hMem:HLOCAL):SIZE_T;
Note | None documented |
---|
function LocalFlags(hMem:HLOCAL):UINT;
Note | None documented |
---|
function LocalLock(hMem:HLOCAL):LPVOID;
Note | None documented |
---|
function LocalUnlock(hMem:HLOCAL):BOOL;
Note | None documented |
---|
function LocalHandle(pMem:LPCVOID):HLOCAL;
Note | None documented |
---|
function VirtualAlloc(lpAddress:LPVOID; dwSize:SIZE_T; flAllocationType:DWORD; flProtect:DWORD):LPVOID;
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. |
---|
function VirtualFree(lpAddress:LPVOID; dwSize:SIZE_T; dwFreeType:DWORD):BOOL;
Note | None documented |
---|
function VirtualQuery(lpAddress:LPCVOID; var lpBuffer:MEMORY_BASIC_INFORMATION; dwLength:DWORD):DWORD;
Note | None documented |
---|
function VirtualLock(lpAddress:LPVOID; dwSize:SIZE_T):BOOL;
Note | None documented |
---|
function VirtualUnlock(lpAddress:LPVOID; dwSize:SIZE_T):BOOL;
Note | None documented |
---|
function FlushInstructionCache(hProcess:HANDLE; lpBaseAddress:LPCVOID; dwSize:DWORD):BOOL;
Note | None documented |
---|
function GetNumaHighestNodeNumber(var HighestNodeNumber:ULONG):BOOL;
Note | None documented |
---|
Tls functions (Compatibility)
function TlsAlloc:DWORD;
Note | None documented |
---|
function TlsAllocEx(bFree:BOOL):DWORD;
bFree | If true then TlsValue will be freed on TlsFree or thread terminate |
---|
function TlsGetValue(dwTlsIndex:DWORD):LPVOID;
Note | None documented |
---|
function TlsSetValue(dwTlsIndex:DWORD; lpTlsValue:LPVOID):BOOL;
Note | None documented |
---|
function TlsFree(dwTlsIndex:DWORD):BOOL;
Note | None documented |
---|
Thread functions (Compatibility)
function SwitchToThread:BOOL; inline;
Note | None documented |
---|
procedure Sleep(dwMilliseconds:DWORD); inline;
Note | None documented |
---|
function SleepEx(dwMilliseconds:DWORD; bAlertable:BOOL):DWORD; inline;
Note | The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx |
---|
function GetCurrentThread:HANDLE;
Note | None documented |
---|
function GetCurrentThreadId:DWORD;
Note | Thread Id and Thread Handle are currently equivalent |
---|
function GetThreadPriority(hThread:HANDLE):Integer;
Note | None documented |
---|
function SetThreadPriority(hThread:HANDLE; nPriority:Integer):BOOL;
Note | None documented |
---|
function GetExitCodeThread(hThread:HANDLE; var lpExitCode:DWORD):BOOL;
Note | None documented |
---|
function GetThreadAffinityMask(hThread:HANDLE):DWORD_PTR;
Note | None documented |
---|
function SetThreadAffinityMask(hThread:HANDLE; dwThreadAffinityMask:DWORD_PTR):DWORD_PTR;
Note | None documented |
---|
function GetThreadTimes(hThread:HANDLE; var lpCreationTime,lpExitTime,lpKernelTime,lpUserTime:FILETIME):BOOL;
Note | None documented |
---|
function CreateThread(lpThreadAttributes:LPSECURITY_ATTRIBUTES; dwStackSize:DWORD; lpStartAddress:LPTHREAD_START_ROUTINE; lpParameter:LPVOID; dwCreationFlags:DWORD; lpThreadId:LPDWORD):HANDLE;
Note | None documented |
---|
function OpenThread(dwDesiredAccess:DWORD; bInheritHandle:BOOL; dwThreadId:DWORD):HANDLE;
Note | None documented |
---|
function SuspendThread(hThread:HANDLE):DWORD;
Note | None documented |
---|
function ResumeThread(hThread:HANDLE):DWORD;
Note | None documented |
---|
function TerminateThread(hThread:HANDLE; dwExitCode:DWORD):BOOL;
Note | None documented |
---|
procedure ExitThread(dwExitCode:DWORD);
Note | None documented |
---|
function WaitForSingleObject(hHandle:HANDLE; dwMilliseconds:DWORD):DWORD;
Note | None documented |
---|
function WaitForMultipleObjects(nCount:DWORD; lpHandles:PHANDLE; bWaitAll:BOOL; dwMilliseconds:DWORD):DWORD;
Note | None documented |
---|
function WaitForSingleObjectEx(hHandle:HANDLE; dwMilliseconds:DWORD; bAlertable:BOOL):DWORD;
Note | The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx |
---|
function WaitForMultipleObjectsEx(nCount:DWORD; lpHandles:PHANDLE; bWaitAll:BOOL; dwMilliseconds:DWORD; bAlertable:BOOL):DWORD;
Note | The bAlertable parameter is not currently used but is intended for I/O completion callback from ReadFileEx/WriteFileEx |
---|
Thread functions (Ultibo)
function BeginThreadEx(ThreadFunction:TThreadFunc; Parameter:Pointer; var ThreadId:TThreadID; const StackSize:SizeUInt; Priority,Affinity,CPU:LongWord; Name:PChar):TThreadID;
Note | None documented |
---|
Message functions (Compatibility)
function WaitMessage:BOOL;
Note | None documented |
---|
function GetMessage(lpMsg:LPMSG; hThread:HANDLE; wMsgFilterMin,wMsgFilterMax:UINT):BOOL;
Note | None documented |
---|
function PeekMessage(var lpMsg:MSG; hThread:HANDLE; wMsgFilterMin,wMsgFilterMax,wRemoveMsg:UINT):BOOL;
Note | None documented |
---|
function PostMessage(hThread:HANDLE; Msg:UINT; wParam:WPARAM; lParam:LPARAM):BOOL;
Note | None documented |
---|
function SendMessage(hThread:HANDLE; Msg:UINT; wParam:WPARAM; lParam:LPARAM):LRESULT;
Note | None documented |
---|
function SendMessageTimeout(hThread:HANDLE; Msg:UINT; wParam:WPARAM; lParam:LPARAM; fuFlags,uTimeout:UINT; var lpdwResult:DWORD_PTR):LRESULT;
Note | None documented |
---|
Interlocked functions (Compatibility)
function InterlockedIncrement(var lpAddend:LONG):LONG; inline;
Note | None documented |
---|
function InterlockedDecrement(var lpAddend:LONG):LONG; inline;
Note | None documented |
---|
function InterlockedExchange(var Target:LONG; Value:LONG):LONG; inline;
Note | None documented |
---|
function InterlockedExchangePointer(var Target:PVOID; Value:PVOID):PVOID; inline;
Note | None documented |
---|
function InterlockedExchangeAdd(var Addend:LONG; Value:LONG):LONG; inline;
Note | None documented |
---|
function InterlockedCompareExchange(var Destination:LONG; Exchange:LONG; Comperand:LONG):LONG; inline;
Note | None documented |
---|
function InterlockedCompareExchangePointer(var Destination:PVOID; Exchange,Comperand:PVOID):PVOID; inline;
Note | None documented |
---|
Mutex functions (Compatibility)
function CreateMutex(lpMutexAttributes:LPSECURITY_ATTRIBUTES; bInitialOwner:BOOL; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function CreateMutexA(lpMutexAttributes:LPSECURITY_ATTRIBUTES; bInitialOwner:BOOL; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function CreateMutexW(lpMutexAttributes:LPSECURITY_ATTRIBUTES; bInitialOwner:BOOL; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function OpenMutex(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function OpenMutexA(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function OpenMutexW(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function ReleaseMutex(hMutex:HANDLE):BOOL;
Note | None documented |
---|
Semaphore functions (Compatibility)
function CreateSemaphore(lpSemaphoreAttributes:LPSECURITY_ATTRIBUTES; lInitialCount,lMaximumCount:LONG; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function CreateSemaphoreA(lpSemaphoreAttributes:LPSECURITY_ATTRIBUTES; lInitialCount,lMaximumCount:LONG; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function CreateSemaphoreW(lpSemaphoreAttributes:LPSECURITY_ATTRIBUTES; lInitialCount,lMaximumCount:LONG; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function OpenSemaphore(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function OpenSemaphoreA(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function OpenSemaphoreW(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function ReleaseSemaphore(hSemaphore:HANDLE; lReleaseCount:LONG; lpPreviousCount:LPLONG):BOOL;
Note | None documented |
---|
Critical section functions (Compatibility)
procedure InitializeCriticalSection(var lpCriticalSection:CRITICAL_SECTION);
Note | None documented |
---|
procedure EnterCriticalSection(var lpCriticalSection:CRITICAL_SECTION);
Note | None documented |
---|
procedure LeaveCriticalSection(var lpCriticalSection:CRITICAL_SECTION);
Note | None documented |
---|
function TryEnterCriticalSection(var lpCriticalSection:CRITICAL_SECTION):BOOL;
Note | None documented |
---|
function InitializeCriticalSectionAndSpinCount(var lpCriticalSection:CRITICAL_SECTION; dwSpinCount:DWORD):BOOL;
Note | None documented |
---|
function SetCriticalSectionSpinCount(var lpCriticalSection:CRITICAL_SECTION; dwSpinCount:DWORD):DWORD;
Note | None documented |
---|
procedure DeleteCriticalSection(var lpCriticalSection:CRITICAL_SECTION);
Note | None documented |
---|
Event functions (Compatibility)
function CreateEvent(lpEventAttributes:LPSECURITY_ATTRIBUTES; bManualReset,bInitialState:BOOL; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function CreateEventA(lpEventAttributes:LPSECURITY_ATTRIBUTES; bManualReset,bInitialState:BOOL; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function CreateEventW(lpEventAttributes:LPSECURITY_ATTRIBUTES; bManualReset,bInitialState:BOOL; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function OpenEvent(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE; inline;
Note | None documented |
---|
function OpenEventA(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCSTR):HANDLE;
Note | None documented |
---|
function OpenEventW(dwDesiredAccess:DWORD; bInheritHandle:BOOL; lpName:LPCWSTR):HANDLE;
Note | None documented |
---|
function SetEvent(hEvent:HANDLE):BOOL;
Note | None documented |
---|
function ResetEvent(hEvent:HANDLE):BOOL;
Note | None documented |
---|
function PulseEvent(hEvent:HANDLE):BOOL;
Note | None documented |
---|
Process functions (Compatibility)
function GetProcessAffinityMask(hProcess:HANDLE; var lpProcessAffinityMask,lpSystemAffinityMask:DWORD_PTR):BOOL;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function SetProcessAffinityMask(hProcess:HANDLE; dwProcessAffinityMask:DWORD_PTR):BOOL;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function GetProcessTimes(hProcess:HANDLE; var lpCreationTime,lpExitTime,lpKernelTime,lpUserTime:FILETIME):BOOL;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function GetProcessIoCounters(hProcess:HANDLE; var lpIoCounters:IO_COUNTERS):BOOL;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function GetCurrentProcess:HANDLE;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function GetCurrentProcessId:DWORD;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead. Thread Id and Thread Handle are currently equivalent. |
---|
procedure ExitProcess(uExitCode:UINT);
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
procedure FatalExit(ExitCode:Integer);
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
function TerminateProcess(hProcess:HANDLE; uExitCode:UINT):BOOL;
Note | Ultibo has no concept of a Process so this function is mapped to Threads instead |
---|
Debug functions (Compatibility)
procedure OutputDebugString(lpOutputString:LPCSTR); inline;
Note | None documented |
---|
procedure OutputDebugStringA(lpOutputString:LPCSTR);
Note | None documented |
---|
procedure OutputDebugStringW(lpOutputString:LPCWSTR);
Note | None documented |
---|
Library functions (Compatibility)
function lstrcmp(lpString1,lpString2:LPCSTR):Integer; inline;
Note | None documented |
---|
function lstrcmpA(lpString1,lpString2:LPCSTR):Integer;
Note | None documented |
---|
function lstrcmpW(lpString1,lpString2:LPCWSTR):Integer;
Note | None documented |
---|
function lstrcmpi(lpString1,lpString2:LPCSTR):Integer; inline;
Note | None documented |
---|
function lstrcmpiA(lpString1,lpString2:LPCSTR):Integer;
Note | None documented |
---|
function lstrcmpiW(lpString1,lpString2:LPCWSTR):Integer;
Note | None documented |
---|
function lstrcpy(lpString1:LPSTR; lpString2:LPCSTR):LPSTR; inline;
Note | None documented |
---|
function lstrcpyA(lpString1:LPSTR; lpString2:LPCSTR):LPSTR;
Note | None documented |
---|
function lstrcpyW(lpString1:LPWSTR; lpString2:LPCWSTR):LPWSTR;
Note | None documented |
---|
function lstrcpyn(lpString1:LPSTR; lpString2:LPCSTR; iMaxLength:Integer):LPSTR; inline;
Note | None documented |
---|
function lstrcpynA(lpString1:LPSTR; lpString2:LPCSTR; iMaxLength:Integer):LPSTR;
Note | None documented |
---|
function lstrcpynW(lpString1:LPWSTR; lpString2:LPCWSTR; iMaxLength:Integer):LPWSTR;
Note | None documented |
---|
function lstrcat(lpString1:LPSTR; lpString2:LPCSTR):LPSTR; inline;
Note | None documented |
---|
function lstrcatA(lpString1:LPSTR; lpString2:LPCSTR):LPSTR;
Note | None documented |
---|
function lstrcatW(lpString1:LPWSTR; lpString2:LPCWSTR):LPWSTR;
Note | None documented |
---|
function lstrlen(lpString:LPCSTR):Integer; inline;
Note | None documented |
---|
function lstrlenA(lpString:LPCSTR):Integer;
Note | None documented |
---|
function lstrlenW(lpString:LPCWSTR):Integer;
Note | None documented |
---|
Return to Unit Reference