Hi,
using AHK it would be very helpfull knowing
a) a program provides COM-Components
and then
b) which methodes and properties are provided
Is there a way, a possibility to get those informatione e.g. from EXE- or DLL-Files of that program ?
regards
J.B.
explore wether a program provides COM-Components or not Topic is solved
explore wether a program provides COM-Components or not
AHK: 1.1.37.01 Ansi, 32-Bit; Win10 22H2 64 bit, german
Re: explore wether a program provides COM-Components or not
The program Ole/COM Viewer (oleview.exe) which is part of the Windows SDK (download @ Microsoft) allows you to browse all installed COM objects and type libraries.
To see which functions are exported by exe and dll files (not COM) you need a tool called Dependency Walker.
To see which functions are exported by exe and dll files (not COM) you need a tool called Dependency Walker.
Re: explore wether a program provides COM-Components or not Topic is solved
Hi,
thank you for your tip, that brought me on the right track
1.) list all available COMObjects, type that in a Powershell-Window:
with a small extension like you can pipe those results (from 1. above) in a text-file, so it is easier to handle.
2.) List all Methods and Properties of a certain COMObject (e.g. Excel) to a file (in this case) called members.csv, type those two lines (one after each other) into a Powershell-Window:
worked well on my Win7-Computer and another one with Win10, without a necessity to install something particular.
J.B.
thank you for your tip, that brought me on the right track
1.) list all available COMObjects, type that in a Powershell-Window:
Code: Select all
Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object {$_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")} | Select-Object -ExpandProperty PSChildName
Code: Select all
... > info.txt
2.) List all Methods and Properties of a certain COMObject (e.g. Excel) to a file (in this case) called members.csv, type those two lines (one after each other) into a Powershell-Window:
Code: Select all
$test1 = new-object -comobject Excel.Application
$test1 | get-member | export-csv members.csv -notypeinformation
J.B.
Last edited by Jovannb on 27 Apr 2017, 23:59, edited 1 time in total.
AHK: 1.1.37.01 Ansi, 32-Bit; Win10 22H2 64 bit, german
Re: explore wether a program provides COM-Components or not
Try COM Inspector, a tool recently included with AutoGUI.
-
- Posts: 162
- Joined: 12 Apr 2017, 23:03
Re: explore wether a program provides COM-Components or not
After I open COM inspector, if I do not see the name of the program in ProgID or Description, does that mean it does not support a COM interface?
Re: explore wether a program provides COM-Components or not
No, but the ITypeInfo interface needed to inspect the object is not available in almost all cases.
-
- Posts: 162
- Joined: 12 Apr 2017, 23:03
Re: explore wether a program provides COM-Components or not
Is it possible to work around this? I'd really appreciate some hints.Alguimist wrote:No, but the ITypeInfo interface needed to inspect the object is not available in almost all cases.
I got dependency walker as well and trying to put together the pieces.
Who is online
Users browsing this forum: Google [Bot], Mannaia666, wpulford and 407 guests