Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Runtime.​InteropServices.​ComTypes.​ITypeInfo
Assembly: System.Runtime.InteropServices
Provides the managed definition of the Component Automation ITypeInfo interface.
Methods
public
void
GetDllEntry​(int memid,
INVOKEKIND invKind,
nint pBstrDllName,
nint pBstrName,
nint pwOrdinal)
memid
The ID of the member function whose DLL entry description is to be returned.
invKind
One of the <see cref="T:System.Runtime.InteropServices.ComTypes.INVOKEKIND" /> values that specifies the kind of member identified by <paramref name="memid" /> .
pBstrDllName
If not <see langword="null" /> , the function sets <paramref name="pBstrDllName" /> to a <see langword="BSTR" /> that contains the name of the DLL.
pBstrName
If not <see langword="null" /> , the function sets <c>lpbstrName</c> to a <see langword="BSTR" /> that contains the name of the entry point.
pwOrdinal
If not <see langword="null" /> , and the function is defined by an ordinal, then <c>lpwOrdinal</c> is set to point to the ordinal.
Retrieves a description or specification of an entry point for a function in a DLL.
public
void
GetDocumentation​(int index,
String& strName,
String& strDocString,
Int32& dwHelpContext,
String& strHelpFile)
public
void
GetIDsOfNames​(string[] rgszNames,
int cNames,
int[] pMemId)
rgszNames
An array of names to map.
cNames
The count of names to map.
pMemId
When this method returns, contains a reference to an array in which name mappings are placed. This parameter is passed uninitialized.
Maps between member names and member IDs, and parameter names and parameter IDs.
public
void
GetNames​(int memid,
string[] rgBstrNames,
int cMaxNames,
Int32& pcNames)
public
void
Invoke​(object pvInstance,
int memid,
short wFlags,
DISPPARAMS& pDispParams,
nint pVarResult,
nint pExcepInfo,
Int32& puArgErr)
public
void
ReleaseFuncDesc​(nint pFuncDesc)
pFuncDesc
A reference to the <see langword="FUNCDESC" /> structure to release.
Releases a <see cref="T:System.Runtime.InteropServices.FUNCDESC" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetFuncDesc(System.Int32,System.IntPtr@)" /> method.
public
void
ReleaseTypeAttr​(nint pTypeAttr)
pTypeAttr
A reference to the <see langword="TYPEATTR" /> structure to release.
Releases a <see cref="T:System.Runtime.InteropServices.TYPEATTR" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetTypeAttr(System.IntPtr@)" /> method.
public
void
ReleaseVarDesc​(nint pVarDesc)
pVarDesc
A reference to the <see langword="VARDESC" /> structure to release.
Releases a <see langword="VARDESC" /> structure previously returned by the <see cref="M:System.Runtime.InteropServices.ComTypes.ITypeInfo.GetVarDesc(System.Int32,System.IntPtr@)" /> method.