getTypeLibUUIDs         package:SWinTypeLibs         R Documentation

_G_e_t _a_l_l _o_f _t_h_e _U_U_I_D/_G_U_I_D_s _o_f _t_h_e _t_y_p_e_s _i_n _t_h_e _t_y_p_e _l_i_b_r_a_r_y.

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     getTypeLibUUIDs(lib)

_A_r_g_u_m_e_n_t_s:

     lib: an object of class 'ITypeLib-class'

_V_a_l_u_e:

     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.

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

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

_S_e_e _A_l_s_o:

     'names,ITypeLib-method' '[[,ITypeLib-method'

_E_x_a_m_p_l_e_s:

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

