getTypeLibUUIDs: Get all of the UUID/GUIDs of the types in the type library.

getTypeLibUUIDsR Documentation

Get all of the UUID/GUIDs of the types in the type library.

Description

This function iterates over all the elements in the type library and retrieves the GUID for each. These are labelled by the human-readable name of the element.

Usage

getTypeLibUUIDs(lib)

Arguments

lib

an object of class ITypeLib-class

Value

A character vector with as many elements as there are elements in the type library. (See length,ITypeLib-method.) Each value is a UUID, and the corresponding element in the names vector comes from names(lib), and gives the human-readable form of the identifier for that element of the type library. This is a useful way to map from GUID to type library element. This is needed, for example, when matching connection points for registering for events to particular interfaces. The connection point gives us the UUID and we map this to an interface using this function.

Author(s)

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

References

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

See Also

names,ITypeLib-method [[,ITypeLib-method

Examples

## Not run: 
  library(RDCOMClient)
  e = COMCreate("Excel.Application")
  lib = LoadTypeLibrary(e)
  getTypeLibUUIDs(lib)

## End(Not run)

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