LoadRegTypeLib: Load type library given UUID and version information

View source: R/typelibrary.S

LoadRegTypeLibR Documentation

Load type library given UUID and version information

Description

Like LoadTypeLib, this function loads a type library into R and returns a reference/handle to it. However, how it finds the type library is different. LoadTypeLib is given the fully qualified location of the file that contains the type library. This function however consults the Window's registry to find the type library file and then load its. It uses the UUID that identifies the type library, along with version information and the locale identifier to determine which specific type library to load.

Usage

LoadRegTypeLib(guid, version, lcid = 0)

Arguments

guid

the UUID . Currently, this is a string/character vector rather than an object of class UUID.

version

an integer vector giving the major and minor version number in that order.

lcid

a numeric/real value identifying the locale for the type library.

Details

This calls the C-level routine LoadRegTypeLib. It consults the registry. We do not.

Value

An object of class ITypeLib-class.

Author(s)

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

References

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

See Also

LoadTypeLib getTypeLib getTypeLibInfo (unexported from SWinTypeLibs) retrieves the UUID, version and locale information from a IContainingTypeLib object derived from a ITypeInfo.

Examples

  # Get the excel type library.
  try(lib <- LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1)))

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