getTypeLibInfo         package:SWinTypeLibs         R Documentation

_R_e_t_u_r_n_s _i_n_f_o_r_m_a_t_i_o_n _a_b_o_u_t _i_d_e_n_t_i_f_y_i_n_g _a _t_y_p_e _l_i_b_r_a_r_y

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

     This function returns information about the attributes of a type
     libray that identify it, such as the UUID, and its major and minor
     versions number and locale information. One can get the type
     library from an instance of an application using  'LoadTypeLib'
     applied to the  'COMIDispatch-class'.  Then, one can get the
     information about that type library  so that it can be reloaded
     without the need to  use an instance of the application.
     Specifically, one can call 'LoadRegTypeLib' with the information
     returned from this function 'getTypeLibInfo' to load the library
     in a different session or after it has been released.

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

     getTypeLibInfo(lib)

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

     lib: the 'ITypeLib-class' object whose information is to be
          queried.

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

     An object of class 'ITypeLibIdentifier-class'.

_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' 'LoadRegTypeLib'

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

      lib <- LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1))
      getTypeLibInfo(lib)

     ## Not run: 
      e = COMCreate("Excel.Application")
      lib = LoadTypeLib(e)
      info = getTypeLibInfo(lib)
      e$Quit()
      LoadTypeLib(info)
     ## End(Not run)

