getEventNameIDs {RDCOMEvents}R Documentation

Retrieve the name-identifier for COM event methods

Description

This computes the names and the associated identifiers for a collection of methods in a COM event interface. When an event is broadcast to interested recipients, the identifier is used to indicate the particular event. This mapping of name-identifiers is used to identify the actual name of the event so that we can match it to a function in S.

Usage

getEventNameIDs(info)

Arguments

info the ITypeInfo object that describes the interface of interest. This is typically retrieved using the SWinTypeLibs package.

Value

A named integer vector giving the integer values corresponding to the different event types and the associated names.

Author(s)

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

References

http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinRegistry

See Also

createCOMEventServer getEventNameIDs

Examples

 library(RDCOMClient)
 library(SWinTypeLibs)
 e = getCOMInstance("Excel.Application")
 lib = LoadTypeLib(e)
 e$Quit()

 library(RDCOMServer)
 i = lib[["IWorkbookEvents"]]
 RDCOMEvents:::getEventNameIDs(i)

[Package RDCOMEvents version 0.3-1 Index]