getTypeInfo: Reference to ITypeInfo Object

getTypeInfoR Documentation

Reference to ITypeInfo Object

Description

This is used to get the C-level representation of an ITypeInfo object. Currently, one gets this from the ITypeLib or from a COMIDispatch-class object. From this object, one can query the meta-information it contains such as method definitions, etc.

Usage

getTypeInfo(obj, which)

Arguments

obj

the object from which to get the ITypeInfo object.

which

the index (1-based) of the element within the ITypeLib whose ITypeInfo object is desired. If this is omitted, all the elements in the type library are returned.

Value

An object of class ITypeInfo which contains a slot giving the address of the C-level object representing the ITypeInfo object.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://msdn.microsoft.com/library http://www.omegahat.org/RWinTypeLibs

See Also

LoadTypeLib LoadTypeLib

Examples

if(file.exists("c:\\WINNT\\system32\\wmpui.dll")) {
  l = LoadTypeLib("c:\\WINNT\\system32\\wmpui.dll")
  
  print(getTypeInfo(l, 3))
}  

omegahat/SWinTypeLibs documentation built on Jan. 17, 2024, 6:40 p.m.