getTypeLibInfo {SWinTypeLibs} | R Documentation |
This function returns information about the attributes of a
type libray that identify it, such as the UUID, and its
major and minor versions number and locale information.
One can get the type library from an instance of an application
using LoadTypeLib
applied to the
COMIDispatch-class
. Then, one
can get the information about that type library
so that it can be reloaded without the need to
use an instance of the application.
Specifically, one can call LoadRegTypeLib
with the information returned from this function getTypeLibInfo
to load the library in a different session or after it has been released.
getTypeLibInfo(lib)
lib |
the ITypeLib-class object whose information
is to be queried. |
An object of class ITypeLibIdentifier-class
.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://msdn.microsoft.com/library http://www.omegahat.org/RWinTypeLibs
lib <- LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1)) getTypeLibInfo(lib) ## Not run: e = COMCreate("Excel.Application") lib = LoadTypeLib(e) info = getTypeLibInfo(lib) e$Quit() LoadTypeLib(info) ## End(Not run)