LoadTypeLib: Load Type Library into R

LoadTypeLibR Documentation

Load Type Library into R

Description

This loads the specified file which is assumed to be a type library into R and returns a reference or handle to that library object. This can then be used in subsequent calls to query the contents of the library.

Usage

LoadTypeLib(fileName)

Arguments

fileName

character vector of length 1. This is the name of the file to load.

Details

This calls the routine LoadTypeLib() in the Microsoft API.

Value

An object of class ITypeLib containing a reference to the C-level handle for the loaded library.

Author(s)

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

References

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

See Also

getTypeLibTypes getTypeDocumentation

Examples

 if(file.exists("c:\\WINNT\\system32\\wmpui.dll")) {
   l = LoadTypeLib("c:\\WINNT\\system32\\wmpui.dll")
   names(l)
   l[[1]]
   print(getTypeDocumentation(l, 14))
   print(getTypeLibTypes(l))
 }

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