Current News
Archived News
Search News
Discussion Forum


Old Forum
Install Programs More Downloads...
Troubleshooting
Source Code
Format Specs.
Misc. Information
Non-SF Stuff
Links




CommitLineData
b31da37a 1Attribute VB_Name = "CwadLib"\r
2Option Explicit\r
3\r
4Public Const CWAD_INFO_NUM_FILES As Long = &H03 ' Number of files in CWAD\r
5Public Const CWAD_INFO_TYPE As Long = &H04 ' Is HANDLE a file or a CWAD?\r
6Public Const CWAD_INFO_SIZE As Long = &H05 ' Size of CWAD or uncompressed file\r
7Public Const CWAD_INFO_COMPRESSED_SIZE As Long = &H06 ' Size of compressed file\r
8Public Const CWAD_INFO_FLAGS As Long = &H07 ' File flags (compressed, etc.)\r
9Public Const CWAD_INFO_PARENT As Long = &H08 ' Handle of CWAD that file is in\r
10Public Const CWAD_INFO_POSITION As Long = &H09 ' Position of file pointer in files\r
11Public Const CWAD_INFO_PRIORITY As Long = &H0B ' Priority of open CWAD\r
12\r
13Public Const CWAD_TYPE_CWAD As Long = &H01\r
14Public Const CWAD_TYPE_FILE As Long = &H02\r
15\r
16Public Const CWAD_SEARCH_CURRENT_ONLY As Long = &H00 ' Used with CWadOpenFile; only the archive with the handle specified will be searched for the file\r
17Public Const CWAD_SEARCH_ALL_OPEN As Long = &H01 ' CWadOpenFile will look through all open archives for the file\r
18\r
19Declare Function CWadOpenArchive Lib "CwadLib.dll" (ByVal lpFileName As String, ByVal dwPriority As Long, ByRef hCWAD As Long) As Boolean\r
20Declare Function CWadCloseArchive Lib "CwadLib.dll" (ByVal hCWAD As Long) As Boolean\r
21Declare Function CWadListFiles Lib "CwadLib.dll" (ByVal hCWAD As Long, ByVal lpBuffer As String, ByVal dwBufferLength As Long) As Long ' Returns required buffer size. Strings are in multi string form. (null-terminated strings with an extra null after the last string)\r
22Declare Function CWadOpenFile Lib "CwadLib.dll" (ByVal hCWAD As Long, ByVal lpFileName As String, ByVal dwSearchScope As Long, ByRef hFile As Long) As Boolean\r
23Declare Function CWadCloseFile Lib "CwadLib.dll" (ByVal hFile As Long) As Boolean\r
24Declare Function CWadGetFileSize Lib "CwadLib.dll" (ByVal hFile As Long) As Long\r
25Declare Function CWadGetFileInfo Lib "CwadLib.dll" (ByVal hFile As Long, ByVal dwInfoType As Long) As Long\r
26Declare Function CWadSetFilePointer Lib "CwadLib.dll" (ByVal hFile As Long, ByVal lDistanceToMove As Long, ByVal dwMoveMethod As Long) As Long\r
27Declare Function CWadReadFile Lib "CwadLib.dll" (ByVal hFile As Long, ByRef lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, ByRef lpNumberOfBytesRead As Long) As Boolean\r
28Declare Function CWadSetArchivePriority Lib "CwadLib.dll" (ByVal hCWAD As Long, ByVal dwPriority As Long) As Boolean\r
29Declare Function CWadFindHeader Lib "CwadLib.dll" (ByVal hFile As Long) As Long\r