Skip to content

Latest commit

 

History

History
124 lines (100 loc) · 3.55 KB

nf-oaidl-idispatch-gettypeinfocount.md

File metadata and controls

124 lines (100 loc) · 3.55 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:oaidl.IDispatch.GetTypeInfoCount
IDispatch::GetTypeInfoCount (oaidl.h)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
GetTypeInfoCount
GetTypeInfoCount method [Automation]
GetTypeInfoCount method [Automation]
IAccessible interface
GetTypeInfoCount method [Automation]
IDispatch interface
IAccessible interface [Automation]
GetTypeInfoCount method
IAccessible::GetTypeInfoCount
IDispatch interface [Automation]
GetTypeInfoCount method
IDispatch.GetTypeInfoCount
IDispatch::GetTypeInfoCount
_oa96_IDispatch::GetTypeInfoCount
automat.idispatch_gettypeinfocount
oaidl/IAccessible::GetTypeInfoCount
oaidl/IDispatch::GetTypeInfoCount
automat\idispatch_gettypeinfocount.htm
automat
da876d53-cb8a-465c-a43e-c0eb272e2a12
12/05/2018
GetTypeInfoCount, GetTypeInfoCount method [Automation], GetTypeInfoCount method [Automation],IAccessible interface, GetTypeInfoCount method [Automation],IDispatch interface, IAccessible interface [Automation],GetTypeInfoCount method, IAccessible::GetTypeInfoCount, IDispatch interface [Automation],GetTypeInfoCount method, IDispatch.GetTypeInfoCount, IDispatch::GetTypeInfoCount, _oa96_IDispatch::GetTypeInfoCount, automat.idispatch_gettypeinfocount, oaidl/IAccessible::GetTypeInfoCount, oaidl/IDispatch::GetTypeInfoCount
oaidl.h
Windows
OaIdl.idl
Windows
19H1
IDispatch::GetTypeInfoCount
oaidl/IDispatch::GetTypeInfoCount
c++
APIRef
kbSyntax
COM
oaidl.h
IDispatch.GetTypeInfoCount
IAccessible.GetTypeInfoCount

IDispatch::GetTypeInfoCount

-description

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

-parameters

-param pctinfo [out]

The number of type information interfaces provided by the object. If the object provides type information, this number is 1; otherwise the number is 0.

-returns

This method can return one of these values.

Return code Description
S_OK
Success.
E_NOTIMPL
Failure.

-remarks

The method may return zero, which indicates that the object does not provide any type information. In this case, the object may still be programmable through IDispatch or a VTBL, but does not provide run-time type information for browsers, compilers, or other programming tools that access type information. This can be useful for hiding an object from browsers.

Examples

This code from the Lines sample file Lines.cpp implements the GetTypeInfoCount member function for the CLines class (ActiveX or OLE object).

STDMETHODIMP
CLines::GetTypeInfoCount(UINT * pctinfo)
{
   if (pctinfo == NULL) {
      return E_INVALIDARG;
}
   *pctinfo = 1;
   return NOERROR;
}

-see-also

IAccessible

IDispatch