Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get typelib dll/ocx path
#1
do you have an internal function to retreive the file from the typelib string ?

when not i guess its to open HKEY_CLASSES_ROOT\TypeLib\{}
and look for the win32 key.
pi
#2
Code:
Copy      Help
;typelib MSHTML {3050F1C5-98B5-11CF-BB82-00AA00BDCE0B} 4.0 0 1

dll oleaut32 #QueryPathOfRegTypeLib GUID*guid @wVerMajor @wVerMinor lcid BSTR*lpbstrPathName
dll ole32 IIDFromString @*lpsz GUID*lpiid

str guidstr="{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}"
GUID guidbin
guidstr.unicode
IIDFromString(+guidstr &guidbin)
BSTR s
QueryPathOfRegTypeLib(&guidbin 4 0 0 &s)
out s


Forum Jump:


Users browsing this thread: 1 Guest(s)