objects: interfaces: method names and offset numbers

Get help with using AutoHotkey and its commands and hotkeys
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

objects: interfaces: method names and offset numbers

24 Aug 2019, 18:51

Do we have a way to get the method names/offset numbers for interfaces programmatically?

I describe how to do it manually, for IColumnManager, here:
jeeswg's objects tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=29232&p=147112#p147112

It could be very useful to at least get a method count programmatically.

Using C++ code would be fine also.

Links:
[AHK_L] ImportTypeLib - extended COM support! - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/78201-ahk-l-importtypelib-extended-com-support/
GitHub - maul-esel/ImportTypeLib
https://github.com/maul-esel/ImportTypeLib
[OfficeInfo uses ImportTypeLib to get MS Office constants]
OfficeInfo - MS Office COM constants - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=23164

Further links (of varying relevance):
GitHub - maul-esel/COM-Classes: AHK classes that implement COM interfaces
https://github.com/maul-esel/COM-Classes
[advanced] Using raw COM interfaces in AHK - Tutorials - AutoHotkey Community
https://autohotkey.com/board/topic/81077-advanced-using-raw-com-interfaces-in-ahk/
[COM] How to enumerate IEnumNetworkConnections in a more "native" way? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=15316
Enumerate Com Object Members - iTypeInfo - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/78967-enumerate-com-object-members-itypeinfo/
iTypeInfo - Get info from TypeAttr Struct - Enum Com Members - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/71038-itypeinfo-get-info-from-typeattr-struct-enum-com-members/
(COM) Expose class object through COM interface - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/113191-com-expose-class-object-through-com-interface/
ComObjEnum - Enumerate COM Collections - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/68344-comobjenum-enumerate-com-collections/
c++ - Enumerate COM object (IDispatch) methods using ATL? - Stack Overflow
https://stackoverflow.com/questions/2112302/enumerate-com-object-idispatch-methods-using-atl
ComObj iTypInfo (jethrow, Lexikos, SKAN, Maul-Esel...) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=15194
COM interface tutorial
https://maul-esel.github.io/tutorials/COM-Interfaces.html
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
swagfag
Posts: 4090
Joined: 11 Jan 2017, 17:59

Re: objects: interfaces: method names and offset numbers

25 Aug 2019, 09:12

other than parsing the headers, doubt there is one

Return to “Ask For Help”

Who is online

Users browsing this forum: AmDeG 11, Bing [Bot], Coriel-11, Google [Bot], helensmith, Kellyzkorner_NJ, mad3d, Miki86, Rohwedder, teadrinker and 60 guests