' Textvergleiche erfolgen ohne Rⁿcksicht auf Gross/Kleinschreibung
Option Compare Text
' ----------------------------
' - Benutzerdefinierte Typen -
' ----------------------------
Type TM_OutlineRec
Bezeichnung As String * 25
hat_unter_obj As Integer
Vaterobj As Long
Kind As Long
Vor As Long
Nach As Long
Pfad As String * 128
Ebene As Integer
Visible As Integer
End Type
Type TM_DBRec
Bezeichnung As String * 35
Vater As Long
Verzeichnis As String * 128
Code As Integer
End Type
Type TM_WordsRec
wort As String * 50
End Type
Type TM_OccursRec
ID_Wort As Long
ID_Spy As Long
filename As String * 12
End Type
Type TM_Worte
wort As String * 50
ID As Long
End Type
Type TM_AktElement
Info As String
Startfile As String
Demofile As String
Readmefile As String
Verzeichnis As String
Code As Integer
SetupCommand As String
Hilfefile As String
Copy As Integer
End Type
' ---------------------
' - globale Variablen -
' ---------------------
' zuletzt mit FM_LiesDB gelesenen Datensatz
Global GM_DB As TM_DBRec
' gesamte Datenbank
Global GM_DBAll() As TM_DBRec
' Pfad der Datei CDINFO
Global G_CDInfoFile As String
' diverses
Global G_Control As Control
' Pfad des im Editor anzuzeigenden Files
Global G_EditFile As String
' Liste der zu kopierenden Dateien
Global G_CopyFiles As String
' Liste aller benutzer W÷rter (Wird in der prod. Version nicht ben÷tigt!)
Global G_Worte() As TM_Worte
' CD-Laufwerk
Global GM_Drive As String * 2
' Spy-Datenbank Dateiname
Global GM_DBName As String * 12
' W÷rterdatenbank Dateiname
Global GM_DBWorte As String * 40
' Vorkommendatenbank Dateiname
Global GM_DBOccurs As String * 40
' Array das alle gefundenen Stichwortpositionen enthΣlt
Global GM_Occurs() As TM_OccursRec
' Flags
Global GM_Refresh As Integer
' Aktuell ausgewΣhltes Element
Global GM_AktElement As TM_AktElement
' Suchtext nach dem die aktuelle Suche erfolgt
Global GM_Searchtext As String
' Dateihandle fⁿr die Datenbank SPY.DAT
Global GM_FH_DBName As Integer
' Fensterbezeichnung fⁿr F_Search
Global GM_Searchtitle As String
' Suchstring um im Editor weitersuchen zu k÷nnen
Global GM_SeekString As String
' Flag, ob der Editor ein ⁿbergrosses File enthΣlt
Global GM_HugeFile As Integer
' ----------------------
' - globale Konstanten -
' ----------------------
' Dateinamen
Global Const GCM_INFOFILENAME = "CDINFO.TXT"
Global Const GCM_DBNAME = "N:\SPY.DAT"
' CDInfo.TXT Topics
Global Const GCM_VERZEICHNIS = "VERZEICHNIS="
Global Const GCM_PROJEKT = "PROJEKT="
Global Const GCM_INFO = "INFO="
Global Const GCM_DEMO = "DEMO="
Global Const GCM_INSTALL = "INSTALL="
Global Const GCM_STARTABLE = "STARTABLE="
Global Const GCM_README = "README="
' Allgemeine Konstanten
Global Const GCM_SEPERATOR = ","
Global Const GCM_OWNER_ERROR = 32767
' INI-Datei Topics
Global Const GCM_EINSTELLUNGEN = "Einstellungen"
Global Const GCM_SPLITT = "Splitt"
' SchaltflΣchen im Cmd_Array
Global Const GCM_CMD_INFO = 0
Global Const GCM_CMD_START = 1
Global Const GCM_CMD_DEMO = 2
Global Const GCM_CMD_COPY = 3
Global Const GCM_CMD_INSTALL = 4
Global Const GCM_CMD_CODE = 5
Global Const GCM_CMD_HILFE = 6
Global Const GCM_CMD_README = 7
' Konstanten fⁿr Textboxhandling
Global Const ON_TAB = 1
Global Const ON_ALT = 2
Global Const ON_MOUSE = 3
Global Const ON_ELSE = 4
' allgemeine Konstanten
Global Const GCM_ENABLE = -1
Global Const GCM_DISABLE = 0
Global Const GCM_STICHWORTSUCHE = "Stichwortsuche"
Global Const GCM_TITELTEXTSUCHE = "Titeltextsuche"
' ---------------------
' - API-Deklarationen -
' ---------------------
Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Long
Declare Function GetModuleUsage Lib "KERNEL" (ByVal InstanceID%) As Integer
Declare Function EnableWindow% Lib "User" (ByVal hWnd%, ByVal aBOOL%)
Declare Function GetProfileString Lib "Kernel" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer) As Integer
Declare Function GetAsyncKeyState Lib "User" (ByVal vKey As Integer) As Integer