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.
Public Declare Function GetClassWord
Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare
Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal
lpFileName As String, ByVal nSize As (Long) As Long
Private Sub
Command2_Click()
hModule = GetClassWord(hwndTarget,
GCW_HMODULE)
fnam$ = String$(255, vbNullChar)
retlen% = GetModuleFileName(hModule, fnam$, 254)
fnam$ = Left$(fnam$, retlen%)
MsgBox fnam$
End Sub
[\code]
This is what i found... i'll see if it works...
hModule = GetClassWord(hwndTarget, GCW_HMODULE)
fnam$ = String$(255, vbNullChar)
retlen% = GetModuleFileName(hModule, fnam$, 254)
fnam$ = Left$(fnam$, retlen%)
MsgBox fnam$
pathCTX = GetPath("CTX")