Unit xBase |
//////////////////////////////////////////////////////////////////////// // TinyWeb Copyright (C) 1997 RIT Research Labs // This programs is free for commercial and non-commercial use as long as the following conditions are aheared to. // Copyright remains RIT Research Labs, and as such any Copyright notices in the code are not to be removed. If this package is used in a product, RIT Research Labs should be given attribution as the RIT Research Labs of the parts of the library used. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package. // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: // 1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: "Based on TinyWeb Server by RIT Research Labs." // THIS SOFTWARE IS PROVIDED BY RIT RESEARCH LABS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // The licence and distribution terms for any publically available version or derivative of this code cannot be changed. i.e. this code cannot simply be copied and put under another distribution licence (including the GNU Public Licence). // //////////////////////////////////////////////////////////////////////// {$I DEFINE.INC
Classes |
TAdvClass -
TAdvCpObject -
TAdvObject -
TColl -
TCollClass -
TResetterThread -
TSocket -
TSocketClass -
TSortedColl -
TStringColl - TStringColl object
TThread -
Functions |
AddRightSpaces - --- string routines
AddrInet - --- Winsock tools
AddStr -
Add_Str -
Buf2Str - --- Basic Routines
Clear - ////////////////////////////////////////////////////////////////////// // Basic Routines // // //////////////////////////////////////////////////////////////////////
ClearHandle - --- Win32 API Hooks
CloseHandles - ////////////////////////////////////////////////////////////////////// // Win32 API Hooks // // //////////////////////////////////////////////////////////////////////
CompareMem -
CompareStr -
CopyLeft -
CreateEvt -
CreateEvtA - --- Win32 Events Extentions
////////////////////////////////////////////////////////////////////// // Win32 Events Extentions // // //////////////////////////////////////////////////////////////////////
CreateRegKey - --- Registry Routines
DelDoubles -
DeleteLeft -
DelFC -
DelLC -
DelLeft -
DelRight -
DelSpaces -
DigitsOnly -
DisposeStr -
DoCreateProcess -
utils
d:\bd\source\rtl\win\windows.
ExecProcess -
ExpandFileName -
ExtractDir -
ExtractFileDir -
ExtractFileDrive -
ExtractFileExt -
ExtractFileName -
ExtractFilePath -
ExtractFileRoot - ThousandSeparator
FileExists -
FillCharSet -
FillStartupInfo -
FindExecutable -
FreeObject -
FSplit -
GetEnvVariable -
GetFileNfo -
GetFileNfoByHandle -
GetHostNameByAddr -
GetWrd -
GetWrdStrict -
GetWrdStrictUC -
GlobalFail - --- Misc tools
Hex2 -
Hex4 -
Hex8 -
Inet2addr -
InetAddr -
Int2Hex -
Int2Str -
ItoS -
ItoSz -
LastDelimiter -
LowerCase -
LowerPrec -
MakeFullDir -
MakeNormName -
Max -
MemEqu -
Min -
MonthE -
NewStr -
NulSearch -
NumBits -
OpenRegKey - Reserved
OpenRegKeyEx - ////////////////////////////////////////////////////////////////////// // Registry Routines // // //////////////////////////////////////////////////////////////////////
ProcessQuotes - --- RFC Routines
ReadRegBin -
ReadRegInt -
ReadRegString -
Replace -
SignaledEvt -
StoI -
StrEnds -
StrRight -
SysErrorMsg - ////////////////////////////////////////////////////////////////////// // Objects // // //////////////////////////////////////////////////////////////////////
uCvtSetFileTime -
uGetSystemTime -
UnpackPchars -
UnpackUchars -
UpperCase -
Vl - address got - now compare it with the real one
WaitEvt -
WaitEvtA - address of event-object name
WipeChars -
WriteRegBin - buffer size
WriteRegInt - buffer size
WriteRegString - address of disposition value buffer
XAdd -
xBaseDone -
xBaseInit -
XChg -
ZeroHandle -
_CreateFile -
_CreateFileSecurity -
_GetFileSize - Prepare 'Access' and 'Share'
_LogOK -
_Val -
__alpha -
__ctl -
__digit -
__extra -
__national -
__pchar -
__reserved -
__safe -
__uchar -
__unsafe -
Types |
PBoolean
PByteArray
PCharArray
PCharSet
PFileInfo
PIntArray
PItemList
PvIntArr
TByteArray
TCharArray
TCharSet
TCreateFileMode
TCreateFileModeSet
TFileInfo
TForEachProc
TIntArray
TItemList
TListSortCompare
TObjProc
TSocketOption
TSocketOptions
TThreadMethod
TThreadPriority
TuFindData
TvIntArr
Constants |
CMB_FAILED
CServerName
CServerProductName
CServerVersion
MaxCollSize
rrHiHexChar
rrLoHexChar
_INADDR_ANY
Variables |
ResetterThread
SocketsColl
SocksCount
TimeZoneBias
Functions |
////////////////////////////////////////////////////////////////////// // Win32 Events Extentions // // //////////////////////////////////////////////////////////////////////
Types |
PBoolean = ^Boolean
PByteArray = ^TByteArray
PCharArray = ^TCharArrayGeneral arrays
PCharSet = ^TCharSetCharacter set type
PFileInfo = ^TFileInfo
PIntArray = ^TIntArray
PItemList = ^TItemList
PvIntArr = ^TvIntArr
TByteArray = array[0..MaxLongInt-1] of Byte;
TCharArray = array[0..MaxLongInt-1] of Char;
TCharSet = set of Char
TCreateFileMode = ( cRead, // Specifies read access to the file cWrite, // Specifies write access to the file cFlag, cEnsureNew, // Creates a NEW file. The function fails // if the specified file already exists. cTruncate, // Once opened, the file is truncated so that // its size is zero bytes. cExisting, // For communications resources, console diveces cShareAllowWrite, cShareDenyRead, cOverlapped, // This flag enables more than one operation to be // performed simultaneously with the handle // (e.g. a simultaneous read and write operation). cRandomAccess, // Indicates that the file is accessed randomly. // Windows uses this flag to optimize file caching. cSequentialScan, // Indicates that the file is to be accessed // sequentially from beginning to end. cDeleteOnClose // Indicates that the operating system is to delete // the file immediately after all of its handles // have been closed. );
TCreateFileModeSet = set of TCreateFileModeIndicates that the operating system is to delete the file immediately after all of its handles have been closed.
TFileInfo = record
Attr : Integer;
Size : Integer;
Time : Integer;
end;
TForEachProc = procedure(P: Pointer) of object
TIntArray = array[0..(MaxLongInt div 4)-1] of Integer;
TItemList = array[0..MaxCollSize - 1] of Pointer;
TListSortCompare = function (Item1, Item2: Pointer): Integer
TObjProc = procedure of object
TSocketOption = (soBroadcast, soDebug, soDontLinger, soDontRoute, soKeepAlive, soOOBInLine, soReuseAddr, soNoDelay, soBlocking, soAcceptConn);
TSocketOptions = Set of TSocketOption
TThreadMethod = procedure of object
TThreadPriority = (tpIdle, tpLowest, tpLower, tpNormal, tpHigher, tpHighest, tpTimeCritical);
TuFindData = record
Info : TFileInfo;
FName : string;
end;
TvIntArr = record
Arr : PIntArray;
Cnt : Integer;
end;
Constants |
Variables |