getTypeInfo           package:SWinTypeLibs           R Documentation

_R_e_f_e_r_e_n_c_e _t_o _I_T_y_p_e_I_n_f_o _O_b_j_e_c_t

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

     This is used to get the C-level representation of an 'ITypeInfo'
     object. Currently, one gets this from the 'ITypeLib' or from a
     'COMIDispatch' object. From this object, one can query the
     meta-information it contains such as method definitions, etc.

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

     getTypeInfo(obj, which)

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

     obj: the object from which to get the 'ITypeInfo' object.

   which: the index (1-based) of the element within the 'ITypeLib'
          whose 'ITypeInfo' object is desired. If this is omitted, all
          the elements in the type library are returned.

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

     An object of class 'ITypeInfo' which contains a slot giving the
     address of  the C-level object representing the 'ITypeInfo'
     object.

_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:

     'LoadTypeLib' 'LoadTypeLib'

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

     if(file.exists("c:\\WINNT\\system32\\wmpui.dll")) {
       l = LoadTypeLib("c:\\WINNT\\system32\\wmpui.dll")
       
       print(getTypeInfo(l, 3))
     }  

