Ruby  2.0.0p247(2013-06-27revision41674)
Data Structures | Defines | Typedefs | Functions | Variables
ext/win32ole/win32ole.c File Reference
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
#include <ctype.h>
#include <windows.h>
#include <ocidl.h>
#include <olectl.h>
#include <ole2.h>
#include <stdlib.h>
#include <math.h>
#include <varargs.h>
#include <objidl.h>

Go to the source code of this file.

Data Structures

struct  IEventSink
struct  IEventSinkVtbl
struct  tagIEVENTSINKOBJ
struct  oledata
struct  oletypelibdata
struct  oletypedata
struct  olemethoddata
struct  olevariabledata
struct  oleparamdata
struct  oleeventdata
struct  oleparam
struct  olevariantdata

Defines

#define GNUC_OLDER_3_4_4
#define va_init_list(a, b)   va_start(a)
#define DOUT   fprintf(stderr,"[%d]\n",__LINE__)
#define DOUTS(x)   fprintf(stderr,"[%d]:" #x "=%s\n",__LINE__,x)
#define DOUTMSG(x)   fprintf(stderr, "[%d]:" #x "\n",__LINE__)
#define DOUTI(x)   fprintf(stderr, "[%ld]:" #x "=%d\n",__LINE__,x)
#define DOUTD(x)   fprintf(stderr, "[%d]:" #x "=%f\n",__LINE__,x)
#define V_UNION1(X, Y)   ((X)->Y)
#define V_I1REF(X)   V_UNION(X, pcVal)
#define V_UI2REF(X)   V_UNION(X, puiVal)
#define V_INT(X)   V_UNION(X, intVal)
#define V_INTREF(X)   V_UNION(X, pintVal)
#define V_UINT(X)   V_UNION(X, uintVal)
#define V_UINTREF(X)   V_UNION(X, puintVal)
#define OLE_RELEASE(X)   (X) ? ((X)->lpVtbl->Release(X)) : 0
#define OLE_ADDREF(X)   (X) ? ((X)->lpVtbl->AddRef(X)) : 0
#define OLE_GET_TYPEATTR(X, Y)   ((X)->lpVtbl->GetTypeAttr((X), (Y)))
#define OLE_RELEASE_TYPEATTR(X, Y)   ((X)->lpVtbl->ReleaseTypeAttr((X), (Y)))
#define OLE_FREE(x)
#define OLEData_Get_Struct(obj, pole)
#define I8_2_NUM   INT2NUM
#define UI8_2_NUM   UINT2NUM
#define NUM2I8   NUM2INT
#define NUM2UI8   NUM2UINT
#define WC2VSTR(x)   ole_wc2vstr((x), TRUE)
#define WIN32OLE_VERSION   "1.5.4"
#define g_ole_initialized   (BOOL)TlsGetValue(g_ole_initialized_key)
#define g_ole_initialized_init()   (g_ole_initialized_key = TlsAlloc())
#define g_ole_initialized_set(val)   TlsSetValue(g_ole_initialized_key, (void*)(val))
#define pIMultiLanguage   NULL /* dummy */
#define ENC_MACHING_CP(enc, encname, cp)   if(strcasecmp(rb_enc_name((enc)),(encname)) == 0) return cp
#define load_conv_function51932()   failed_load_conv51932()
#define conv_51932(cp)   ((cp) == 51932 && (load_conv_function51932(), 1))

Typedefs

typedef IUnknown DWORD
typedef IUnknown COSERVERINFO
MULTI_QI *typedef 
HWND (WINAPI FNHTMLHELP)(HWND hwndCaller
typedef IUnknown COSERVERINFO
MULTI_QI *typedef LPCSTR 
pszFile
typedef IUnknown COSERVERINFO
MULTI_QI *typedef LPCSTR UINT 
uCommand
typedef IUnknown COSERVERINFO
MULTI_QI *typedef LPCSTR UINT
DWORD 
dwData
typedef BOOL( FNENUMSYSEMCODEPAGES )(CODEPAGE_ENUMPROC, DWORD)
typedef struct IEventSinkPEVENTSINK
typedef struct IEventSinkVtbl IEventSinkVtbl
typedef struct tagIEVENTSINKOBJ IEVENTSINKOBJ
typedef struct tagIEVENTSINKOBJPIEVENTSINKOBJ

Functions

typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)(REFCLSID
static HRESULT (STDMETHODCALLTYPE QueryInterface)(IDispatch __RPC_FAR *
static ULONG (STDMETHODCALLTYPE AddRef)(IDispatch __RPC_FAR *This)
static IDispatch * val2dispatch (VALUE val)
static double rbtime2vtdate (VALUE tmobj)
static VALUE vtdate2rbtime (double date)
static rb_encodingole_cp2encoding (UINT cp)
static UINT ole_encoding2cp (rb_encoding *enc)
 NORETURN (static void failed_load_conv51932(void))
static UINT ole_init_cp (void)
static char * ole_wc2mb (LPWSTR pw)
static VALUE ole_hresult2msg (HRESULT hr)
static void ole_freeexceptinfo (EXCEPINFO *pExInfo)
static VALUE ole_excepinfo2msg (EXCEPINFO *pExInfo)
static void ole_raise (HRESULT hr, VALUE ecs, const char *fmt,...)
static void ole_initialize (void)
static void ole_msg_loop (void)
static void ole_free (struct oledata *pole)
static void oletypelib_free (struct oletypelibdata *poletypelib)
static void oletype_free (struct oletypedata *poletype)
static void olemethod_free (struct olemethoddata *polemethod)
static void olevariable_free (struct olevariabledata *polevar)
static void oleparam_free (struct oleparamdata *pole)
static LPWSTR ole_vstr2wc (VALUE vstr)
static LPWSTR ole_mb2wc (char *pm, int len)
static VALUE ole_wc2vstr (LPWSTR pw, BOOL isfree)
static VALUE ole_ary_m_entry (VALUE val, long *pid)
static void * get_ptr_of_variant (VARIANT *pvar)
static VALUE is_all_index_under (long *pid, long *pub, long dim)
static void ole_set_safe_array (long n, SAFEARRAY *psa, long *pid, long *pub, VALUE val, long dim, VARTYPE vt)
static long dimension (VALUE val)
static long ary_len_of_dim (VALUE ary, long dim)
static HRESULT ole_val_ary2variant_ary (VALUE val, VARIANT *var, VARTYPE vt)
static void ole_val2variant (VALUE val, VARIANT *var)
static void ole_val2variant_ex (VALUE val, VARIANT *var, VARTYPE vt)
static void ole_val2ptr_variant (VALUE val, VARIANT *var)
static void ole_set_byref (VARIANT *realvar, VARIANT *var, VARTYPE vt)
static void ole_val2olevariantdata (VALUE val, VARTYPE vt, struct olevariantdata *pvar)
static void ole_val2variant2 (VALUE val, VARIANT *var)
static VALUE make_inspect (const char *class_name, VALUE detail)
static VALUE default_inspect (VALUE self, const char *class_name)
static VALUE ole_set_member (VALUE self, IDispatch *dispatch)
static VALUE fole_s_allocate (VALUE klass)
static VALUE create_win32ole_object (VALUE klass, IDispatch *pDispatch, int argc, VALUE *argv)
static VALUE ary_new_dim (VALUE myary, long *pid, long *plb, long dim)
static void ary_store_dim (VALUE myary, long *pid, long *plb, long dim, VALUE val)
static VALUE ole_variant2val (VARIANT *pvar)
static LONG reg_open_key (HKEY hkey, const char *name, HKEY *phkey)
static LONG reg_open_vkey (HKEY hkey, VALUE key, HKEY *phkey)
static VALUE reg_enum_key (HKEY hkey, DWORD i)
static VALUE reg_get_val (HKEY hkey, const char *subkey)
static VALUE reg_get_typelib_file_path (HKEY hkey)
static VALUE typelib_file_from_clsid (VALUE ole)
static VALUE typelib_file_from_typelib (VALUE ole)
static VALUE typelib_file (VALUE ole)
static void ole_const_load (ITypeLib *pTypeLib, VALUE klass, VALUE self)
static HRESULT clsid_from_remote (VALUE host, VALUE com, CLSID *pclsid)
static VALUE ole_create_dcom (int argc, VALUE *argv, VALUE self)
static VALUE ole_bind_obj (VALUE moniker, int argc, VALUE *argv, VALUE self)
static VALUE fole_s_connect (int argc, VALUE *argv, VALUE self)
static VALUE fole_s_const_load (int argc, VALUE *argv, VALUE self)
static VALUE ole_types_from_typelib (ITypeLib *pTypeLib, VALUE classes)
static ULONG reference_count (struct oledata *pole)
static VALUE fole_s_reference_count (VALUE self, VALUE obj)
static VALUE fole_s_free (VALUE self, VALUE obj)
static HWND ole_show_help (VALUE helpfile, VALUE helpcontext)
static VALUE fole_s_show_help (int argc, VALUE *argv, VALUE self)
static VALUE fole_s_get_code_page (VALUE self)
static BOOL CALLBACK installed_code_page_proc (LPTSTR str)
static BOOL code_page_installed (UINT cp)
static VALUE fole_s_set_code_page (VALUE self, VALUE vcp)
static VALUE fole_s_get_locale (VALUE self)
static BOOL CALLBACK installed_lcid_proc (LPTSTR str)
static BOOL lcid_installed (LCID lcid)
static VALUE fole_s_set_locale (VALUE self, VALUE vlcid)
static VALUE fole_s_create_guid (VALUE self)
static VALUE fole_s_ole_initialize (VALUE self)
static VALUE fole_s_ole_uninitialize (VALUE self)
static VALUE fole_initialize (int argc, VALUE *argv, VALUE self)
static VALUE hash2named_arg (VALUE pair, struct oleparam *pOp)
static VALUE set_argv (VARIANTARG *realargs, unsigned int beg, unsigned int end)
static VALUE ole_invoke (int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
static VALUE fole_invoke (int argc, VALUE *argv, VALUE self)
static VALUE ole_invoke2 (VALUE self, VALUE dispid, VALUE args, VALUE types, USHORT dispkind)
static VALUE fole_invoke2 (VALUE self, VALUE dispid, VALUE args, VALUE types)
static VALUE fole_getproperty2 (VALUE self, VALUE dispid, VALUE args, VALUE types)
static VALUE fole_setproperty2 (VALUE self, VALUE dispid, VALUE args, VALUE types)
static VALUE fole_setproperty_with_bracket (int argc, VALUE *argv, VALUE self)
static VALUE fole_setproperty (int argc, VALUE *argv, VALUE self)
static VALUE fole_getproperty_with_bracket (int argc, VALUE *argv, VALUE self)
static VALUE ole_propertyput (VALUE self, VALUE property, VALUE value)
static VALUE fole_free (VALUE self)
static VALUE ole_each_sub (VALUE pEnumV)
static VALUE ole_ienum_free (VALUE pEnumV)
static VALUE fole_each (VALUE self)
static VALUE fole_missing (int argc, VALUE *argv, VALUE self)
static VALUE ole_method_sub (VALUE self, ITypeInfo *pOwnerTypeInfo, ITypeInfo *pTypeInfo, VALUE name)
static VALUE olemethod_from_typeinfo (VALUE self, ITypeInfo *pTypeInfo, VALUE name)
static VALUE ole_methods_sub (ITypeInfo *pOwnerTypeInfo, ITypeInfo *pTypeInfo, VALUE methods, int mask)
static VALUE ole_methods_from_typeinfo (ITypeInfo *pTypeInfo, int mask)
static HRESULT typeinfo_from_ole (struct oledata *pole, ITypeInfo **ppti)
static VALUE ole_methods (VALUE self, int mask)
static VALUE fole_methods (VALUE self)
static VALUE fole_get_methods (VALUE self)
static VALUE fole_put_methods (VALUE self)
static VALUE fole_func_methods (VALUE self)
static VALUE ole_type_from_itypeinfo (ITypeInfo *pTypeInfo)
static VALUE fole_type (VALUE self)
static VALUE ole_typelib_from_itypeinfo (ITypeInfo *pTypeInfo)
static VALUE fole_typelib (VALUE self)
static VALUE fole_query_interface (VALUE self, VALUE str_iid)
static VALUE fole_respond_to (VALUE self, VALUE method)
static HRESULT ole_docinfo_from_type (ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile)
static VALUE ole_usertype2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
static VALUE ole_ptrtype2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
static VALUE ole_typedesc2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
static VALUE fole_method_help (VALUE self, VALUE cmdname)
static VALUE fole_activex_initialize (VALUE self)
static VALUE foletype_s_ole_classes (VALUE self, VALUE typelib)
static VALUE foletype_s_typelibs (VALUE self)
static VALUE foletype_s_progids (VALUE self)
static VALUE foletype_s_allocate (VALUE klass)
static VALUE oletype_set_member (VALUE self, ITypeInfo *pTypeInfo, VALUE name)
static VALUE oleclass_from_typelib (VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
static VALUE oletypelib_set_member (VALUE self, ITypeLib *pTypeLib)
static ITypeLib * oletypelib_get_typelib (VALUE self)
static void oletypelib_get_libattr (ITypeLib *pTypeLib, TLIBATTR **ppTLibAttr)
static VALUE foletypelib_s_typelibs (VALUE self)
static VALUE make_version_str (VALUE major, VALUE minor)
static VALUE oletypelib_search_registry2 (VALUE self, VALUE args)
static VALUE oletypelib_search_registry (VALUE self, VALUE typelib)
static VALUE foletypelib_s_allocate (VALUE klass)
static VALUE foletypelib_initialize (VALUE self, VALUE args)
static VALUE foletypelib_guid (VALUE self)
static VALUE foletypelib_name (VALUE self)
static VALUE foletypelib_version (VALUE self)
static VALUE foletypelib_major_version (VALUE self)
static VALUE foletypelib_minor_version (VALUE self)
static VALUE oletypelib_path (VALUE guid, VALUE version)
static HRESULT oletypelib_from_guid (VALUE guid, VALUE version, ITypeLib **ppTypeLib)
static VALUE foletypelib_path (VALUE self)
static VALUE foletypelib_visible (VALUE self)
static VALUE foletypelib_library_name (VALUE self)
static VALUE foletypelib_ole_types (VALUE self)
static VALUE foletypelib_inspect (VALUE self)
static VALUE foletype_initialize (VALUE self, VALUE typelib, VALUE oleclass)
static VALUE foletype_name (VALUE self)
static VALUE ole_ole_type (ITypeInfo *pTypeInfo)
static VALUE foletype_ole_type (VALUE self)
static VALUE ole_type_guid (ITypeInfo *pTypeInfo)
static VALUE foletype_guid (VALUE self)
static VALUE ole_type_progid (ITypeInfo *pTypeInfo)
static VALUE foletype_progid (VALUE self)
static VALUE ole_type_visible (ITypeInfo *pTypeInfo)
static VALUE foletype_visible (VALUE self)
static VALUE ole_type_major_version (ITypeInfo *pTypeInfo)
static VALUE foletype_major_version (VALUE self)
static VALUE ole_type_minor_version (ITypeInfo *pTypeInfo)
static VALUE foletype_minor_version (VALUE self)
static VALUE ole_type_typekind (ITypeInfo *pTypeInfo)
static VALUE foletype_typekind (VALUE self)
static VALUE ole_type_helpstring (ITypeInfo *pTypeInfo)
static VALUE foletype_helpstring (VALUE self)
static VALUE ole_type_src_type (ITypeInfo *pTypeInfo)
static VALUE foletype_src_type (VALUE self)
static VALUE ole_type_helpfile (ITypeInfo *pTypeInfo)
static VALUE foletype_helpfile (VALUE self)
static VALUE ole_type_helpcontext (ITypeInfo *pTypeInfo)
static VALUE foletype_helpcontext (VALUE self)
static VALUE foletype_ole_typelib (VALUE self)
static VALUE ole_type_impl_ole_types (ITypeInfo *pTypeInfo, int implflags)
static VALUE foletype_impl_ole_types (VALUE self)
static VALUE foletype_source_ole_types (VALUE self)
static VALUE foletype_default_event_sources (VALUE self)
static VALUE foletype_default_ole_types (VALUE self)
static VALUE foletype_inspect (VALUE self)
static VALUE ole_variables (ITypeInfo *pTypeInfo)
static VALUE foletype_variables (VALUE self)
static VALUE foletype_methods (VALUE self)
static VALUE folevariable_name (VALUE self)
static VALUE ole_variable_ole_type (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_ole_type (VALUE self)
static VALUE ole_variable_ole_type_detail (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_ole_type_detail (VALUE self)
static VALUE ole_variable_value (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_value (VALUE self)
static VALUE ole_variable_visible (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_visible (VALUE self)
static VALUE ole_variable_kind (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_variable_kind (VALUE self)
static VALUE ole_variable_varkind (ITypeInfo *pTypeInfo, UINT var_index)
static VALUE folevariable_varkind (VALUE self)
static VALUE folevariable_inspect (VALUE self)
static VALUE olemethod_set_member (VALUE self, ITypeInfo *pTypeInfo, ITypeInfo *pOwnerTypeInfo, int index, VALUE name)
static VALUE folemethod_s_allocate (VALUE klass)
static VALUE folemethod_initialize (VALUE self, VALUE oletype, VALUE method)
static VALUE folemethod_name (VALUE self)
static VALUE ole_method_return_type (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_return_type (VALUE self)
static VALUE ole_method_return_vtype (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_return_vtype (VALUE self)
static VALUE ole_method_return_type_detail (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_return_type_detail (VALUE self)
static VALUE ole_method_invkind (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE ole_method_invoke_kind (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_invkind (VALUE self)
static VALUE folemethod_invoke_kind (VALUE self)
static VALUE ole_method_visible (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_visible (VALUE self)
static VALUE ole_method_event (ITypeInfo *pTypeInfo, UINT method_index, VALUE method_name)
static VALUE folemethod_event (VALUE self)
static VALUE folemethod_event_interface (VALUE self)
static VALUE ole_method_docinfo_from_type (ITypeInfo *pTypeInfo, UINT method_index, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile)
static VALUE ole_method_helpstring (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_helpstring (VALUE self)
static VALUE ole_method_helpfile (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_helpfile (VALUE self)
static VALUE ole_method_helpcontext (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_helpcontext (VALUE self)
static VALUE ole_method_dispid (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_dispid (VALUE self)
static VALUE ole_method_offset_vtbl (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_offset_vtbl (VALUE self)
static VALUE ole_method_size_params (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_size_params (VALUE self)
static VALUE ole_method_size_opt_params (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_size_opt_params (VALUE self)
static VALUE ole_method_params (ITypeInfo *pTypeInfo, UINT method_index)
static VALUE folemethod_params (VALUE self)
static VALUE folemethod_inspect (VALUE self)
static VALUE foleparam_s_allocate (VALUE klass)
static VALUE oleparam_ole_param_from_index (VALUE self, ITypeInfo *pTypeInfo, UINT method_index, int param_index)
static VALUE oleparam_ole_param (VALUE self, VALUE olemethod, int n)
static VALUE foleparam_initialize (VALUE self, VALUE olemethod, VALUE n)
static VALUE foleparam_name (VALUE self)
static VALUE ole_param_ole_type (ITypeInfo *pTypeInfo, UINT method_index, UINT index)
static VALUE foleparam_ole_type (VALUE self)
static VALUE ole_param_ole_type_detail (ITypeInfo *pTypeInfo, UINT method_index, UINT index)
static VALUE foleparam_ole_type_detail (VALUE self)
static VALUE ole_param_flag_mask (ITypeInfo *pTypeInfo, UINT method_index, UINT index, USHORT mask)
static VALUE foleparam_input (VALUE self)
static VALUE foleparam_output (VALUE self)
static VALUE foleparam_optional (VALUE self)
static VALUE foleparam_retval (VALUE self)
static VALUE ole_param_default (ITypeInfo *pTypeInfo, UINT method_index, UINT index)
static VALUE foleparam_default (VALUE self)
static VALUE foleparam_inspect (VALUE self)
static long ole_search_event_at (VALUE ary, VALUE ev)
static VALUE ole_search_event (VALUE ary, VALUE ev, BOOL *is_default)
static VALUE ole_search_handler_method (VALUE handler, VALUE ev, BOOL *is_default_handler)
static void ole_delete_event (VALUE ary, VALUE ev)
static void hash2ptr_dispparams (VALUE hash, ITypeInfo *pTypeInfo, DISPID dispid, DISPPARAMS *pdispparams)
static VALUE hash2result (VALUE hash)
static void ary2ptr_dispparams (VALUE ary, DISPPARAMS *pdispparams)
static VALUE exec_callback (VALUE arg)
static VALUE rescue_callback (VALUE arg)
static HRESULT find_iid (VALUE ole, char *pitf, IID *piid, ITypeInfo **ppTypeInfo)
static HRESULT find_coclass (ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, ITypeInfo **pTypeInfo2, TYPEATTR **pTypeAttr2)
static HRESULT find_default_source_from_typeinfo (ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, ITypeInfo **ppTypeInfo)
static HRESULT find_default_source (VALUE ole, IID *piid, ITypeInfo **ppTypeInfo)
static void ole_event_free (struct oleeventdata *poleev)
static VALUE fev_s_allocate (VALUE klass)
static VALUE ev_advise (int argc, VALUE *argv, VALUE self)
static VALUE fev_initialize (int argc, VALUE *argv, VALUE self)
static VALUE fev_s_msg_loop (VALUE klass)
static void add_event_call_back (VALUE obj, VALUE event, VALUE data)
static VALUE ev_on_event (int argc, VALUE *argv, VALUE self, VALUE is_ary_arg)
static VALUE fev_on_event (int argc, VALUE *argv, VALUE self)
static VALUE fev_on_event_with_outargs (int argc, VALUE *argv, VALUE self)
static VALUE fev_off_event (int argc, VALUE *argv, VALUE self)
static VALUE fev_unadvise (VALUE self)
static VALUE fev_set_handler (VALUE self, VALUE val)
static VALUE fev_get_handler (VALUE self)
static VALUE evs_push (VALUE ev)
static VALUE evs_delete (long i)
static VALUE evs_entry (long i)
static VALUE evs_length (void)
static void olevariant_free (struct olevariantdata *pvar)
static VALUE folevariant_s_allocate (VALUE klass)
static VALUE folevariant_s_array (VALUE klass, VALUE dims, VALUE vvt)
static VALUE folevariant_initialize (VALUE self, VALUE args)
static long * ary2safe_array_index (int ary_size, VALUE *ary, SAFEARRAY *psa)
static void unlock_safe_array (SAFEARRAY *psa)
static SAFEARRAY * get_locked_safe_array (VALUE val)
static VALUE folevariant_ary_aref (int argc, VALUE *argv, VALUE self)
static VOID * val2variant_ptr (VALUE val, VARIANT *var, VARTYPE vt)
static VALUE folevariant_ary_aset (int argc, VALUE *argv, VALUE self)
static VALUE folevariant_value (VALUE self)
static VALUE folevariant_vartype (VALUE self)
static VALUE folevariant_set_value (VALUE self, VALUE val)
static void init_enc2cp (void)
static void free_enc2cp (void)
void ole_uninitialize (void)
static void ole_uninitialize_hook (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass)
static VALUE reg_get_val2 (HKEY hkey, const char *subkey)
void EVENTSINK_Destructor (PIEVENTSINKOBJ)
STDMETHODIMP EVENTSINK_QueryInterface (PEVENTSINK pEV, REFIID iid, LPVOID *ppv)
 EVENTSINK_AddRef (PEVENTSINK pEV)
 STDMETHODIMP_ (ULONG)
STDMETHODIMP EVENTSINK_GetTypeInfoCount (PEVENTSINK pEV, UINT *pct)
STDMETHODIMP EVENTSINK_GetTypeInfo (PEVENTSINK pEV, UINT info, LCID lcid, ITypeInfo **pInfo)
STDMETHODIMP EVENTSINK_GetIDsOfNames (PEVENTSINK pEventSink, REFIID riid, OLECHAR **szNames, UINT cNames, LCID lcid, DISPID *pDispID)
STDMETHODIMP EVENTSINK_Invoke (PEVENTSINK pEventSink, DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pdispparams, VARIANT *pvarResult, EXCEPINFO *pexcepinfo, UINT *puArgErr)
PIEVENTSINKOBJ EVENTSINK_Constructor ()
void Init_win32ole (void)

Variables

VALUE cWIN32OLE
VALUE cWIN32OLE_TYPELIB
VALUE cWIN32OLE_TYPE
VALUE cWIN32OLE_VARIABLE
VALUE cWIN32OLE_METHOD
VALUE cWIN32OLE_PARAM
VALUE cWIN32OLE_EVENT
VALUE cWIN32OLE_VARIANT
VALUE eWIN32OLERuntimeError
VALUE mWIN32OLE_VARIANT
VALUE cWIN32OLE_PROPERTY
static VALUE ary_ole_event
static ID id_events
static volatile DWORD g_ole_initialized_key = TLS_OUT_OF_INDEXES
static BOOL g_uninitialize_hooked = FALSE
static BOOL g_cp_installed = FALSE
static BOOL g_lcid_installed = FALSE
static HINSTANCE ghhctrl = NULL
static HINSTANCE gole32 = NULL
static FNCOCREATEINSTANCEEX * gCoCreateInstanceEx = NULL
static VALUE com_hash
static IDispatchVtbl com_vtbl
static UINT cWIN32OLE_cp = CP_ACP
static LCID cWIN32OLE_lcid = LOCALE_SYSTEM_DEFAULT
static rb_encodingcWIN32OLE_enc
static UINT g_cp_to_check = CP_ACP
static char g_lcid_to_check [8+1]
static VARTYPE g_nil_to = VT_ERROR
static st_tableenc2cp_table
static IMessageFilterVtbl message_filter
static IMessageFilter imessage_filter = { &message_filter }
static IMessageFilter * previous_filter
static REFIID riid
static REFIID void __RPC_FAR
*__RPC_FAR * 
ppvObject
static UINT __RPC_FAR * pctinfo
static UINT iTInfo
static UINT LCID lcid
static UINT LCID ITypeInfo
__RPC_FAR *__RPC_FAR * 
ppTInfo
static REFIID LPOLESTR __RPC_FAR * rgszNames
static REFIID LPOLESTR
__RPC_FAR UINT 
cNames
static REFIID LPOLESTR
__RPC_FAR UINT LCID DISPID
__RPC_FAR * 
rgDispId
static DISPID dispIdMember
static DISPID REFIID LCID WORD wFlags
static DISPID REFIID LCID WORD
DISPPARAMS __RPC_FAR * 
pDispParams
static DISPID REFIID LCID WORD
DISPPARAMS __RPC_FAR VARIANT
__RPC_FAR * 
pVarResult
static DISPID REFIID LCID WORD
DISPPARAMS __RPC_FAR VARIANT
__RPC_FAR EXCEPINFO __RPC_FAR * 
pExcepInfo
static DISPID REFIID LCID WORD
DISPPARAMS __RPC_FAR VARIANT
__RPC_FAR EXCEPINFO __RPC_FAR
UINT __RPC_FAR * 
puArgErr
static IEventSinkVtbl vtEventSink
static BOOL g_IsEventSinkVtblInitialized = FALSE

Define Documentation

#define conv_51932 (   cp)    ((cp) == 51932 && (load_conv_function51932(), 1))

Referenced by ole_mb2wc(), ole_vstr2wc(), and ole_wc2mb().

#define DOUT   fprintf(stderr,"[%d]\n",__LINE__)

Definition at line 53 of file win32ole.c.

#define DOUTD (   x)    fprintf(stderr, "[%d]:" #x "=%f\n",__LINE__,x)

Definition at line 57 of file win32ole.c.

#define DOUTI (   x)    fprintf(stderr, "[%ld]:" #x "=%d\n",__LINE__,x)

Definition at line 56 of file win32ole.c.

#define DOUTMSG (   x)    fprintf(stderr, "[%d]:" #x "\n",__LINE__)

Definition at line 55 of file win32ole.c.

#define DOUTS (   x)    fprintf(stderr,"[%d]:" #x "=%s\n",__LINE__,x)

Definition at line 54 of file win32ole.c.

#define ENC_MACHING_CP (   enc,
  encname,
  cp 
)    if(strcasecmp(rb_enc_name((enc)),(encname)) == 0) return cp
#define g_ole_initialized   (BOOL)TlsGetValue(g_ole_initialized_key)

Definition at line 223 of file win32ole.c.

Referenced by ole_initialize(), and ole_uninitialize().

#define g_ole_initialized_init ( )    (g_ole_initialized_key = TlsAlloc())

Definition at line 224 of file win32ole.c.

Referenced by Init_win32ole().

#define g_ole_initialized_set (   val)    TlsSetValue(g_ole_initialized_key, (void*)(val))

Definition at line 225 of file win32ole.c.

Referenced by ole_initialize(), and ole_uninitialize().

Value:
((__GNUC__ < 3) || \
     ((__GNUC__ <= 3) && (__GNUC_MINOR__ < 4)) || \
     ((__GNUC__ <= 3) && (__GNUC_MINOR__ <= 4) && (__GNUC_PATCHLEVEL__ <= 4)))

Definition at line 22 of file win32ole.c.

#define I8_2_NUM   INT2NUM

Definition at line 138 of file win32ole.c.

Referenced by ole_variant2val().

#define load_conv_function51932 ( )    failed_load_conv51932()

Referenced by ole_cp2encoding().

#define NUM2I8   NUM2INT

Definition at line 140 of file win32ole.c.

Referenced by ole_val2variant_ex().

#define NUM2UI8   NUM2UINT

Definition at line 141 of file win32ole.c.

Referenced by ole_val2variant_ex().

#define OLE_ADDREF (   X)    (X) ? ((X)->lpVtbl->AddRef(X)) : 0
#define OLE_FREE (   x)
Value:
{\
    if(g_ole_initialized == TRUE) {\
        if(x) {\
            OLE_RELEASE(x);\
            (x) = 0;\
        }\
    }\
}

Definition at line 116 of file win32ole.c.

Referenced by fole_free(), ole_free(), olemethod_free(), oleparam_free(), oletype_free(), oletypelib_free(), and olevariable_free().

#define OLE_GET_TYPEATTR (   X,
 
)    ((X)->lpVtbl->GetTypeAttr((X), (Y)))
#define OLE_RELEASE (   X)    (X) ? ((X)->lpVtbl->Release(X)) : 0
#define OLE_RELEASE_TYPEATTR (   X,
 
)    ((X)->lpVtbl->ReleaseTypeAttr((X), (Y)))
#define OLEData_Get_Struct (   obj,
  pole 
)
#define pIMultiLanguage   NULL /* dummy */

Definition at line 251 of file win32ole.c.

Referenced by ole_mb2wc(), ole_vstr2wc(), and ole_wc2mb().

#define UI8_2_NUM   UINT2NUM

Definition at line 139 of file win32ole.c.

Referenced by ole_variant2val().

#define V_I1REF (   X)    V_UNION(X, pcVal)

Definition at line 77 of file win32ole.c.

Referenced by ole_set_byref(), and ole_variant2val().

#define V_INT (   X)    V_UNION(X, intVal)

Definition at line 85 of file win32ole.c.

Referenced by get_ptr_of_variant(), ole_set_byref(), and ole_variant2val().

#define V_INTREF (   X)    V_UNION(X, pintVal)

Definition at line 89 of file win32ole.c.

Referenced by ole_set_byref(), and ole_variant2val().

#define V_UI2REF (   X)    V_UNION(X, puiVal)

Definition at line 81 of file win32ole.c.

Referenced by ole_set_byref(), and ole_variant2val().

#define V_UINT (   X)    V_UNION(X, uintVal)

Definition at line 93 of file win32ole.c.

Referenced by get_ptr_of_variant(), ole_set_byref(), and ole_variant2val().

#define V_UINTREF (   X)    V_UNION(X, puintVal)

Definition at line 97 of file win32ole.c.

Referenced by ole_set_byref(), and ole_variant2val().

#define V_UNION1 (   X,
 
)    ((X)->Y)
#define va_init_list (   a,
 
)    va_start(a)

Definition at line 49 of file win32ole.c.

Referenced by ole_raise().

#define WC2VSTR (   x)    ole_wc2vstr((x), TRUE)
#define WIN32OLE_VERSION   "1.5.4"

Definition at line 146 of file win32ole.c.

Referenced by Init_win32ole().


Typedef Documentation

typedef IUnknown COSERVERINFO MULTI_QI* typedef LPCSTR UINT DWORD dwData

Definition at line 151 of file win32ole.c.

typedef IUnknown COSERVERINFO DWORD

Definition at line 149 of file win32ole.c.

typedef BOOL( FNENUMSYSEMCODEPAGES)(CODEPAGE_ENUMPROC, DWORD)

Definition at line 153 of file win32ole.c.

typedef IUnknown COSERVERINFO MULTI_QI* typedef HWND(WINAPI FNHTMLHELP)(HWND hwndCaller

Definition at line 151 of file win32ole.c.

Definition at line 158 of file win32ole.c.

typedef struct IEventSink * PEVENTSINK
typedef struct tagIEVENTSINKOBJ * PIEVENTSINKOBJ
typedef IUnknown COSERVERINFO MULTI_QI* typedef LPCSTR pszFile

Definition at line 151 of file win32ole.c.

typedef IUnknown COSERVERINFO MULTI_QI* typedef LPCSTR UINT uCommand

Definition at line 151 of file win32ole.c.


Function Documentation

static void add_event_call_back ( VALUE  obj,
VALUE  event,
VALUE  data 
) [static]
static void ary2ptr_dispparams ( VALUE  ary,
DISPPARAMS *  pdispparams 
) [static]

Definition at line 7774 of file win32ole.c.

References ole_val2ptr_variant(), RARRAY_LEN, and rb_ary_entry().

Referenced by EVENTSINK_Invoke().

static long * ary2safe_array_index ( int  ary_size,
VALUE ary,
SAFEARRAY *  psa 
) [static]

Definition at line 8813 of file win32ole.c.

References ALLOC_N, NULL, NUM2INT, rb_eArgError, rb_eRuntimeError, and rb_raise().

Referenced by folevariant_ary_aref(), and folevariant_ary_aset().

static long ary_len_of_dim ( VALUE  ary,
long  dim 
) [static]

Definition at line 1543 of file win32ole.c.

References RARRAY_LEN, rb_ary_entry(), T_ARRAY, and TYPE.

Referenced by ole_val_ary2variant_ary().

static VALUE ary_new_dim ( VALUE  myary,
long *  pid,
long *  plb,
long  dim 
) [static]
static void ary_store_dim ( VALUE  myary,
long *  pid,
long *  plb,
long  dim,
VALUE  val 
) [static]

Definition at line 2069 of file win32ole.c.

References ary_new_dim(), and rb_ary_store().

Referenced by ole_variant2val().

static HRESULT clsid_from_remote ( VALUE  host,
VALUE  com,
CLSID *  pclsid 
) [static]

Definition at line 2578 of file win32ole.c.

References err, HRESULT(), NULL, ole_mb2wc(), rb_str_cat2(), rb_str_concat(), rb_str_new2(), and StringValuePtr.

Referenced by ole_create_dcom().

static BOOL code_page_installed ( UINT  cp) [static]

Definition at line 3033 of file win32ole.c.

References FALSE, g_cp_installed, g_cp_to_check, and installed_code_page_proc().

Referenced by ole_cp2encoding(), and ole_vstr2wc().

static VALUE create_win32ole_object ( VALUE  klass,
IDispatch *  pDispatch,
int  argc,
VALUE argv 
) [static]
static VALUE default_inspect ( VALUE  self,
const char *  class_name 
) [static]
static long dimension ( VALUE  val) [static]

Definition at line 1524 of file win32ole.c.

References RARRAY_LEN, rb_ary_entry(), T_ARRAY, and TYPE.

Referenced by ole_val_ary2variant_ary().

static VALUE ev_advise ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE ev_on_event ( int  argc,
VALUE argv,
VALUE  self,
VALUE  is_ary_arg 
) [static]

Definition at line 7604 of file win32ole.c.

References tagIEVENTSINKOBJ::m_cRef.

Referenced by EVENTSINK_Constructor().

Definition at line 7941 of file win32ole.c.

References free, NULL, OLE_RELEASE, and tagIEVENTSINKOBJ::pTypeInfo.

Referenced by STDMETHODIMP_().

STDMETHODIMP EVENTSINK_GetIDsOfNames ( PEVENTSINK  pEventSink,
REFIID  riid,
OLECHAR **  szNames,
UINT  cNames,
LCID  lcid,
DISPID *  pDispID 
)

Definition at line 7640 of file win32ole.c.

References tagIEVENTSINKOBJ::pTypeInfo, and oleparamdata::pTypeInfo.

Referenced by EVENTSINK_Constructor().

STDMETHODIMP EVENTSINK_GetTypeInfo ( PEVENTSINK  pEV,
UINT  info,
LCID  lcid,
ITypeInfo **  pInfo 
)

Definition at line 7630 of file win32ole.c.

References NULL.

Referenced by EVENTSINK_Constructor().

STDMETHODIMP EVENTSINK_GetTypeInfoCount ( PEVENTSINK  pEV,
UINT *  pct 
)

Definition at line 7622 of file win32ole.c.

Referenced by EVENTSINK_Constructor().

STDMETHODIMP EVENTSINK_Invoke ( PEVENTSINK  pEventSink,
DISPID  dispid,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pdispparams,
VARIANT *  pvarResult,
EXCEPINFO *  pexcepinfo,
UINT *  puArgErr 
)
STDMETHODIMP EVENTSINK_QueryInterface ( PEVENTSINK  pEV,
REFIID  iid,
LPVOID *  ppv 
)

Definition at line 7585 of file win32ole.c.

References NULL.

Referenced by EVENTSINK_Constructor().

static VALUE evs_delete ( long  i) [static]

Definition at line 8563 of file win32ole.c.

References ary_ole_event, Qnil, and rb_ary_store().

Referenced by fev_unadvise().

static VALUE evs_entry ( long  i) [static]

Definition at line 8570 of file win32ole.c.

References ary_ole_event, and rb_ary_entry().

Referenced by EVENTSINK_Invoke().

static VALUE evs_length ( void  ) [static]

Definition at line 8576 of file win32ole.c.

References ary_ole_event, rb_funcall(), and rb_intern.

Referenced by ev_advise().

static VALUE evs_push ( VALUE  ev) [static]

Definition at line 8557 of file win32ole.c.

References ary_ole_event, and rb_ary_push().

Referenced by fev_initialize().

static VALUE exec_callback ( VALUE  arg) [static]

Definition at line 7787 of file win32ole.c.

References rb_apply().

Referenced by EVENTSINK_Invoke().

static VALUE fev_get_handler ( VALUE  self) [static]

Definition at line 8634 of file win32ole.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole().

static VALUE fev_initialize ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 8374 of file win32ole.c.

References ev_advise(), evs_push(), fev_set_handler(), id_events, Qnil, rb_ary_new(), and rb_ivar_set().

Referenced by Init_win32ole().

static VALUE fev_off_event ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fev_on_event ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 8462 of file win32ole.c.

References ev_on_event(), and Qfalse.

Referenced by Init_win32ole().

static VALUE fev_on_event_with_outargs ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 8482 of file win32ole.c.

References ev_on_event(), and Qtrue.

Referenced by Init_win32ole().

static VALUE fev_s_allocate ( VALUE  klass) [static]
static VALUE fev_s_msg_loop ( VALUE  klass) [static]

Definition at line 8390 of file win32ole.c.

References ole_msg_loop(), and Qnil.

Referenced by Init_win32ole().

static VALUE fev_set_handler ( VALUE  self,
VALUE  val 
) [static]

Definition at line 8621 of file win32ole.c.

References rb_intern, and rb_ivar_set().

Referenced by fev_initialize(), and Init_win32ole().

static VALUE fev_unadvise ( VALUE  self) [static]
static HRESULT find_coclass ( ITypeInfo *  pTypeInfo,
TYPEATTR *  pTypeAttr,
ITypeInfo **  pTypeInfo2,
TYPEATTR **  pTypeAttr2 
) [static]

Definition at line 8063 of file win32ole.c.

References count, FALSE, HRESULT(), NULL, OLE_GET_TYPEATTR, OLE_RELEASE, OLE_RELEASE_TYPEATTR, and TRUE.

Referenced by find_default_source().

static HRESULT find_default_source ( VALUE  ole,
IID *  piid,
ITypeInfo **  ppTypeInfo 
) [static]
static HRESULT find_default_source_from_typeinfo ( ITypeInfo *  pTypeInfo,
TYPEATTR *  pTypeAttr,
ITypeInfo **  ppTypeInfo 
) [static]

Definition at line 8138 of file win32ole.c.

References HRESULT().

Referenced by find_default_source().

static HRESULT find_iid ( VALUE  ole,
char *  pitf,
IID *  piid,
ITypeInfo **  ppTypeInfo 
) [static]
static VALUE fole_activex_initialize ( VALUE  self) [static]
static VALUE fole_each ( VALUE  self) [static]
static VALUE fole_free ( VALUE  self) [static]

Definition at line 3964 of file win32ole.c.

References NULL, OLE_FREE, OLEData_Get_Struct, oledata::pDispatch, Qnil, and rb_secure().

Referenced by Init_win32ole().

static VALUE fole_func_methods ( VALUE  self) [static]

Definition at line 4354 of file win32ole.c.

References ole_methods().

Referenced by Init_win32ole().

static VALUE fole_get_methods ( VALUE  self) [static]

Definition at line 4321 of file win32ole.c.

References ole_methods().

Referenced by Init_win32ole().

static VALUE fole_getproperty2 ( VALUE  self,
VALUE  dispid,
VALUE  args,
VALUE  types 
) [static]

Definition at line 3809 of file win32ole.c.

References ole_invoke2().

Referenced by Init_win32ole().

static VALUE fole_getproperty_with_bracket ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 3892 of file win32ole.c.

References ole_invoke(), and TRUE.

Referenced by Init_win32ole().

static VALUE fole_initialize ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fole_invoke ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 3583 of file win32ole.c.

References FALSE, and ole_invoke().

Referenced by Init_win32ole().

static VALUE fole_invoke2 ( VALUE  self,
VALUE  dispid,
VALUE  args,
VALUE  types 
) [static]

Definition at line 3791 of file win32ole.c.

References ole_invoke2().

Referenced by Init_win32ole().

static VALUE fole_method_help ( VALUE  self,
VALUE  cmdname 
) [static]
static VALUE fole_methods ( VALUE  self) [static]

Definition at line 4305 of file win32ole.c.

References ole_methods().

Referenced by Init_win32ole().

static VALUE fole_missing ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fole_put_methods ( VALUE  self) [static]

Definition at line 4337 of file win32ole.c.

References ole_methods().

Referenced by Init_win32ole().

static VALUE fole_query_interface ( VALUE  self,
VALUE  str_iid 
) [static]
static VALUE fole_respond_to ( VALUE  self,
VALUE  method 
) [static]
static VALUE fole_s_allocate ( VALUE  klass) [static]

Definition at line 2024 of file win32ole.c.

References Data_Make_Struct, NULL, ole_free(), ole_initialize(), and oledata::pDispatch.

Referenced by create_win32ole_object(), and Init_win32ole().

static VALUE fole_s_connect ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fole_s_const_load ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fole_s_create_guid ( VALUE  self) [static]

Definition at line 3136 of file win32ole.c.

References eWIN32OLERuntimeError, FALSE, HRESULT(), ole_raise(), ole_wc2vstr(), rb_eRuntimeError, and rb_raise().

Referenced by Init_win32ole().

static VALUE fole_s_free ( VALUE  self,
VALUE  obj 
) [static]

Definition at line 2933 of file win32ole.c.

References INT2NUM, OLE_RELEASE, OLEData_Get_Struct, oledata::pDispatch, reference_count(), and ULONG().

Referenced by Init_win32ole().

static VALUE fole_s_get_code_page ( VALUE  self) [static]

Definition at line 3018 of file win32ole.c.

References cWIN32OLE_cp, and INT2FIX.

Referenced by Init_win32ole().

static VALUE fole_s_get_locale ( VALUE  self) [static]

Definition at line 3075 of file win32ole.c.

References cWIN32OLE_lcid, and INT2FIX.

Referenced by Init_win32ole().

static VALUE fole_s_ole_initialize ( VALUE  self) [static]

Definition at line 3161 of file win32ole.c.

References ole_initialize(), and Qnil.

Referenced by Init_win32ole().

static VALUE fole_s_ole_uninitialize ( VALUE  self) [static]

Definition at line 3169 of file win32ole.c.

References ole_uninitialize(), and Qnil.

Referenced by Init_win32ole().

static VALUE fole_s_reference_count ( VALUE  self,
VALUE  obj 
) [static]

Definition at line 2916 of file win32ole.c.

References INT2NUM, OLEData_Get_Struct, and reference_count().

Referenced by Init_win32ole().

static VALUE fole_s_set_code_page ( VALUE  self,
VALUE  vcp 
) [static]

Definition at line 3055 of file win32ole.c.

References FIX2INT, and Qnil.

Referenced by Init_win32ole().

static VALUE fole_s_set_locale ( VALUE  self,
VALUE  vlcid 
) [static]

Definition at line 3110 of file win32ole.c.

References cWIN32OLE_lcid, eWIN32OLERuntimeError, FIX2INT, lcid, lcid_installed(), Qnil, and rb_raise().

Referenced by Init_win32ole().

static VALUE fole_s_show_help ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE fole_setproperty ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 3870 of file win32ole.c.

References FALSE, and ole_invoke().

Referenced by Init_win32ole().

static VALUE fole_setproperty2 ( VALUE  self,
VALUE  dispid,
VALUE  args,
VALUE  types 
) [static]

Definition at line 3827 of file win32ole.c.

References ole_invoke2().

Referenced by Init_win32ole().

static VALUE fole_setproperty_with_bracket ( int  argc,
VALUE argv,
VALUE  self 
) [static]

Definition at line 3851 of file win32ole.c.

References ole_invoke(), and TRUE.

Referenced by Init_win32ole().

static VALUE fole_type ( VALUE  self) [static]
static VALUE fole_typelib ( VALUE  self) [static]
static VALUE folemethod_dispid ( VALUE  self) [static]
static VALUE folemethod_event ( VALUE  self) [static]
static VALUE folemethod_event_interface ( VALUE  self) [static]
static VALUE folemethod_helpcontext ( VALUE  self) [static]
static VALUE folemethod_helpfile ( VALUE  self) [static]
static VALUE folemethod_helpstring ( VALUE  self) [static]
static VALUE folemethod_initialize ( VALUE  self,
VALUE  oletype,
VALUE  method 
) [static]
static VALUE folemethod_inspect ( VALUE  self) [static]

Definition at line 7232 of file win32ole.c.

References default_inspect().

Referenced by Init_win32ole().

static VALUE folemethod_invkind ( VALUE  self) [static]
static VALUE folemethod_invoke_kind ( VALUE  self) [static]
static VALUE folemethod_name ( VALUE  self) [static]

Definition at line 6600 of file win32ole.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole().

static VALUE folemethod_offset_vtbl ( VALUE  self) [static]
static VALUE folemethod_params ( VALUE  self) [static]
static VALUE folemethod_return_type ( VALUE  self) [static]
static VALUE folemethod_return_type_detail ( VALUE  self) [static]
static VALUE folemethod_return_vtype ( VALUE  self) [static]
static VALUE folemethod_s_allocate ( VALUE  klass) [static]
static VALUE folemethod_size_opt_params ( VALUE  self) [static]
static VALUE folemethod_size_params ( VALUE  self) [static]
static VALUE folemethod_visible ( VALUE  self) [static]
static VALUE foleparam_default ( VALUE  self) [static]
static VALUE foleparam_initialize ( VALUE  self,
VALUE  olemethod,
VALUE  n 
) [static]
static VALUE foleparam_input ( VALUE  self) [static]
static VALUE foleparam_inspect ( VALUE  self) [static]
static VALUE foleparam_name ( VALUE  self) [static]

Definition at line 7323 of file win32ole.c.

References rb_intern, and rb_ivar_get().

Referenced by foleparam_inspect(), and Init_win32ole().

static VALUE foleparam_ole_type ( VALUE  self) [static]
static VALUE foleparam_ole_type_detail ( VALUE  self) [static]
static VALUE foleparam_optional ( VALUE  self) [static]
static VALUE foleparam_output ( VALUE  self) [static]
static VALUE foleparam_retval ( VALUE  self) [static]
static VALUE foleparam_s_allocate ( VALUE  klass) [static]
static VALUE foletype_default_event_sources ( VALUE  self) [static]

Definition at line 6081 of file win32ole.c.

References Data_Get_Struct, ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_default_ole_types ( VALUE  self) [static]

Definition at line 6099 of file win32ole.c.

References Data_Get_Struct, ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_guid ( VALUE  self) [static]

Definition at line 5690 of file win32ole.c.

References Data_Get_Struct, ole_type_guid(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_helpcontext ( VALUE  self) [static]

Definition at line 5971 of file win32ole.c.

References Data_Get_Struct, ole_type_helpcontext(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_helpfile ( VALUE  self) [static]

Definition at line 5943 of file win32ole.c.

References Data_Get_Struct, ole_type_helpfile(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_helpstring ( VALUE  self) [static]

Definition at line 5879 of file win32ole.c.

References Data_Get_Struct, ole_type_helpstring(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_impl_ole_types ( VALUE  self) [static]

Definition at line 6046 of file win32ole.c.

References Data_Get_Struct, ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_initialize ( VALUE  self,
VALUE  typelib,
VALUE  oleclass 
) [static]
static VALUE foletype_inspect ( VALUE  self) [static]

Definition at line 6116 of file win32ole.c.

References default_inspect().

Referenced by Init_win32ole().

static VALUE foletype_major_version ( VALUE  self) [static]

Definition at line 5790 of file win32ole.c.

References Data_Get_Struct, ole_type_major_version(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_methods ( VALUE  self) [static]

Definition at line 6204 of file win32ole.c.

References Data_Get_Struct, ole_methods_from_typeinfo(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_minor_version ( VALUE  self) [static]

Definition at line 5820 of file win32ole.c.

References Data_Get_Struct, ole_type_minor_version(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_name ( VALUE  self) [static]

Definition at line 5595 of file win32ole.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole().

static VALUE foletype_ole_type ( VALUE  self) [static]

Definition at line 5655 of file win32ole.c.

References Data_Get_Struct, ole_ole_type(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_ole_typelib ( VALUE  self) [static]

Definition at line 5988 of file win32ole.c.

References Data_Get_Struct, ole_typelib_from_itypeinfo(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_progid ( VALUE  self) [static]

Definition at line 5725 of file win32ole.c.

References Data_Get_Struct, ole_type_progid(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_s_allocate ( VALUE  klass) [static]
static VALUE foletype_s_ole_classes ( VALUE  self,
VALUE  typelib 
) [static]

Definition at line 4808 of file win32ole.c.

References cWIN32OLE_TYPELIB, rb_funcall(), and rb_intern.

Referenced by Init_win32ole().

static VALUE foletype_s_progids ( VALUE  self) [static]
static VALUE foletype_s_typelibs ( VALUE  self) [static]

Definition at line 4830 of file win32ole.c.

References rb_eval_string().

Referenced by Init_win32ole().

static VALUE foletype_source_ole_types ( VALUE  self) [static]

Definition at line 6064 of file win32ole.c.

References Data_Get_Struct, ole_type_impl_ole_types(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_src_type ( VALUE  self) [static]

Definition at line 5914 of file win32ole.c.

References Data_Get_Struct, ole_type_src_type(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_typekind ( VALUE  self) [static]

Definition at line 5851 of file win32ole.c.

References Data_Get_Struct, ole_type_typekind(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_variables ( VALUE  self) [static]

Definition at line 6184 of file win32ole.c.

References Data_Get_Struct, ole_variables(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletype_visible ( VALUE  self) [static]

Definition at line 5760 of file win32ole.c.

References Data_Get_Struct, ole_type_visible(), and oletypedata::pTypeInfo.

Referenced by Init_win32ole().

static VALUE foletypelib_guid ( VALUE  self) [static]
static VALUE foletypelib_initialize ( VALUE  self,
VALUE  args 
) [static]
static VALUE foletypelib_inspect ( VALUE  self) [static]

Definition at line 5536 of file win32ole.c.

References default_inspect().

Referenced by Init_win32ole().

static VALUE foletypelib_library_name ( VALUE  self) [static]
static VALUE foletypelib_major_version ( VALUE  self) [static]
static VALUE foletypelib_minor_version ( VALUE  self) [static]
static VALUE foletypelib_name ( VALUE  self) [static]
static VALUE foletypelib_ole_types ( VALUE  self) [static]
static VALUE foletypelib_path ( VALUE  self) [static]
static VALUE foletypelib_s_allocate ( VALUE  klass) [static]

Definition at line 5160 of file win32ole.c.

References Data_Make_Struct, NULL, ole_initialize(), oletypelib_free(), and oletypelibdata::pTypeLib.

Referenced by Init_win32ole().

static VALUE foletypelib_s_typelibs ( VALUE  self) [static]
static VALUE foletypelib_version ( VALUE  self) [static]
static VALUE foletypelib_visible ( VALUE  self) [static]
static VALUE folevariable_inspect ( VALUE  self) [static]

Definition at line 6513 of file win32ole.c.

References make_inspect(), rb_funcall(), rb_intern, rb_str_cat2(), and rb_str_concat().

Referenced by Init_win32ole().

static VALUE folevariable_name ( VALUE  self) [static]

Definition at line 6238 of file win32ole.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole().

static VALUE folevariable_ole_type ( VALUE  self) [static]
static VALUE folevariable_ole_type_detail ( VALUE  self) [static]
static VALUE folevariable_value ( VALUE  self) [static]
static VALUE folevariable_variable_kind ( VALUE  self) [static]
static VALUE folevariable_varkind ( VALUE  self) [static]
static VALUE folevariable_visible ( VALUE  self) [static]
static VALUE folevariant_ary_aref ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE folevariant_ary_aset ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static VALUE folevariant_initialize ( VALUE  self,
VALUE  args 
) [static]
static VALUE folevariant_s_allocate ( VALUE  klass) [static]
static VALUE folevariant_s_array ( VALUE  klass,
VALUE  dims,
VALUE  vvt 
) [static]
static VALUE folevariant_set_value ( VALUE  self,
VALUE  val 
) [static]
static VALUE folevariant_value ( VALUE  self) [static]
static VALUE folevariant_vartype ( VALUE  self) [static]

Definition at line 9031 of file win32ole.c.

References Data_Get_Struct, INT2FIX, and olevariantdata::var.

Referenced by Init_win32ole().

static void free_enc2cp ( void  ) [static]

Definition at line 9074 of file win32ole.c.

References st_free_table().

Referenced by Init_win32ole().

static SAFEARRAY * get_locked_safe_array ( VALUE  val) [static]
static void * get_ptr_of_variant ( VARIANT *  pvar) [static]

Definition at line 1411 of file win32ole.c.

References NULL, V_INT, and V_UINT.

Referenced by val2variant_ptr().

static VALUE hash2named_arg ( VALUE  pair,
struct oleparam pOp 
) [static]
static void hash2ptr_dispparams ( VALUE  hash,
ITypeInfo *  pTypeInfo,
DISPID  dispid,
DISPPARAMS *  pdispparams 
) [static]

Definition at line 7735 of file win32ole.c.

References ALLOCA_N, HRESULT(), INT2FIX, key, ole_val2ptr_variant(), Qnil, rb_hash_aref(), rb_str_intern(), and WC2VSTR.

Referenced by EVENTSINK_Invoke().

static VALUE hash2result ( VALUE  hash) [static]

Definition at line 7764 of file win32ole.c.

References Qnil, rb_hash_aref(), rb_str_intern(), and rb_str_new2().

Referenced by EVENTSINK_Invoke().

typedef HRESULT ( STDAPICALLTYPE  FNCOCREATEINSTANCEEX)

Referenced by clsid_from_remote(), ev_advise(), EVENTSINK_Invoke(), find_coclass(), find_default_source(), find_default_source_from_typeinfo(), find_iid(), fole_activex_initialize(), fole_each(), fole_initialize(), fole_method_help(), fole_query_interface(), fole_respond_to(), fole_s_connect(), fole_s_const_load(), fole_s_create_guid(), fole_type(), fole_typelib(), folemethod_event_interface(), foletype_initialize(), foletypelib_initialize(), foletypelib_library_name(), foletypelib_name(), foletypelib_path(), foletypelib_s_typelibs(), folevariant_ary_aref(), folevariant_ary_aset(), get_locked_safe_array(), hash2ptr_dispparams(), ole_bind_obj(), ole_const_load(), ole_create_dcom(), ole_docinfo_from_type(), ole_initialize(), ole_invoke(), ole_invoke2(), ole_mb2wc(), ole_method_dispid(), ole_method_docinfo_from_type(), ole_method_event(), ole_method_helpcontext(), ole_method_helpfile(), ole_method_helpstring(), ole_method_invkind(), ole_method_offset_vtbl(), ole_method_params(), ole_method_return_type(), ole_method_return_type_detail(), ole_method_return_vtype(), ole_method_size_opt_params(), ole_method_size_params(), ole_method_sub(), ole_method_visible(), ole_methods(), ole_methods_from_typeinfo(), ole_methods_sub(), ole_ole_type(), ole_param_default(), ole_param_flag_mask(), ole_param_ole_type(), ole_param_ole_type_detail(), ole_propertyput(), ole_set_safe_array(), ole_type_from_itypeinfo(), ole_type_guid(), ole_type_helpcontext(), ole_type_helpfile(), ole_type_helpstring(), ole_type_impl_ole_types(), ole_type_major_version(), ole_type_minor_version(), ole_type_progid(), ole_type_src_type(), ole_type_typekind(), ole_type_visible(), ole_typelib_from_itypeinfo(), ole_types_from_typelib(), ole_usertype2val(), ole_val2olevariantdata(), ole_val_ary2variant_ary(), ole_variable_kind(), ole_variable_ole_type(), ole_variable_ole_type_detail(), ole_variable_value(), ole_variable_varkind(), ole_variable_visible(), ole_variables(), ole_variant2val(), ole_vstr2wc(), ole_wc2mb(), oleclass_from_typelib(), olemethod_from_typeinfo(), oleparam_ole_param_from_index(), oletypelib_from_guid(), oletypelib_get_libattr(), oletypelib_search_registry(), oletypelib_search_registry2(), typeinfo_from_ole(), unlock_safe_array(), and val2variant_ptr().

static HRESULT ( STDMETHODCALLTYPE  QueryInterface) [static]
static void init_enc2cp ( void  ) [static]

Definition at line 9068 of file win32ole.c.

References st_init_numtable().

Referenced by Init_win32ole().

void Init_win32ole ( void  )

Definition at line 9080 of file win32ole.c.

References ary_ole_event, com_hash, com_vtbl, cWIN32OLE, cWIN32OLE_EVENT, cWIN32OLE_METHOD, cWIN32OLE_PARAM, cWIN32OLE_TYPE, cWIN32OLE_TYPELIB, cWIN32OLE_VARIABLE, cWIN32OLE_VARIANT, Data_Wrap_Struct, eWIN32OLERuntimeError, fev_get_handler(), fev_initialize(), fev_off_event(), fev_on_event(), fev_on_event_with_outargs(), fev_s_allocate(), fev_s_msg_loop(), fev_set_handler(), fev_unadvise(), fole_activex_initialize(), fole_each(), fole_free(), fole_func_methods(), fole_get_methods(), fole_getproperty2(), fole_getproperty_with_bracket(), fole_initialize(), fole_invoke(), fole_invoke2(), fole_method_help(), fole_methods(), fole_missing(), fole_put_methods(), fole_query_interface(), fole_respond_to(), fole_s_allocate(), fole_s_connect(), fole_s_const_load(), fole_s_create_guid(), fole_s_free(), fole_s_get_code_page(), fole_s_get_locale(), fole_s_ole_initialize(), fole_s_ole_uninitialize(), fole_s_reference_count(), fole_s_set_code_page(), fole_s_set_locale(), fole_s_show_help(), fole_setproperty(), fole_setproperty2(), fole_setproperty_with_bracket(), fole_type(), fole_typelib(), folemethod_dispid(), folemethod_event(), folemethod_event_interface(), folemethod_helpcontext(), folemethod_helpfile(), folemethod_helpstring(), folemethod_initialize(), folemethod_inspect(), folemethod_invkind(), folemethod_invoke_kind(), folemethod_name(), folemethod_offset_vtbl(), folemethod_params(), folemethod_return_type(), folemethod_return_type_detail(), folemethod_return_vtype(), folemethod_s_allocate(), folemethod_size_opt_params(), folemethod_size_params(), folemethod_visible(), foleparam_default(), foleparam_initialize(), foleparam_input(), foleparam_inspect(), foleparam_name(), foleparam_ole_type(), foleparam_ole_type_detail(), foleparam_optional(), foleparam_output(), foleparam_retval(), foleparam_s_allocate(), foletype_default_event_sources(), foletype_default_ole_types(), foletype_guid(), foletype_helpcontext(), foletype_helpfile(), foletype_helpstring(), foletype_impl_ole_types(), foletype_initialize(), foletype_inspect(), foletype_major_version(), foletype_methods(), foletype_minor_version(), foletype_name(), foletype_ole_type(), foletype_ole_typelib(), foletype_progid(), foletype_s_allocate(), foletype_s_ole_classes(), foletype_s_progids(), foletype_s_typelibs(), foletype_source_ole_types(), foletype_src_type(), foletype_typekind(), foletype_variables(), foletype_visible(), foletypelib_guid(), foletypelib_initialize(), foletypelib_inspect(), foletypelib_library_name(), foletypelib_major_version(), foletypelib_minor_version(), foletypelib_name(), foletypelib_ole_types(), foletypelib_path(), foletypelib_s_allocate(), foletypelib_s_typelibs(), foletypelib_version(), foletypelib_visible(), folevariable_inspect(), folevariable_name(), folevariable_ole_type(), folevariable_ole_type_detail(), folevariable_value(), folevariable_variable_kind(), folevariable_varkind(), folevariable_visible(), folevariant_ary_aref(), folevariant_ary_aset(), folevariant_initialize(), folevariant_s_allocate(), folevariant_s_array(), folevariant_set_value(), folevariant_value(), folevariant_vartype(), free_enc2cp(), g_ole_initialized_init, id_events, init_enc2cp(), INT2FIX, message_filter, mWIN32OLE_VARIANT, ole_init_cp(), Qnil, rb_ary_new(), rb_cData, rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class(), rb_define_const(), rb_define_method(), rb_define_module_under(), rb_define_singleton_method(), rb_eRuntimeError, rb_funcall(), rb_gc_register_mark_object(), rb_intern, rb_mark_hash(), rb_str_new2(), st_free_table(), st_init_numtable(), and WIN32OLE_VERSION.

static BOOL CALLBACK installed_code_page_proc ( LPTSTR  str) [static]

Definition at line 3024 of file win32ole.c.

References FALSE, g_cp_installed, g_cp_to_check, NULL, and TRUE.

Referenced by code_page_installed().

static BOOL CALLBACK installed_lcid_proc ( LPTSTR  str) [static]

Definition at line 3081 of file win32ole.c.

References FALSE, g_lcid_installed, g_lcid_to_check, and TRUE.

Referenced by lcid_installed().

static VALUE is_all_index_under ( long *  pid,
long *  pub,
long  dim 
) [static]

Definition at line 1480 of file win32ole.c.

References Qfalse, and Qtrue.

Referenced by ole_set_safe_array().

static BOOL lcid_installed ( LCID  lcid) [static]

Definition at line 3091 of file win32ole.c.

References FALSE, g_lcid_installed, g_lcid_to_check, installed_lcid_proc(), and snprintf.

Referenced by fole_s_set_locale().

static VALUE make_inspect ( const char *  class_name,
VALUE  detail 
) [static]

Definition at line 1991 of file win32ole.c.

References rb_str_cat2(), rb_str_concat(), and rb_str_new2().

Referenced by default_inspect(), foleparam_inspect(), and folevariable_inspect().

static VALUE make_version_str ( VALUE  major,
VALUE  minor 
) [static]

Definition at line 5020 of file win32ole.c.

References Qnil, rb_str_append(), rb_str_cat2(), and rb_String().

Referenced by foletypelib_version(), and oletypelib_search_registry2().

NORETURN ( static void   failed_load_conv51932void)
static VALUE ole_ary_m_entry ( VALUE  val,
long *  pid 
) [static]

Definition at line 1398 of file win32ole.c.

References Qnil, rb_ary_entry(), T_ARRAY, and TYPE.

Referenced by ole_set_safe_array().

static VALUE ole_bind_obj ( VALUE  moniker,
int  argc,
VALUE argv,
VALUE  self 
) [static]
static void ole_const_load ( ITypeLib *  pTypeLib,
VALUE  klass,
VALUE  self 
) [static]
static rb_encoding * ole_cp2encoding ( UINT  cp) [static]
static VALUE ole_create_dcom ( int  argc,
VALUE argv,
VALUE  self 
) [static]
static void ole_delete_event ( VALUE  ary,
VALUE  ev 
) [static]

Definition at line 7725 of file win32ole.c.

References ole_search_event_at(), and rb_ary_delete_at().

Referenced by add_event_call_back(), and fev_off_event().

static HRESULT ole_docinfo_from_type ( ITypeInfo *  pTypeInfo,
BSTR *  name,
BSTR *  helpstr,
DWORD helpcontext,
BSTR *  helpfile 
) [static]
static VALUE ole_each_sub ( VALUE  pEnumV) [static]

Definition at line 3975 of file win32ole.c.

References NULL, ole_variant2val(), Qnil, and rb_yield().

Referenced by fole_each().

static UINT ole_encoding2cp ( rb_encoding enc) [static]

Referenced by ole_vstr2wc().

static void ole_event_free ( struct oleeventdata poleev) [static]

Definition at line 8260 of file win32ole.c.

References oleeventdata::dwCookie, free, NULL, OLE_RELEASE, and oleeventdata::pConnectionPoint.

Referenced by fev_s_allocate().

static VALUE ole_excepinfo2msg ( EXCEPINFO *  pExInfo) [static]
static void ole_free ( struct oledata pole) [static]

Definition at line 1260 of file win32ole.c.

References free, OLE_FREE, and oledata::pDispatch.

Referenced by fole_s_allocate().

static void ole_freeexceptinfo ( EXCEPINFO *  pExInfo) [static]

Definition at line 1143 of file win32ole.c.

Referenced by ole_excepinfo2msg(), and ole_invoke().

static VALUE ole_hresult2msg ( HRESULT  hr) [static]

Definition at line 1103 of file win32ole.c.

References cWIN32OLE_lcid, msg, NULL, Qnil, rb_str_cat2(), rb_str_new2(), strlen(), and term.

Referenced by ole_raise().

static VALUE ole_ienum_free ( VALUE  pEnumV) [static]

Definition at line 3991 of file win32ole.c.

References OLE_RELEASE, and Qnil.

Referenced by fole_each().

static UINT ole_init_cp ( void  ) [static]

Referenced by Init_win32ole().

static void ole_initialize ( void  ) [static]
static VALUE ole_invoke ( int  argc,
VALUE argv,
VALUE  self,
USHORT  wFlags,
BOOL  is_bracket 
) [static]
static VALUE ole_invoke2 ( VALUE  self,
VALUE  dispid,
VALUE  args,
VALUE  types,
USHORT  dispkind 
) [static]
static LPWSTR ole_mb2wc ( char *  pm,
int  len 
) [static]
static VALUE ole_method_dispid ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 7039 of file win32ole.c.

References HRESULT(), INT2NUM, and Qnil.

Referenced by folemethod_dispid().

static VALUE ole_method_docinfo_from_type ( ITypeInfo *  pTypeInfo,
UINT  method_index,
BSTR *  name,
BSTR *  helpstr,
DWORD helpcontext,
BSTR *  helpfile 
) [static]

Definition at line 6926 of file win32ole.c.

References HRESULT().

Referenced by ole_method_helpcontext(), ole_method_helpfile(), and ole_method_helpstring().

static VALUE ole_method_event ( ITypeInfo *  pTypeInfo,
UINT  method_index,
VALUE  method_name 
) [static]
static VALUE ole_method_helpcontext ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 7010 of file win32ole.c.

References HRESULT(), INT2FIX, NULL, ole_method_docinfo_from_type(), and Qnil.

Referenced by folemethod_helpcontext().

static VALUE ole_method_helpfile ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6979 of file win32ole.c.

References HRESULT(), NULL, ole_method_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by folemethod_helpfile().

static VALUE ole_method_helpstring ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6948 of file win32ole.c.

References HRESULT(), NULL, ole_method_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by folemethod_helpstring().

static VALUE ole_method_invkind ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6708 of file win32ole.c.

References eWIN32OLERuntimeError, HRESULT(), INT2FIX, and ole_raise().

Referenced by folemethod_invkind(), and ole_method_invoke_kind().

static VALUE ole_method_invoke_kind ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6722 of file win32ole.c.

References FIX2INT, ole_method_invkind(), rb_str_new2(), and type.

Referenced by folemethod_invoke_kind().

static VALUE ole_method_offset_vtbl ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 7070 of file win32ole.c.

References HRESULT(), INT2FIX, and Qnil.

Referenced by folemethod_offset_vtbl().

static VALUE ole_method_params ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]
static VALUE ole_method_return_type ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6606 of file win32ole.c.

References eWIN32OLERuntimeError, HRESULT(), ole_raise(), ole_typedesc2val(), Qnil, and type.

Referenced by folemethod_return_type().

static VALUE ole_method_return_type_detail ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6674 of file win32ole.c.

References HRESULT(), ole_typedesc2val(), rb_ary_new(), and type.

Referenced by folemethod_return_type_detail().

static VALUE ole_method_return_vtype ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6640 of file win32ole.c.

References eWIN32OLERuntimeError, HRESULT(), INT2FIX, and ole_raise().

Referenced by folemethod_return_vtype().

static VALUE ole_method_size_opt_params ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 7133 of file win32ole.c.

References HRESULT(), INT2FIX, and Qnil.

Referenced by folemethod_size_opt_params().

static VALUE ole_method_size_params ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 7101 of file win32ole.c.

References HRESULT(), INT2FIX, and Qnil.

Referenced by folemethod_size_params().

static VALUE ole_method_sub ( VALUE  self,
ITypeInfo *  pOwnerTypeInfo,
ITypeInfo *  pTypeInfo,
VALUE  name 
) [static]
static VALUE ole_method_visible ( ITypeInfo *  pTypeInfo,
UINT  method_index 
) [static]

Definition at line 6779 of file win32ole.c.

References HRESULT(), Qfalse, and Qtrue.

Referenced by folemethod_visible().

static VALUE ole_methods ( VALUE  self,
int  mask 
) [static]
static VALUE ole_methods_from_typeinfo ( ITypeInfo *  pTypeInfo,
int  mask 
) [static]
static VALUE ole_methods_sub ( ITypeInfo *  pOwnerTypeInfo,
ITypeInfo *  pTypeInfo,
VALUE  methods,
int  mask 
) [static]
static void ole_msg_loop ( void  ) [static]

Definition at line 1251 of file win32ole.c.

References msg, and NULL.

Referenced by fev_s_msg_loop(), and fev_unadvise().

static VALUE ole_ole_type ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5601 of file win32ole.c.

References HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, Qnil, rb_str_new2(), and type.

Referenced by foletype_ole_type().

static VALUE ole_param_default ( ITypeInfo *  pTypeInfo,
UINT  method_index,
UINT  index 
) [static]

Definition at line 7494 of file win32ole.c.

References HRESULT(), oleparamdata::index, ole_variant2val(), Qnil, and V_UNION1.

Referenced by foleparam_default().

static VALUE ole_param_flag_mask ( ITypeInfo *  pTypeInfo,
UINT  method_index,
UINT  index,
USHORT  mask 
) [static]

Definition at line 7397 of file win32ole.c.

References HRESULT(), Qfalse, Qtrue, and V_UNION1.

Referenced by foleparam_input(), foleparam_optional(), foleparam_output(), and foleparam_retval().

static VALUE ole_param_ole_type ( ITypeInfo *  pTypeInfo,
UINT  method_index,
UINT  index 
) [static]

Definition at line 7329 of file win32ole.c.

References HRESULT(), ole_typedesc2val(), Qnil, rb_str_new2(), and type.

Referenced by foleparam_ole_type().

static VALUE ole_param_ole_type_detail ( ITypeInfo *  pTypeInfo,
UINT  method_index,
UINT  index 
) [static]

Definition at line 7363 of file win32ole.c.

References HRESULT(), ole_typedesc2val(), and rb_ary_new().

Referenced by foleparam_ole_type_detail().

static VALUE ole_propertyput ( VALUE  self,
VALUE  property,
VALUE  value 
) [static]
static VALUE ole_ptrtype2val ( ITypeInfo *  pTypeInfo,
TYPEDESC *  pTypeDesc,
VALUE  typedetails 
) [static]

Definition at line 4592 of file win32ole.c.

References ole_typedesc2val(), rb_str_new2(), type, and V_UNION1.

Referenced by ole_typedesc2val().

static void ole_raise ( HRESULT  hr,
VALUE  ecs,
const char *  fmt,
  ... 
) [static]
static VALUE ole_search_event ( VALUE  ary,
VALUE  ev,
BOOL *  is_default 
) [static]

Definition at line 7683 of file win32ole.c.

References FALSE, NIL_P, Qnil, RARRAY_LEN, rb_ary_entry(), rb_str_cmp(), and TRUE.

Referenced by EVENTSINK_Invoke().

static long ole_search_event_at ( VALUE  ary,
VALUE  ev 
) [static]

Definition at line 7658 of file win32ole.c.

References NIL_P, RARRAY_LEN, rb_ary_entry(), rb_str_cmp(), T_STRING, and TYPE.

Referenced by ole_delete_event().

static VALUE ole_search_handler_method ( VALUE  handler,
VALUE  ev,
BOOL *  is_default_handler 
) [static]

Definition at line 7707 of file win32ole.c.

References FALSE, Qnil, rb_intern, rb_respond_to(), rb_sprintf(), rb_to_id(), StringValuePtr, and TRUE.

Referenced by EVENTSINK_Invoke().

static void ole_set_byref ( VARIANT *  realvar,
VARIANT *  var,
VARTYPE  vt 
) [static]
static VALUE ole_set_member ( VALUE  self,
IDispatch *  dispatch 
) [static]
static void ole_set_safe_array ( long  n,
SAFEARRAY *  psa,
long *  pid,
long *  pub,
VALUE  val,
long  dim,
VARTYPE  vt 
) [static]
static HWND ole_show_help ( VALUE  helpfile,
VALUE  helpcontext 
) [static]

Definition at line 2947 of file win32ole.c.

References ghhctrl, NUM2INT, and StringValuePtr.

Referenced by fole_s_show_help().

static VALUE ole_type_from_itypeinfo ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_type_guid ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5663 of file win32ole.c.

References FALSE, HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_wc2vstr(), and Qnil.

Referenced by foletype_guid().

static VALUE ole_type_helpcontext ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5951 of file win32ole.c.

References HRESULT(), INT2FIX, NULL, ole_docinfo_from_type(), and Qnil.

Referenced by foletype_helpcontext().

static VALUE ole_type_helpfile ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5922 of file win32ole.c.

References HRESULT(), NULL, ole_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by foletype_helpfile().

static VALUE ole_type_helpstring ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5859 of file win32ole.c.

References HRESULT(), NULL, ole_docinfo_from_type(), Qnil, and WC2VSTR.

Referenced by foletype_helpstring().

static VALUE ole_type_impl_ole_types ( ITypeInfo *  pTypeInfo,
int  implflags 
) [static]
static VALUE ole_type_major_version ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_type_minor_version ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_type_progid ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5698 of file win32ole.c.

References FALSE, HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_wc2vstr(), and Qnil.

Referenced by foletype_progid().

static VALUE ole_type_src_type ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5887 of file win32ole.c.

References alias, HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, ole_typedesc2val(), and Qnil.

Referenced by foletype_src_type().

static VALUE ole_type_typekind ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_type_visible ( ITypeInfo *  pTypeInfo) [static]

Definition at line 5734 of file win32ole.c.

References HRESULT(), OLE_GET_TYPEATTR, OLE_RELEASE_TYPEATTR, Qfalse, and Qtrue.

Referenced by foletype_visible().

static VALUE ole_typedesc2val ( ITypeInfo *  pTypeInfo,
TYPEDESC *  pTypeDesc,
VALUE  typedetails 
) [static]
static VALUE ole_typelib_from_itypeinfo ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_types_from_typelib ( ITypeLib *  pTypeLib,
VALUE  classes 
) [static]
void ole_uninitialize ( void  )

Definition at line 1212 of file win32ole.c.

References FALSE, g_ole_initialized, and g_ole_initialized_set.

Referenced by fole_s_ole_uninitialize(), and ole_uninitialize_hook().

static void ole_uninitialize_hook ( rb_event_flag_t  evflag,
VALUE  data,
VALUE  self,
ID  mid,
VALUE  klass 
) [static]

Definition at line 1220 of file win32ole.c.

References ole_uninitialize().

Referenced by ole_initialize().

static VALUE ole_usertype2val ( ITypeInfo *  pTypeInfo,
TYPEDESC *  pTypeDesc,
VALUE  typedetails 
) [static]

Definition at line 4567 of file win32ole.c.

References HRESULT(), NULL, ole_docinfo_from_type(), OLE_RELEASE, Qnil, rb_ary_push(), type, V_UNION1, and WC2VSTR.

Referenced by ole_typedesc2val().

static void ole_val2olevariantdata ( VALUE  val,
VARTYPE  vt,
struct olevariantdata pvar 
) [static]
static void ole_val2ptr_variant ( VALUE  val,
VARIANT *  var 
) [static]
static void ole_val2variant ( VALUE  val,
VARIANT *  var 
) [static]
static void ole_val2variant2 ( VALUE  val,
VARIANT *  var 
) [static]

Definition at line 1983 of file win32ole.c.

References g_nil_to, and ole_val2variant().

Referenced by ole_invoke(), and ole_val2variant_ex().

static void ole_val2variant_ex ( VALUE  val,
VARIANT *  var,
VARTYPE  vt 
) [static]

Definition at line 1696 of file win32ole.c.

References NULL, NUM2I8, NUM2UI8, ole_val2variant2(), and Qnil.

Referenced by ole_val2olevariantdata(), and val2variant_ptr().

static HRESULT ole_val_ary2variant_ary ( VALUE  val,
VARIANT *  var,
VARTYPE  vt 
) [static]
static VALUE ole_variable_kind ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]

Definition at line 6410 of file win32ole.c.

References HRESULT(), and rb_str_new2().

Referenced by folevariable_variable_kind().

static VALUE ole_variable_ole_type ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]

Definition at line 6244 of file win32ole.c.

References eWIN32OLERuntimeError, HRESULT(), ole_raise(), ole_typedesc2val(), Qnil, and type.

Referenced by folevariable_ole_type().

static VALUE ole_variable_ole_type_detail ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]
static VALUE ole_variable_value ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]

Definition at line 6320 of file win32ole.c.

References HRESULT(), ole_variant2val(), Qnil, and V_UNION1.

Referenced by folevariable_value().

static VALUE ole_variable_varkind ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]

Definition at line 6466 of file win32ole.c.

References HRESULT(), INT2FIX, and Qnil.

Referenced by folevariable_varkind().

static VALUE ole_variable_visible ( ITypeInfo *  pTypeInfo,
UINT  var_index 
) [static]

Definition at line 6364 of file win32ole.c.

References HRESULT(), Qfalse, and Qtrue.

Referenced by folevariable_visible().

static VALUE ole_variables ( ITypeInfo *  pTypeInfo) [static]
static VALUE ole_variant2val ( VARIANT *  pvar) [static]
static LPWSTR ole_vstr2wc ( VALUE  vstr) [static]
static char * ole_wc2mb ( LPWSTR  pw) [static]
static VALUE ole_wc2vstr ( LPWSTR  pw,
BOOL  isfree 
) [static]
static VALUE oleclass_from_typelib ( VALUE  self,
ITypeLib *  pTypeLib,
VALUE  oleclass 
) [static]
static void olemethod_free ( struct olemethoddata polemethod) [static]

Definition at line 1281 of file win32ole.c.

References free, OLE_FREE, olemethoddata::pOwnerTypeInfo, and olemethoddata::pTypeInfo.

Referenced by folemethod_s_allocate().

static VALUE olemethod_from_typeinfo ( VALUE  self,
ITypeInfo *  pTypeInfo,
VALUE  name 
) [static]
static VALUE olemethod_set_member ( VALUE  self,
ITypeInfo *  pTypeInfo,
ITypeInfo *  pOwnerTypeInfo,
int  index,
VALUE  name 
) [static]
static void oleparam_free ( struct oleparamdata pole) [static]

Definition at line 1296 of file win32ole.c.

References free, OLE_FREE, and oleparamdata::pTypeInfo.

Referenced by foleparam_s_allocate(), and ole_method_params().

static VALUE oleparam_ole_param ( VALUE  self,
VALUE  olemethod,
int  n 
) [static]
static VALUE oleparam_ole_param_from_index ( VALUE  self,
ITypeInfo *  pTypeInfo,
UINT  method_index,
int  param_index 
) [static]
static void oletype_free ( struct oletypedata poletype) [static]

Definition at line 1274 of file win32ole.c.

References free, OLE_FREE, and oletypedata::pTypeInfo.

Referenced by foletype_s_allocate().

static VALUE oletype_set_member ( VALUE  self,
ITypeInfo *  pTypeInfo,
VALUE  name 
) [static]
static void oletypelib_free ( struct oletypelibdata poletypelib) [static]

Definition at line 1267 of file win32ole.c.

References free, OLE_FREE, and oletypelibdata::pTypeLib.

Referenced by foletypelib_s_allocate().

static HRESULT oletypelib_from_guid ( VALUE  guid,
VALUE  version,
ITypeLib **  ppTypeLib 
) [static]
static void oletypelib_get_libattr ( ITypeLib *  pTypeLib,
TLIBATTR **  ppTLibAttr 
) [static]
static ITypeLib * oletypelib_get_typelib ( VALUE  self) [static]
static VALUE oletypelib_path ( VALUE  guid,
VALUE  version 
) [static]
static VALUE oletypelib_search_registry ( VALUE  self,
VALUE  typelib 
) [static]
static VALUE oletypelib_search_registry2 ( VALUE  self,
VALUE  args 
) [static]
static VALUE oletypelib_set_member ( VALUE  self,
ITypeLib *  pTypeLib 
) [static]
static void olevariable_free ( struct olevariabledata polevar) [static]

Definition at line 1289 of file win32ole.c.

References free, OLE_FREE, and olevariabledata::pTypeInfo.

Referenced by ole_variables().

static void olevariant_free ( struct olevariantdata pvar) [static]

Definition at line 8640 of file win32ole.c.

References free, olevariantdata::realvar, and olevariantdata::var.

Referenced by folevariant_s_allocate().

static double rbtime2vtdate ( VALUE  tmobj) [static]

Referenced by ole_val2variant().

static ULONG reference_count ( struct oledata pole) [static]

Definition at line 2897 of file win32ole.c.

References OLE_ADDREF, OLE_RELEASE, oledata::pDispatch, and ULONG().

Referenced by fole_s_free(), and fole_s_reference_count().

static VALUE reg_enum_key ( HKEY  hkey,
DWORD  i 
) [static]
static VALUE reg_get_typelib_file_path ( HKEY  hkey) [static]

Definition at line 2403 of file win32ole.c.

References Qnil, and reg_get_val2().

Referenced by oletypelib_path(), and typelib_file_from_typelib().

static VALUE reg_get_val ( HKEY  hkey,
const char *  subkey 
) [static]
static VALUE reg_get_val2 ( HKEY  hkey,
const char *  subkey 
) [static]
static LONG reg_open_key ( HKEY  hkey,
const char *  name,
HKEY *  phkey 
) [static]
static LONG reg_open_vkey ( HKEY  hkey,
VALUE  key,
HKEY *  phkey 
) [static]
static VALUE rescue_callback ( VALUE  arg) [static]
static VALUE set_argv ( VARIANTARG *  realargs,
unsigned int  beg,
unsigned int  end 
) [static]

Definition at line 7611 of file win32ole.c.

References EVENTSINK_Destructor(), and tagIEVENTSINKOBJ::m_cRef.

static HRESULT typeinfo_from_ole ( struct oledata pole,
ITypeInfo **  ppti 
) [static]
static VALUE typelib_file ( VALUE  ole) [static]

Definition at line 2505 of file win32ole.c.

References Qnil, typelib_file_from_clsid(), and typelib_file_from_typelib().

Referenced by fole_s_const_load(), and foletype_initialize().

static VALUE typelib_file_from_clsid ( VALUE  ole) [static]

Definition at line 2419 of file win32ole.c.

References err, Qnil, rb_str_new2(), reg_get_val2(), reg_open_key(), and StringValuePtr.

Referenced by typelib_file().

static VALUE typelib_file_from_typelib ( VALUE  ole) [static]
static ULONG ( STDMETHODCALLTYPE  AddRef) [static]
static void unlock_safe_array ( SAFEARRAY *  psa) [static]

Definition at line 8833 of file win32ole.c.

References HRESULT(), ole_raise(), and rb_eRuntimeError.

Referenced by folevariant_ary_aref(), and folevariant_ary_aset().

static IDispatch* val2dispatch ( VALUE  val) [static]

Referenced by ole_val2variant().

static VOID * val2variant_ptr ( VALUE  val,
VARIANT *  var,
VARTYPE  vt 
) [static]
static VALUE vtdate2rbtime ( double  date) [static]

Referenced by ole_variant2val().


Variable Documentation

VALUE ary_ole_event [static]

Definition at line 215 of file win32ole.c.

Referenced by evs_delete(), evs_entry(), evs_length(), evs_push(), and Init_win32ole().

REFIID LPOLESTR __RPC_FAR UINT cNames

Definition at line 305 of file win32ole.c.

VALUE com_hash [static]

Definition at line 233 of file win32ole.c.

Referenced by Init_win32ole().

IDispatchVtbl com_vtbl [static]

Definition at line 234 of file win32ole.c.

Referenced by Init_win32ole().

UINT cWIN32OLE_cp = CP_ACP [static]

Definition at line 235 of file win32ole.c.

Referenced by fole_s_get_code_page(), ole_mb2wc(), and ole_wc2mb().

Definition at line 237 of file win32ole.c.

Definition at line 209 of file win32ole.c.

Referenced by EVENTSINK_Invoke(), and Init_win32ole().

LCID cWIN32OLE_lcid = LOCALE_SYSTEM_DEFAULT [static]

Definition at line 208 of file win32ole.c.

Referenced by Init_win32ole(), and ole_method_params().

Definition at line 213 of file win32ole.c.

Definition at line 206 of file win32ole.c.

Referenced by Init_win32ole(), and ole_variables().

Definition at line 210 of file win32ole.c.

Referenced by folevariant_initialize(), Init_win32ole(), ole_invoke(), and ole_val2variant().

DISPID dispIdMember

Definition at line 306 of file win32ole.c.

Definition at line 241 of file win32ole.c.

BOOL g_cp_installed = FALSE [static]

Definition at line 228 of file win32ole.c.

Referenced by code_page_installed(), and installed_code_page_proc().

UINT g_cp_to_check = CP_ACP [static]

Definition at line 238 of file win32ole.c.

Referenced by code_page_installed(), and installed_code_page_proc().

Definition at line 7580 of file win32ole.c.

BOOL g_lcid_installed = FALSE [static]

Definition at line 229 of file win32ole.c.

Referenced by installed_lcid_proc(), and lcid_installed().

char g_lcid_to_check[8+1] [static]

Definition at line 239 of file win32ole.c.

Referenced by installed_lcid_proc(), and lcid_installed().

VARTYPE g_nil_to = VT_ERROR [static]

Definition at line 240 of file win32ole.c.

Referenced by ole_val2variant(), and ole_val2variant2().

volatile DWORD g_ole_initialized_key = TLS_OUT_OF_INDEXES [static]

Definition at line 222 of file win32ole.c.

BOOL g_uninitialize_hooked = FALSE [static]

Definition at line 227 of file win32ole.c.

Referenced by ole_initialize().

FNCOCREATEINSTANCEEX* gCoCreateInstanceEx = NULL [static]

Definition at line 232 of file win32ole.c.

Referenced by ole_create_dcom().

HINSTANCE ghhctrl = NULL [static]

Definition at line 230 of file win32ole.c.

Referenced by ole_show_help().

HINSTANCE gole32 = NULL [static]

Definition at line 231 of file win32ole.c.

Referenced by ole_create_dcom().

ID id_events [static]
IMessageFilter imessage_filter = { &message_filter } [static]

Definition at line 243 of file win32ole.c.

Referenced by ole_initialize().

UINT iTInfo

Definition at line 304 of file win32ole.c.

static DISPID REFIID LCID lcid

Definition at line 304 of file win32ole.c.

Referenced by fole_s_set_locale().

IMessageFilterVtbl message_filter [static]

Definition at line 242 of file win32ole.c.

Referenced by Init_win32ole().

Definition at line 212 of file win32ole.c.

Referenced by Init_win32ole().

UINT __RPC_FAR* pctinfo

Definition at line 303 of file win32ole.c.

DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR* pDispParams

Definition at line 306 of file win32ole.c.

DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR VARIANT __RPC_FAR EXCEPINFO __RPC_FAR* pExcepInfo

Definition at line 306 of file win32ole.c.

UINT LCID ITypeInfo __RPC_FAR* __RPC_FAR* ppTInfo

Definition at line 304 of file win32ole.c.

REFIID void __RPC_FAR* __RPC_FAR* ppvObject

Definition at line 300 of file win32ole.c.

IMessageFilter* previous_filter [static]

Definition at line 244 of file win32ole.c.

Referenced by ole_initialize().

DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR VARIANT __RPC_FAR EXCEPINFO __RPC_FAR UINT __RPC_FAR* puArgErr

Definition at line 306 of file win32ole.c.

DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR VARIANT __RPC_FAR* pVarResult

Definition at line 306 of file win32ole.c.

REFIID LPOLESTR __RPC_FAR UINT LCID DISPID __RPC_FAR* rgDispId

Definition at line 305 of file win32ole.c.

REFIID LPOLESTR __RPC_FAR* rgszNames

Definition at line 305 of file win32ole.c.

static REFIID riid

Definition at line 300 of file win32ole.c.

Definition at line 7579 of file win32ole.c.

Referenced by EVENTSINK_Constructor().

DISPID REFIID LCID WORD wFlags

Definition at line 306 of file win32ole.c.