共用方式為


IDispatch

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This interface exposes objects, methods, and properties to Automation programming tools and other applications.

Methods

The following table shows the methods for this interface in the order that the compiler calls the methods. Like all COM interfaces, this interface inherits the methods for the IUnknown interface.

Method Description

IDispatch::GetTypeInfoCount

This method retrieves the number of type information interfaces that an object provides, either 0 or 1.

IDispatch::GetTypeInfo

This method retrieves the type information for an object.

IDispatch::GetIDsOfNames

This method maps a single member name and an optional set of parameter names to a corresponding set of integer dispatch identifiers (DISPIDs), which can then be used on subsequent calls to Invoke.

IDispatch::Invoke

This method provides access to properties and methods exposed by an object.

Requirements

Header oaidl.h, oaidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Automation Interfaces
IUnknown