ooRexx Tool "oleinfo": Create HTML OLE Documentation on the Fly
Methods and their arguments
Properties and their type
Events and their arguments
Constants and their values
if the Windows program publishes this information!
::requires directiveAnalyzes the Windows registry
Lists all COM/OLE classes with a ProgId
Usage (command)
0" (default: show ProgId only) or "1" (show CLSID in addition)fragment (caseless comparison)rexx listProgIds.rex
Possible output:
32-bit # 1/2240: ProgId: [AboveLockAppLaunchCallback]
32-bit # 2/2240: ProgId: [AccClientDocMgr.AccClientDocMgr]
32-bit # 3/2240: ProgId: [AccDictionary.AccDictionary]
32-bit # 4/2240: ProgId: [Access.Application]
… cut …
32-bit # 2238/2240: ProgId: [xhtmlfile]
32-bit # 2239/2240: ProgId: [XML]
32-bit # 2240/2240: ProgId: [xmlfile]
Or 64-bit ooRexx (maybe):
64-bit # 1/1902: ProgId: [AADJCSP]
64-bit # 2/1902: ProgId: [ABIT.ABIT]
64-bit # 3/1902: ProgId: [AboveLockAppLaunchCallback]
… cut …
64-bit # 1900/1902: ProgId: [ZeroConfigService.ZDevice]
64-bit # 1901/1902: ProgId: [ZeroConfigService.ZService]
64-bit # 1902/1902: ProgId: [ZipSend.CourierService]rexx listProgIds.rex explorer
Output:
32-bit # 316/2240: ProgId: [ClassicExplorer.ClassicCopyExt]
32-bit # 317/2240: ProgId: [ClassicExplorer.ExplorerBand]
32-bit # 318/2240: ProgId: [ClassicExplorer.ExplorerBHO]
32-bit # 319/2240: ProgId: [ClassicExplorer.ShareOverlay]
32-bit # 755/2240: ProgId: [InternetExplorer.Application]
32-bit # 1561/2240: ProgId: [Shell.Explorer]
Or 64-bit ooRexx (maybe):
64-bit # 306/1902: ProgId: [ClassicExplorer.ClassicCopyExt]
64-bit # 307/1902: ProgId: [ClassicExplorer.ExplorerBand]
64-bit # 308/1902: ProgId: [ClassicExplorer.ExplorerBHO]
64-bit # 309/1902: ProgId: [ClassicExplorer.ShareOverlay]
64-bit # 665/1902: ProgId: [InternetExplorer.Application]
64-bit # 1273/1902: ProgId: [Shell.Explorer]Creates an OLEObject instance from the ProgId or CLSID
Queries all interfaces for methods, properties, events and constants
Creates an HTML text file
Displays the results in the default web browser
Usage (command)
0" (default: long format) or "1" (short reference format)0" (do not display result) or "1" (default: display result in web browser)createOleInfo.rex can be called from within a ooRexx program
Usage from within an ooRexx program
call createOleInfo.rex OleObject, [Title], [0|1], [0|1]
0" (default: long format) or "1" (short reference format)0" (do not display result) or "1" (default: display result in web browser)rexx createOleInfo.rex InternetExplorer.Application
rexx createOleInfo.rex InternetExplorer.Application
rexx createOleInfo.rex InternetExplorer.Application 1
Creates an ooRexx program that contains all published constants
.ole.const~RGBBROWN may return the value 2763429 for ExcelUsage (command)
Example
Queries Excel for all its published constants
Creates a Rexx program that stores all constants into the .ole.const stringtable
Saves that Rexx program in a file named constExcel.rex
Any ooRexx program can then require constExcel.rex and access .ole.const
Possible Output:
Excel constant for the color brown: 2763429WU
Prof. Mag. Dr. Rony G. Flatscher
Welthandelsplatz 1
1020 Wien/Vienna
Austria/Europe
www: www.wu.ac.at