getTypeLibInfo: Returns information about identifying a type library

View source: R/typelibrary.S

getTypeLibInfoR Documentation

Returns information about identifying a type library

Description

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.

Usage

getTypeLibInfo(lib)

Arguments

lib

the ITypeLib-class object whose information is to be queried.

Value

An object of class ITypeLibIdentifier-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

Examples

 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)

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