Declare Function GetPrivateProfileString Lib "Kernel" _
(Byval lpApplicationName As String, _
Byval lpKeyName As String, Byval lpDefault As String, _
Byval lpReturnedString As String, Byval nSize As Integer, _
Byval lpFileName As String) As Integer
Declare Function GetPrivateProfileStringA Lib "kernel32"_
Alias "GetPrivateProfileStringA"_
(Byval lpApplicationName As String, Byval lpKeyName As Any,_
Byval lpDefault As String, Byval lpReturnedString As String,_
Byval nSize As Long, Byval lpFileName As String) As Long
Declare Function GetWindowsDirectory LIB "kernel32" ALIAS "GetWindowsDirectoryA" (ByVal szBuf$,ByVal cbBuf&) AS LONG
' Registry declarations
Declare Function RegOpenKeyExA Lib "advapi32" Alias "RegOpenKeyExA" (Byval HKEY As Long,Byval lpszSubKey As String,Byval dwreserved As Integer,Byval samDesired As Long, keyresult As Long) As Long
Declare Function RegQueryValueExA Lib "advapi32" Alias "RegQueryValueExA" (Byval HKEY As Long,Byval lpszValueName As String,Byval dwreserved As Integer, lpdwtype As Long, Byval lpData As String, readbytes As Long) As Long
Declare Function RegCloseKey Lib "advapi32" Alias "RegCloseKey" (Byval HKEY As Long) As Long