Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
where 'there' is the solution I'd be likely to use for this
[blue]Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Private Declare Function RegEnumKeyEx Lib "advapi32.dll" Alias "RegEnumKeyExA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, lpcbName As Long, ByVal lpReserved As Long, ByVal lpClass As String, lpcbClass As Long, lpftLastWriteTime As Any) As Long
Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Const UninstallKey = "Software\Microsoft\Windows\CurrentVersion\Uninstall"
Const HKEY_LOCAL_MACHINE = &H80000002
Const KEY_ENUMERATE_SUB_KEYS = &H8
Const KEY_QUERY_VALUE = &H1
Const ERROR_SUCCESS = 0&
Private Sub Form_Load()
Dim hKey As Long, hSubKey As Long
Dim SubKey As String * 1000, Index As Long
Dim pData As String * 1000, lData As Long
RegOpenKeyEx HKEY_LOCAL_MACHINE, UninstallKey, 0, KEY_ENUMERATE_SUB_KEYS, hKey
Form1.Show
While RegEnumKeyEx(hKey, Index, SubKey, Len(SubKey), 0, vbNullString, ByVal 0&, ByVal 0&) = ERROR_SUCCESS
lData = Len(pData)
RegOpenKeyEx HKEY_LOCAL_MACHINE, UninstallKey & "\" & SubKey, 0, KEY_QUERY_VALUE, hSubKey
If RegQueryValueEx(hSubKey, "DisplayName", 0, ByVal 0, ByVal pData, lData) = ERROR_SUCCESS Then List1.AddItem pData
RegCloseKey hSubKey
Index = Index + 1
Wend
RegCloseKey hKey
End Sub
Private Sub Form_Resize()
List1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub[/blue]