getTypeLib: Get a handle to the type library associated with an object

getTypeLibR Documentation

Get a handle to the type library associated with an object

Description

This function and its methods are very similar to LoadTypeLib in that they return a ITypeLib-class object containing a reference to a C-level type library. Currently, the only difference is that the method for a COMIDispatch object or a ITypeInfo object get the containing type library associated with the corresponding C-level object. And this is an object of class IContainingTypeLib-class as this is not necessarily the same as a library that is explicitly loaded from a file. As a result, LoadTypeLib is perhaps the preferred function.

Usage

getTypeLib(x)

Arguments

x

the object from which to get the type library information. This is typically an object of class ITypeInfo-class or a COMIDispatch-class object.

Value

An object of class {ITypeLib-class} or IContainingTypeLib-class.

Author(s)

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

References

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

See Also

LoadTypeLib LoadRegTypeLib


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