-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththinBasic_registry.bas
More file actions
54 lines (42 loc) · 1.62 KB
/
thinBasic_registry.bas
File metadata and controls
54 lines (42 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#COMPILE DLL
#REGISTER NONE
#DIM ALL
'------------------------------------------------------------------
#Resource RES "thinBasic_registry.RES"
'------------------------------------------------------------------
#INCLUDE "WIN32API.INC"
#INCLUDE "..\module_core\thinCore.INC"
#INCLUDE ".\thinBasic_registry_interface.INC"
'------------------------------------------------------------------
'----------------------------------------------------------------------------
FUNCTION LoadLocalSymbols ALIAS "LoadLocalSymbols" (OPTIONAL BYVAL sPath AS STRING) EXPORT AS LONG
' -- exposes the functionality to thinBasic
Registry_LoadSymbols()
FUNCTION = 0&
END FUNCTION
'----------------------------------------------------------------------------
FUNCTION UnLoadLocalSymbols ALIAS "UnLoadLocalSymbols" () EXPORT AS LONG
' This function is automatically called by thinCore whenever this DLL is unloaded.
' This function CAN be present but it is not necessary.
' Use this function to perform uninitialize process, if needed.
'----------------------------------------------------------------------------
FUNCTION = 0&
END FUNCTION
FUNCTION LIBMAIN ALIAS "LibMain" (BYVAL hInstance AS LONG, _
BYVAL fwdReason AS LONG, _
BYVAL lpvReserved AS LONG) EXPORT AS LONG
SELECT CASE fwdReason
CASE %DLL_PROCESS_ATTACH
FUNCTION = 1
EXIT FUNCTION
CASE %DLL_PROCESS_DETACH
FUNCTION = 1
EXIT FUNCTION
CASE %DLL_THREAD_ATTACH
FUNCTION = 1
EXIT FUNCTION
CASE %DLL_THREAD_DETACH
FUNCTION = 1
EXIT FUNCTION
END SELECT
END FUNCTION