大网数据广告活动
Windows 系统接口

OLE/COM Object Viewer

· 52CE 我爱测

The OLE-COM object viewer, Oleview.exe, is an application supplied with Visual C++ that displays the COM objects installed on your computer and the interfaces they support. You can use this object viewer to view type libraries.

The OLE/COM Object Viewer, oleview.exe, is an application supplied in the Windows SDK that displays the COM objects installed on your computer and the interfaces they support. You can use this object viewer to view type libraries and interfaces.

The OLE/COM Object Viewer app is found in the Windows SDK in \Program Files (x86)\Windows Kits\10\bin\[version]\[architecture]\oleview.exe. The first time you use oleview.exe, run it from an elevated command prompt. The interface viewer requires administrator rights to register its DLL.

To view a COM object's type library

  1. On the object viewer File menu, choose View TypeLib. An Open dialog box appears.

  2. Specify the type library file you want to open, and choose OK.

The object viewer displays the object's interfaces.

To view a registered object's interfaces

  1. In the Object Classes > Grouped by Component category in the viewer, open the Automation Objects folder to view the registered Automation objects.

  2. Select one of the controls. Several tabs appear in the right pane; the interfaces that are implemented by the control are displayed on the Registry tab.

    • If you open the shortcut menu for a control in the left pane and then choose View Type Information, the ITypeInfo Viewer displays a reconstructed .idl or .odl file.

    • If you expand the control node in the left pane, a list of the interfaces in the object is displayed. If you select an interface, its registry entry is displayed in the right pane.

    • If you open the shortcut menu for an interface and then choose View, the OLE/COM Object Viewer displays a dialog box that shows the GUID for the interface and an option to view type library information, if it is available. Selecting View Type Info displays a portion of a reconstructed .idl file that is specific to the interface in the ITypeInfo Viewer.

    • In the ITypeInfo Viewer, you can select an interface member in the tree view to display the accessor method signatures in the right pane.

Related topics

Translating to C++

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。