Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "win32ole.h"
Go to the source code of this file.
Data Structures | |
struct | oleparam |
struct | _Win32OLEIDispatch |
struct | myCPINFOEX |
Macros | |
#define | WIN32OLE_VERSION "1.8.5" |
#define | g_ole_initialized (TlsGetValue(g_ole_initialized_key)!=0) |
#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 | need_conv_function51932() (failed_load_conv51932(), 0) |
#define | conv_51932(cp) ((cp) == 51932 && need_conv_function51932()) |
#define | ole_wc2mb_conv(pw, pm, size) WideCharToMultiByte(cWIN32OLE_cp, 0, (pw), -1, (pm), (size), NULL, NULL) |
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 _Win32OLEIDispatch | Win32OLEIDispatch |
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_encoding * | ole_cp2encoding (UINT cp) |
static UINT | ole_encoding2cp (rb_encoding *enc) |
NORETURN (static void failed_load_conv51932(void)) | |
static UINT | ole_init_cp (void) |
static void | ole_freeexceptinfo (EXCEPINFO *pExInfo) |
static VALUE | ole_excepinfo2msg (EXCEPINFO *pExInfo) |
static void | ole_free (void *ptr) |
static size_t | ole_size (const void *ptr) |
static LPWSTR | ole_mb2wc (char *pm, int len, UINT cp) |
static VALUE | ole_ary_m_entry (VALUE val, LONG *pid) |
static VALUE | is_all_index_under (LONG *pid, long *pub, long dim) |
static void * | get_ptr_of_variant (VARIANT *pvar) |
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 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 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 (VALUE self, VALUE ole, VALUE host, VALUE others) |
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 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 int | hash2named_arg (VALUE key, VALUE val, VALUE 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 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 | fole_type (VALUE self) |
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 VALUE | ole_usertype2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails) |
static VALUE | ole_ptrtype2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails) |
static VALUE | fole_method_help (VALUE self, VALUE cmdname) |
static VALUE | fole_activex_initialize (VALUE self) |
static void | com_hash_free (void *ptr) |
static void | com_hash_mark (void *ptr) |
static size_t | com_hash_size (const void *ptr) |
static | DWORD (STDMETHODCALLTYPE mf_HandleInComingCall)(IMessageFilter __RPC_FAR *pThis |
free (psz) | |
if ((ID)(DISPID) nameid !=nameid) | |
BOOL | ole_initialized (void) |
static void | failed_load_conv51932 (void) |
static void | set_ole_codepage (UINT cp) |
static char * | ole_wc2mb_alloc (LPWSTR pw, char *(alloc)(UINT size, void *arg), void *arg) |
static char * | ole_alloc_str (UINT size, void *arg) |
char * | ole_wc2mb (LPWSTR pw) |
void | ole_uninitialize (void) |
static void | ole_uninitialize_hook (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass) |
void | ole_initialize (void) |
struct oledata * | oledata_get_struct (VALUE ole) |
LPWSTR | ole_vstr2wc (VALUE vstr) |
static char * | ole_alloc_vstr (UINT size, void *arg) |
VALUE | ole_wc2vstr (LPWSTR pw, BOOL isfree) |
void | ole_val2variant_ex (VALUE val, VARIANT *var, VARTYPE vt) |
VOID * | val2variant_ptr (VALUE val, VARIANT *var, VARTYPE vt) |
HRESULT | ole_val_ary2variant_ary (VALUE val, VARIANT *var, VARTYPE vt) |
void | ole_val2variant (VALUE val, VARIANT *var) |
void | ole_val2variant2 (VALUE val, VARIANT *var) |
VALUE | make_inspect (const char *class_name, VALUE detail) |
VALUE | default_inspect (VALUE self, const char *class_name) |
VALUE | ole_variant2val (VARIANT *pvar) |
LONG | reg_open_key (HKEY hkey, const char *name, HKEY *phkey) |
LONG | reg_open_vkey (HKEY hkey, VALUE key, HKEY *phkey) |
VALUE | reg_enum_key (HKEY hkey, DWORD i) |
VALUE | reg_get_val (HKEY hkey, const char *subkey) |
VALUE | reg_get_val2 (HKEY hkey, const char *subkey) |
HRESULT | ole_docinfo_from_type (ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile) |
VALUE | ole_typedesc2val (ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails) |
HRESULT | typelib_from_val (VALUE obj, ITypeLib **pTypeLib) |
void | Init_win32ole (void) |
Variables | |
VALUE | cWIN32OLE |
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 VALUE | enc2cp_hash |
static IDispatchVtbl | com_vtbl |
static UINT | cWIN32OLE_cp = CP_ACP |
static rb_encoding * | cWIN32OLE_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 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 const rb_data_type_t | ole_datatype |
static const rb_data_type_t | win32ole_hash_datatype |
static DWORD | dwCallType |
static DWORD HTASK | threadIDCaller |
static DWORD HTASK DWORD | dwTickCount |
static DWORD HTASK DWORD LPINTERFACEINFO | lpInterfaceInfo |
static HTASK | threadIDCallee |
static HTASK DWORD DWORD | dwRejectType |
static HTASK DWORD DWORD | dwPendingType |
ID | nameid = rb_check_id_cstr(psz, (long)strlen(psz), cWIN32OLE_enc) |
#define conv_51932 | ( | cp | ) | ((cp) == 51932 && need_conv_function51932()) |
Definition at line 585 of file win32ole.c.
Referenced by ole_mb2wc(), and ole_wc2mb_alloc().
#define ENC_MACHING_CP | ( | enc, | |
encname, | |||
cp | |||
) | if(strcasecmp(rb_enc_name((enc)),(encname)) == 0) return cp |
Definition at line 486 of file win32ole.c.
Referenced by ole_encoding2cp().
#define g_ole_initialized (TlsGetValue(g_ole_initialized_key)!=0) |
Definition at line 45 of file win32ole.c.
Referenced by ole_initialize(), ole_initialized(), and ole_uninitialize().
#define g_ole_initialized_init | ( | ) | (g_ole_initialized_key = TlsAlloc()) |
Definition at line 46 of file win32ole.c.
Referenced by Init_win32ole().
#define g_ole_initialized_set | ( | val | ) | TlsSetValue(g_ole_initialized_key, (void*)(val)) |
Definition at line 47 of file win32ole.c.
Referenced by ole_initialize(), and ole_uninitialize().
#define load_conv_function51932 | ( | ) | failed_load_conv51932() |
Definition at line 581 of file win32ole.c.
Referenced by failed_load_conv51932(), ole_cp2encoding(), and set_ole_codepage().
#define need_conv_function51932 | ( | ) | (failed_load_conv51932(), 0) |
Definition at line 582 of file win32ole.c.
#define ole_wc2mb_conv | ( | pw, | |
pm, | |||
size | |||
) | WideCharToMultiByte(cWIN32OLE_cp, 0, (pw), -1, (pm), (size), NULL, NULL) |
Definition at line 710 of file win32ole.c.
Referenced by ole_wc2mb_alloc().
#define pIMultiLanguage NULL /* dummy */ |
Definition at line 73 of file win32ole.c.
Referenced by failed_load_conv51932(), ole_cp2encoding(), and ole_mb2wc().
#define WIN32OLE_VERSION "1.8.5" |
Definition at line 29 of file win32ole.c.
Referenced by Init_win32ole().
Definition at line 34 of file win32ole.c.
static DWORD |
Definition at line 32 of file win32ole.c.
typedef BOOL() FNENUMSYSEMCODEPAGES(CODEPAGE_ENUMPROC, DWORD) |
Definition at line 36 of file win32ole.c.
typedef IUnknown COSERVERINFO MULTI_QI* typedef HWND(WINAPI FNHTMLHELP)(HWND hwndCaller |
Definition at line 34 of file win32ole.c.
typedef IUnknown COSERVERINFO MULTI_QI* typedef LPCSTR pszFile |
Definition at line 34 of file win32ole.c.
typedef IUnknown COSERVERINFO MULTI_QI* typedef LPCSTR UINT uCommand |
Definition at line 34 of file win32ole.c.
typedef struct _Win32OLEIDispatch Win32OLEIDispatch |
|
static |
Definition at line 1152 of file win32ole.c.
References HRESULT(), len, RARRAY_LEN, rb_ary_entry(), RB_TYPE_P, T_ARRAY, and val.
Referenced by ole_val_ary2variant_ary().
Definition at line 1376 of file win32ole.c.
References ALLOC_N, free(), Qnil, rb_ary_entry(), rb_ary_new(), rb_ary_store(), rb_eRuntimeError, and rb_raise().
Referenced by ary_store_dim(), and ole_variant2val().
Definition at line 1402 of file win32ole.c.
References ary_new_dim(), and rb_ary_store().
Referenced by ole_variant2val().
Definition at line 1824 of file win32ole.c.
References cWIN32OLE_cp, err, HRESULT(), len, NULL, ole_mb2wc(), rb_str_cat2(), rb_str_concat(), rb_str_new2, and StringValuePtr.
Referenced by ole_create_dcom().
|
static |
Definition at line 2243 of file win32ole.c.
References FALSE, g_cp_installed, g_cp_to_check, and installed_code_page_proc().
Referenced by ole_cp2encoding(), ole_vstr2wc(), and set_ole_codepage().
|
static |
Definition at line 3874 of file win32ole.c.
References st_free_table.
|
static |
Definition at line 3881 of file win32ole.c.
References rb_mark_hash().
|
static |
Definition at line 3888 of file win32ole.c.
References st_memsize().
|
static |
Definition at line 1368 of file win32ole.c.
References fole_s_allocate(), and ole_set_member().
Referenced by fole_query_interface(), fole_s_connect(), ole_bind_obj(), and ole_variant2val().
Definition at line 1336 of file win32ole.c.
References make_inspect(), rb_funcall(), and rb_intern.
Referenced by folemethod_inspect(), foletype_inspect(), foletypelib_inspect(), and tracepoint_inspect().
|
static |
Definition at line 1133 of file win32ole.c.
References len, RARRAY_LEN, rb_ary_entry(), RB_TYPE_P, and T_ARRAY.
Referenced by ole_val_ary2variant_ary().
|
static |
|
static |
Definition at line 554 of file win32ole.c.
References eWIN32OLERuntimeError, HRESULT(), load_conv_function51932, NULL, pIMultiLanguage, and rb_raise().
Definition at line 3827 of file win32ole.c.
References eWIN32OLERuntimeError, HRESULT(), NULL, ole_raise(), OLE_RELEASE, oledata_get_struct(), oledata::pDispatch, and Qnil.
Referenced by Init_win32ole().
Definition at line 3236 of file win32ole.c.
References cWIN32OLE_lcid, eWIN32OLERuntimeError, HRESULT(), NULL, ole_each_sub(), ole_ienum_free(), ole_raise(), oledata_get_struct(), oledata::pDispatch, Qnil, rb_ensure(), rb_eRuntimeError, result, and RETURN_ENUMERATOR.
Referenced by Init_win32ole().
Definition at line 3188 of file win32ole.c.
References NULL, OLE_FREE, oledata_get_struct(), oledata::pDispatch, and Qnil.
Referenced by Init_win32ole().
Definition at line 3446 of file win32ole.c.
References ole_methods().
Referenced by Init_win32ole().
Definition at line 3413 of file win32ole.c.
References ole_methods().
Referenced by Init_win32ole().
Definition at line 3033 of file win32ole.c.
References ole_invoke2().
Referenced by Init_win32ole().
Definition at line 3116 of file win32ole.c.
References ole_invoke(), and TRUE.
Referenced by Init_win32ole().
Definition at line 2446 of file win32ole.c.
References eWIN32OLERuntimeError, HRESULT(), NIL_P, NULL, OBJ_TAINTED, ole_create_dcom(), ole_raise(), ole_set_member(), ole_vstr2wc(), oledata::pDispatch, rb_call_super(), rb_eSecurityError, rb_raise(), rb_safe_level(), rb_scan_args(), StringValue, and StringValuePtr.
Referenced by Init_win32ole().
Definition at line 2807 of file win32ole.c.
References FALSE, and ole_invoke().
Referenced by Init_win32ole().
Definition at line 3015 of file win32ole.c.
References ole_invoke2().
Referenced by Init_win32ole().
Definition at line 3784 of file win32ole.c.
References create_win32ole_method(), eWIN32OLERuntimeError, HRESULT(), NULL, ole_raise(), OLE_RELEASE, oledata_get_struct(), Qnil, rb_eRuntimeError, rb_raise(), SafeStringValue, StringValuePtr, and typeinfo_from_ole().
Referenced by Init_win32ole().
Definition at line 3397 of file win32ole.c.
References ole_methods().
Referenced by Init_win32ole().
Definition at line 3299 of file win32ole.c.
References FALSE, HRESULT(), NIL_P, ole_invoke(), ole_propertyput(), rb_check_arity, rb_check_symbol(), rb_enc_associate(), rb_eRuntimeError, rb_raise(), rb_str_dup(), rb_str_subseq(), rb_sym2str, RSTRING_LEN, StringValueCStr, sym, and UNLIMITED_ARGUMENTS.
Referenced by Init_win32ole().
Definition at line 3429 of file win32ole.c.
References ole_methods().
Referenced by Init_win32ole().
Definition at line 3528 of file win32ole.c.
References create_win32ole_object(), cWIN32OLE, eWIN32OLERuntimeError, HRESULT(), NULL, ole_raise(), ole_vstr2wc(), oledata_get_struct(), oledata::pDispatch, rb_eRuntimeError, rb_raise(), and StringValuePtr.
Referenced by Init_win32ole().
Definition at line 3573 of file win32ole.c.
References cWIN32OLE_lcid, HRESULT(), NULL, ole_vstr2wc(), oledata_get_struct(), oledata::pDispatch, Qfalse, Qtrue, rb_eTypeError, rb_raise(), rb_sym2str, RB_TYPE_P, T_STRING, and T_SYMBOL.
Referenced by Init_win32ole().
Definition at line 1357 of file win32ole.c.
References NULL, ole_initialize(), oledata::pDispatch, and TypedData_Make_Struct.
Referenced by create_win32ole_object(), and Init_win32ole().
Definition at line 1961 of file win32ole.c.
References create_win32ole_object(), eWIN32OLERuntimeError, HRESULT(), OBJ_TAINTED, ole_bind_obj(), ole_initialize(), ole_raise(), OLE_RELEASE, ole_vstr2wc(), oledata::pDispatch, rb_eSecurityError, rb_raise(), rb_safe_level(), rb_scan_args(), StringValue, and StringValuePtr.
Referenced by Init_win32ole().
Definition at line 2042 of file win32ole.c.
References cWIN32OLE, cWIN32OLE_lcid, eWIN32OLERuntimeError, HRESULT(), NULL, ole_const_load(), ole_raise(), OLE_RELEASE, ole_vstr2wc(), oledata_get_struct(), oledata::pDispatch, Qnil, rb_eRuntimeError, rb_eTypeError, rb_obj_is_kind_of(), rb_raise(), rb_scan_args(), RB_TYPE_P, T_CLASS, T_MODULE, T_NIL, T_STRING, typelib_file(), and ULONG().
Referenced by Init_win32ole().
Definition at line 2346 of file win32ole.c.
References eWIN32OLERuntimeError, FALSE, HRESULT(), len, ole_raise(), ole_wc2vstr(), rb_eRuntimeError, and rb_raise().
Referenced by Init_win32ole().
Definition at line 2143 of file win32ole.c.
References NULL, OLE_RELEASE, oledata_get_struct(), oledata::pDispatch, RB_INT2NUM, reference_count(), and ULONG().
Referenced by Init_win32ole().
Definition at line 2228 of file win32ole.c.
References cWIN32OLE_cp, and RB_INT2FIX.
Referenced by Init_win32ole().
Definition at line 2285 of file win32ole.c.
References cWIN32OLE_lcid, and RB_INT2FIX.
Referenced by Init_win32ole().
Definition at line 2371 of file win32ole.c.
References ole_initialize(), and Qnil.
Referenced by Init_win32ole().
Definition at line 2379 of file win32ole.c.
References ole_uninitialize(), and Qnil.
Referenced by Init_win32ole().
Definition at line 2126 of file win32ole.c.
References NULL, oledata_get_struct(), RB_INT2NUM, and reference_count().
Referenced by Init_win32ole().
Definition at line 2265 of file win32ole.c.
References Qnil, RB_FIX2INT, and set_ole_codepage().
Referenced by Init_win32ole().
Definition at line 2320 of file win32ole.c.
References cWIN32OLE_lcid, eWIN32OLERuntimeError, lcid, lcid_installed(), Qnil, RB_FIX2INT, and rb_raise().
Referenced by Init_win32ole().
Definition at line 2189 of file win32ole.c.
References cWIN32OLE_METHOD, cWIN32OLE_TYPE, name, ole_show_help(), Qnil, rb_eRuntimeError, rb_eTypeError, rb_funcall(), rb_intern, rb_ivar_get(), rb_obj_is_kind_of(), rb_raise(), rb_scan_args(), RB_TYPE_P, StringValuePtr, strlen(), and T_STRING.
Referenced by Init_win32ole().
Definition at line 3094 of file win32ole.c.
References FALSE, and ole_invoke().
Referenced by Init_win32ole().
Definition at line 3051 of file win32ole.c.
References ole_invoke2().
Referenced by Init_win32ole().
Definition at line 3075 of file win32ole.c.
References ole_invoke(), and TRUE.
Referenced by Init_win32ole().
Definition at line 3461 of file win32ole.c.
References cWIN32OLE_lcid, HRESULT(), NULL, ole_raise(), OLE_RELEASE, ole_type_from_itypeinfo(), oledata_get_struct(), oledata::pDispatch, Qnil, rb_eRuntimeError, and rb_raise().
Referenced by Init_win32ole().
Definition at line 3495 of file win32ole.c.
References cWIN32OLE_lcid, HRESULT(), NULL, ole_raise(), OLE_RELEASE, ole_typelib_from_itypeinfo(), oledata_get_struct(), oledata::pDispatch, Qnil, rb_eRuntimeError, and rb_raise().
Referenced by Init_win32ole().
free | ( | psz | ) |
Referenced by aligned_free(), append_wstr(), ary_new_dim(), cmdglob(), dln_find_exe_r(), EVENTSINK_Destructor(), exit_handler(), ffi_prep_incoming_args_VFP(), fgdbm_clear(), fgdbm_empty_p(), fgdbm_length(), fgdbm_values(), filename_completion_proc_call(), find_iid(), fitpair(), folevariant_ary_aref(), folevariant_ary_aset(), folevariant_s_array(), free_stack_chunks(), freeaddrinfo(), get_addr(), get_name(), getaddrinfo(), heap_page_free(), Init_heap(), Init_readline(), join_path(), link(), main(), Messaging_HandleMessage(), nsdr(), objspace_xfree(), ole_const_load(), ole_excepinfo2msg(), ole_free(), ole_rec2variant(), ole_val_ary2variant_ary(), ole_variant2val(), oleevent_free(), olemethod_free(), oleparam_free(), olerecord_free(), oletype_free(), oletypelib_free(), olevariable_free(), olevariant_free(), open_ifs_socket(), rb_file_expand_path_internal(), rb_file_load_ok(), rb_gdbm_fetch(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_objspace_free(), rb_print_backtrace(), rb_remove_history(), rb_w32_closedir(), rb_w32_free_environ(), rb_w32_getcwd(), rb_w32_mkdir(), rb_w32_open(), rb_w32_opendir(), rb_w32_rename(), rb_w32_rmdir(), rb_w32_uchdir(), rb_w32_uchmod(), rb_w32_ulink(), rb_w32_umkdir(), rb_w32_unlink(), rb_w32_uopen(), rb_w32_uopendir(), rb_w32_urename(), rb_w32_urmdir(), rb_w32_utime(), rb_w32_uunlink(), rb_w32_uutime(), rb_w32_write_console(), readdir_internal(), readline_readline(), reg_get_val(), ruby_getcwd(), ruby_mimfree(), ruby_setenv(), ruby_vm_run_at_exit_hooks(), sdbm_close(), sdbm_open(), sdbm_prep(), shrink_stack_chunk_cache(), sip_hash_free(), thread_free(), username_completion_proc_call(), w32_aspawn_flags(), w32_cmdvector(), w32_getenv(), w32_lstati64(), w32_spawn(), w32_stati64(), w32_truncate(), w32_wopendir(), and yaml_free().
|
static |
Definition at line 1032 of file win32ole.c.
References NULL, V_INT, and V_UINT.
Referenced by val2variant_ptr().
Definition at line 2501 of file win32ole.c.
References oleparam::dp, ole_val2variant(), ole_vstr2wc(), oleparam::pNamedArgs, rb_eTypeError, rb_raise(), rb_sym2str, RB_TYPE_P, ST_CONTINUE, T_STRING, and T_SYMBOL.
Referenced by ole_invoke().
typedef HRESULT | ( | STDAPICALLTYPE | FNCOCREATEINSTANCEEX | ) |
Referenced by ary_len_of_dim(), clsid_from_remote(), ev_advise(), EVENTSINK_Invoke(), failed_load_conv51932(), find_coclass(), find_default_source(), find_default_source_from_typeinfo(), find_iid(), fole_activex_initialize(), fole_each(), fole_initialize(), fole_method_help(), fole_missing(), fole_query_interface(), fole_respond_to(), fole_s_connect(), fole_s_const_load(), fole_s_create_guid(), fole_type(), fole_typelib(), folemethod_event_interface(), folerecord_initialize(), foletype_initialize(), foletypelib_initialize(), foletypelib_library_name(), foletypelib_name(), foletypelib_path(), foletypelib_s_typelibs(), folevariant_ary_aref(), folevariant_ary_aset(), get_locked_safe_array(), hash2olerec(), hash2ptr_dispparams(), ole_bind_obj(), ole_const_load(), ole_cp2encoding(), 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_rec2variant(), 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(), oleclass_from_typelib(), olemethod_from_typeinfo(), oleparam_ole_param_from_index(), olerecord_set_ivar(), olerecord_size(), oletypelib_from_guid(), oletypelib_get_libattr(), oletypelib_path(), oletypelib_search_registry(), oletypelib_search_registry2(), recordinfo_from_itypelib(), rescue_callback(), typeinfo_from_ole(), typelib_from_val(), unlock_safe_array(), and val2variant_ptr().
|
static |
Definition at line 354 of file win32ole.c.
References ALLOCA_N, _Win32OLEIDispatch::obj, ole_val2variant(), ole_variant2val(), rb_funcallv, and rb_intern.
void Init_win32ole | ( | void | ) |
Definition at line 3895 of file win32ole.c.
References com_hash, com_vtbl, cWIN32OLE, cWIN32OLE_lcid, enc2cp_hash, 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(), g_ole_initialized_init, Init_win32ole_error(), Init_win32ole_event(), Init_win32ole_method(), Init_win32ole_param(), Init_win32ole_record(), Init_win32ole_type(), Init_win32ole_typelib(), Init_win32ole_variable(), Init_win32ole_variant(), Init_win32ole_variant_m(), message_filter, ole_init_cp(), 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_singleton_method(), rb_gc_register_mark_object(), RB_INT2FIX, rb_str_new2, RTYPEDDATA_DATA, st_init_numtable, TypedData_Wrap_Struct, and WIN32OLE_VERSION.
|
static |
Definition at line 2234 of file win32ole.c.
References FALSE, g_cp_installed, g_cp_to_check, NULL, and TRUE.
Referenced by code_page_installed().
|
static |
Definition at line 2291 of file win32ole.c.
References FALSE, g_lcid_installed, g_lcid_to_check, and TRUE.
Referenced by lcid_installed().
|
static |
Definition at line 961 of file win32ole.c.
Referenced by ole_set_safe_array().
|
static |
Definition at line 2301 of file win32ole.c.
References FALSE, g_lcid_installed, g_lcid_to_check, installed_lcid_proc(), and snprintf.
Referenced by fole_s_set_locale().
Definition at line 1324 of file win32ole.c.
References rb_str_cat2(), rb_str_concat(), and rb_str_new2.
Referenced by default_inspect(), foleparam_inspect(), and folevariable_inspect().
NORETURN | ( | static void | failed_load_conv51932void | ) |
|
static |
|
static |
Definition at line 929 of file win32ole.c.
References NULL, rb_enc_str_new(), and RSTRING_PTR.
Referenced by ole_wc2vstr().
Definition at line 948 of file win32ole.c.
References Qnil, rb_ary_entry(), RB_TYPE_P, T_ARRAY, and val.
Referenced by ole_set_safe_array().
Definition at line 1910 of file win32ole.c.
References create_win32ole_object(), eWIN32OLERuntimeError, HRESULT(), NULL, ole_initialize(), ole_raise(), OLE_RELEASE, ole_vstr2wc(), oledata::pDispatch, StringValuePtr, and ULONG().
Referenced by fole_s_connect().
Definition at line 1761 of file win32ole.c.
References count, free(), HRESULT(), id, len, NULL, OLE_GET_TYPEATTR, OLE_RELEASE, ole_variant2val(), ole_wc2mb(), rb_define_const(), rb_hash_aset(), rb_hash_new(), rb_intern, rb_is_const_id(), rb_str_new2, V_UNION1, and val.
Referenced by fole_s_const_load().
|
static |
Definition at line 640 of file win32ole.c.
References ALLOCA_N, buf, code_page_installed(), myCPINFOEX::CodePage, cWIN32OLE_cp, enc_name(), eWIN32OLERuntimeError, HRESULT(), load_conv_function51932, NULL, pIMultiLanguage, rb_define_dummy_encoding(), rb_enc_find_index(), rb_enc_from_index(), rb_raise(), rb_sprintf(), size, and StringValueCStr.
Referenced by set_ole_codepage().
Definition at line 1862 of file win32ole.c.
References clsid_from_remote(), eWIN32OLERuntimeError, gCoCreateInstanceEx, gole32, HRESULT(), NULL, ole_raise(), ole_set_member(), ole_vstr2wc(), rb_eRuntimeError, rb_raise(), and StringValuePtr.
Referenced by fole_initialize().
HRESULT ole_docinfo_from_type | ( | ITypeInfo * | pTypeInfo, |
BSTR * | name, | ||
BSTR * | helpstr, | ||
DWORD * | helpcontext, | ||
BSTR * | helpfile | ||
) |
Definition at line 3594 of file win32ole.c.
References HRESULT(), and OLE_RELEASE.
Referenced by folemethod_event_interface(), ole_type_helpcontext(), ole_type_helpfile(), ole_type_helpstring(), and ole_usertype2val().
Definition at line 3198 of file win32ole.c.
References NULL, ole_variant2val(), Qnil, and rb_yield().
Referenced by fole_each().
|
static |
Definition at line 488 of file win32ole.c.
References ENC_MACHING_CP.
Referenced by ole_init_cp(), and ole_vstr2wc().
|
static |
Definition at line 754 of file win32ole.c.
References free(), NULL, ole_freeexceptinfo(), ole_wc2mb(), rb_str_cat(), rb_str_cat2(), and rb_str_new2.
Referenced by ole_invoke(), ole_invoke2(), and ole_propertyput().
|
static |
Definition at line 835 of file win32ole.c.
References free(), OLE_FREE, and oledata::pDispatch.
|
static |
Definition at line 746 of file win32ole.c.
Referenced by ole_excepinfo2msg(), and ole_invoke().
Definition at line 3214 of file win32ole.c.
References OLE_RELEASE, and Qnil.
Referenced by fole_each().
|
static |
Definition at line 617 of file win32ole.c.
References ole_encoding2cp(), rb_default_external_encoding(), rb_default_internal_encoding(), and set_ole_codepage().
Referenced by Init_win32ole().
void ole_initialize | ( | void | ) |
Definition at line 810 of file win32ole.c.
References FALSE, g_ole_initialized, g_ole_initialized_set, g_uninitialize_hooked, HRESULT(), imessage_filter, NULL, ole_raise(), ole_uninitialize_hook(), previous_filter, Qnil, rb_add_event_hook(), rb_eRuntimeError, RUBY_EVENT_THREAD_END, and TRUE.
Referenced by fole_s_allocate(), fole_s_connect(), fole_s_ole_initialize(), foletype_s_allocate(), foletypelib_s_allocate(), folevariant_s_allocate(), folevariant_s_array(), and ole_bind_obj().
BOOL ole_initialized | ( | void | ) |
Definition at line 392 of file win32ole.c.
References g_ole_initialized.
|
static |
Definition at line 2552 of file win32ole.c.
References ALLOCA_N, cWIN32OLE_lcid, cWIN32OLE_RECORD, cWIN32OLE_VARIANT, oleparam::dp, eWIN32OLERuntimeError, hash2named_arg(), HRESULT(), NULL, ole_excepinfo2msg(), ole_freeexceptinfo(), ole_raise(), ole_val2variant(), ole_val2variant2(), ole_variant2val(), ole_variant2variant(), ole_vstr2wc(), oledata_get_struct(), olerecord_set_ivar(), oledata::pDispatch, oleparam::pNamedArgs, rb_ary_entry(), rb_ary_unshift(), rb_eNoMethodError, rb_eRuntimeError, rb_eTypeError, rb_hash_foreach(), rb_long2int, rb_obj_is_kind_of(), rb_raise(), rb_scan_args(), rb_sym2str, RB_TYPE_P, result, RHASH_SIZE, set_argv(), StringValuePtr, T_HASH, T_STRING, and T_SYMBOL.
Referenced by fole_getproperty_with_bracket(), fole_invoke(), fole_missing(), fole_setproperty(), and fole_setproperty_with_bracket().
|
static |
Definition at line 2813 of file win32ole.c.
References ALLOCA_N, Check_Type, cWIN32OLE_lcid, eWIN32OLERuntimeError, HRESULT(), NULL, ole_excepinfo2msg(), ole_raise(), ole_val2variant(), ole_variant2val(), oledata_get_struct(), oledata::pDispatch, Qnil, RARRAY_LEN, rb_ary_entry(), rb_eTypeError, RB_FIX2INT, RB_NUM2INT, rb_raise(), result, set_argv(), StringValuePtr, and T_ARRAY.
Referenced by fole_getproperty2(), fole_invoke2(), and fole_setproperty2().
|
static |
Definition at line 897 of file win32ole.c.
References conv_51932, eWIN32OLERuntimeError, HRESULT(), len, NULL, ole_raise(), and pIMultiLanguage.
Referenced by clsid_from_remote(), and ole_vstr2wc().
Definition at line 3367 of file win32ole.c.
References HRESULT(), NULL, ole_methods_from_typeinfo(), OLE_RELEASE, oledata_get_struct(), rb_ary_concat(), rb_ary_new(), and typeinfo_from_ole().
Referenced by fole_func_methods(), fole_get_methods(), fole_methods(), and fole_put_methods().
Definition at line 3122 of file win32ole.c.
References cWIN32OLE_lcid, eWIN32OLERuntimeError, HRESULT(), NULL, ole_excepinfo2msg(), ole_raise(), ole_val2variant(), ole_vstr2wc(), oledata_get_struct(), oledata::pDispatch, Qnil, and StringValuePtr.
Referenced by fole_missing().
|
static |
Definition at line 3642 of file win32ole.c.
References ole_typedesc2val(), rb_str_new2, and V_UNION1.
Referenced by ole_typedesc2val().
Definition at line 1343 of file win32ole.c.
References NULL, OLE_RELEASE, oledata_get_struct(), and oledata::pDispatch.
Referenced by create_win32ole_object(), fole_initialize(), and ole_create_dcom().
|
static |
Definition at line 1101 of file win32ole.c.
References eWIN32OLERuntimeError, HRESULT(), is_all_index_under(), NULL, ole_ary_m_entry(), ole_raise(), Qtrue, rb_eRuntimeError, rb_raise(), and val2variant_ptr().
Referenced by ole_val_ary2variant_ary().
Definition at line 2157 of file win32ole.c.
References ghhctrl, RB_NUM2INT, and StringValuePtr.
Referenced by fole_s_show_help().
|
static |
Definition at line 842 of file win32ole.c.
Definition at line 3655 of file win32ole.c.
References ole_ptrtype2val(), ole_usertype2val(), Qnil, rb_ary_push(), rb_fix2str(), RB_INT2FIX, rb_str_concat(), and rb_str_new2.
Referenced by ole_method_return_type(), ole_method_return_type_detail(), ole_param_ole_type(), ole_param_ole_type_detail(), ole_ptrtype2val(), ole_type_src_type(), ole_variable_ole_type(), and ole_variable_ole_type_detail().
void ole_uninitialize | ( | void | ) |
Definition at line 796 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 |
Definition at line 804 of file win32ole.c.
References ole_uninitialize().
Referenced by ole_initialize().
|
static |
Definition at line 3617 of file win32ole.c.
References HRESULT(), NULL, ole_docinfo_from_type(), OLE_RELEASE, Qnil, rb_ary_push(), V_UNION1, and WC2VSTR.
Referenced by ole_typedesc2val().
void ole_val2variant | ( | VALUE | val, |
VARIANT * | var | ||
) |
Definition at line 1240 of file win32ole.c.
References cWIN32OLE, cWIN32OLE_RECORD, cWIN32OLE_VARIANT, g_nil_to, NULL, NUM2DBL, OLE_ADDREF, ole_rec2variant(), ole_val_ary2variant_ary(), ole_variant2variant(), ole_vstr2wc(), oledata_get_struct(), oledata::pDispatch, rb_big2dbl(), rb_cTime, RB_NUM2LONG, rb_obj_is_kind_of(), rbtime2vtdate(), T_ARRAY, T_BIGNUM, T_FALSE, T_FIXNUM, T_FLOAT, T_NIL, T_STRING, T_TRUE, TYPE, and val2dispatch().
Referenced by EVENTSINK_Invoke(), folevariant_initialize(), hash2named_arg(), hash2olerec(), if(), ole_invoke(), ole_invoke2(), ole_propertyput(), and ole_val2variant2().
void ole_val2variant2 | ( | VALUE | val, |
VARIANT * | var | ||
) |
Definition at line 1316 of file win32ole.c.
References g_nil_to, and ole_val2variant().
Referenced by ole_invoke(), and ole_val2variant_ex().
void ole_val2variant_ex | ( | VALUE | val, |
VARIANT * | var, | ||
VARTYPE | vt | ||
) |
Definition at line 973 of file win32ole.c.
References NULL, NUM2I8, NUM2UI8, ole_val2variant2(), and Qnil.
Referenced by ole_val2olevariantdata(), and val2variant_ptr().
Definition at line 1178 of file win32ole.c.
References ALLOC_N, ary_len_of_dim(), Check_Type, dimension(), free(), HRESULT(), NULL, ole_set_safe_array(), rb_eRuntimeError, rb_raise(), and T_ARRAY.
Referenced by ole_val2olevariantdata(), and ole_val2variant().
VALUE ole_variant2val | ( | VARIANT * | pvar | ) |
Definition at line 1409 of file win32ole.c.
References ALLOC_N, ary_new_dim(), ary_store_dim(), create_win32ole_object(), create_win32ole_record(), cWIN32OLE, cWIN32OLE_lcid, FALSE, free(), HRESULT(), I8_2_NUM, NULL, OLE_ADDREF, ole_variant2val(), ole_wc2vstr(), oledata::pDispatch, Qfalse, Qnil, Qtrue, rb_ary_new(), rb_eRuntimeError, rb_float_new, RB_INT2NUM, rb_raise(), rb_str_new2, UI8_2_NUM, V_I1REF, V_INT, V_INTREF, V_UI2REF, V_UINT, V_UINTREF, val, and vtdate2rbtime().
Referenced by EVENTSINK_Invoke(), folevariant_ary_aref(), folevariant_value(), if(), ole_const_load(), ole_each_sub(), ole_invoke(), ole_invoke2(), ole_param_default(), ole_variable_value(), ole_variant2val(), olerecord_set_ivar(), and set_argv().
LPWSTR ole_vstr2wc | ( | VALUE | vstr | ) |
Definition at line 856 of file win32ole.c.
References Check_Type, code_page_installed(), DATA_PTR, enc2cp_hash, eWIN32OLERuntimeError, FIXNUM_FLAG, NULL, ole_encoding2cp(), ole_mb2wc(), rb_enc_get(), rb_enc_name, RB_FIX2INT, RB_GC_GUARD, RB_INT2FIX, rb_raise(), RSTRING_LEN, RSTRING_LENINT, RSTRING_PTR, st_data_t, st_insert, st_lookup, and T_STRING.
Referenced by fole_initialize(), fole_query_interface(), fole_respond_to(), fole_s_connect(), fole_s_const_load(), foletype_initialize(), foletypelib_initialize(), hash2named_arg(), hash2olerec(), ole_bind_obj(), ole_create_dcom(), ole_invoke(), ole_propertyput(), ole_val2ptr_variant(), ole_val2variant(), and oletypelib_from_guid().
char* ole_wc2mb | ( | LPWSTR | pw | ) |
Definition at line 740 of file win32ole.c.
References NULL, ole_alloc_str(), and ole_wc2mb_alloc().
Referenced by find_iid(), ole_const_load(), and ole_excepinfo2msg().
|
static |
Definition at line 713 of file win32ole.c.
References conv_51932, cWIN32OLE_cp, NULL, ole_wc2mb_conv, size, and xfree().
Referenced by ole_wc2mb(), and ole_wc2vstr().
VALUE ole_wc2vstr | ( | LPWSTR | pw, |
BOOL | isfree | ||
) |
Definition at line 937 of file win32ole.c.
References ole_alloc_vstr(), ole_wc2mb_alloc(), rb_str_set_len(), RSTRING_PTR, and strlen().
Referenced by fole_s_create_guid(), foletypelib_guid(), ole_type_guid(), ole_type_progid(), and ole_variant2val().
Definition at line 848 of file win32ole.c.
References TypedData_Get_Struct.
Referenced by ev_advise(), find_default_source(), find_iid(), fole_activex_initialize(), fole_each(), fole_free(), fole_method_help(), fole_query_interface(), fole_respond_to(), fole_s_const_load(), fole_s_free(), fole_s_reference_count(), fole_type(), fole_typelib(), ole_invoke(), ole_invoke2(), ole_methods(), ole_propertyput(), ole_set_member(), ole_val2variant(), and typelib_from_val().
|
static |
Definition at line 418 of file win32ole.c.
References RB_FIX2INT, rb_funcall(), and rb_intern.
Referenced by ole_val2variant().
Definition at line 2107 of file win32ole.c.
References OLE_ADDREF, OLE_RELEASE, oledata::pDispatch, and ULONG().
Referenced by fole_s_free(), and fole_s_reference_count().
Definition at line 1701 of file win32ole.c.
References buf, err, NULL, Qnil, and rb_str_new2.
Referenced by foletype_s_progids(), foletypelib_s_typelibs(), oletypelib_path(), oletypelib_search_registry(), oletypelib_search_registry2(), and typelib_file_from_typelib().
Definition at line 1716 of file win32ole.c.
References ALLOC_N, err, free(), len, NULL, Qnil, rb_str_new2, size, and val.
Referenced by oletypelib_search_registry(), oletypelib_search_registry2(), reg_get_val2(), and typelib_file_from_typelib().
Definition at line 1744 of file win32ole.c.
References err, NULL, Qnil, reg_get_val(), and val.
Referenced by foletype_s_progids(), foletypelib_s_typelibs(), reg_get_typelib_file_path(), and typelib_file_from_clsid().
LONG reg_open_key | ( | HKEY | hkey, |
const char * | name, | ||
HKEY * | phkey | ||
) |
Definition at line 1689 of file win32ole.c.
Referenced by foletype_s_progids(), foletypelib_s_typelibs(), oletypelib_search_registry(), oletypelib_search_registry2(), reg_open_vkey(), typelib_file_from_clsid(), and typelib_file_from_typelib().
LONG reg_open_vkey | ( | HKEY | hkey, |
VALUE | key, | ||
HKEY * | phkey | ||
) |
Definition at line 1695 of file win32ole.c.
References reg_open_key(), and StringValuePtr.
Referenced by foletype_s_progids(), foletypelib_s_typelibs(), oletypelib_path(), oletypelib_search_registry(), oletypelib_search_registry2(), and typelib_file_from_typelib().
|
static |
Definition at line 2536 of file win32ole.c.
References argv, Check_Type, cWIN32OLE, ole_variant2val(), rb_ary_clear(), rb_ary_push(), rb_const_get(), rb_intern, and T_ARRAY.
Referenced by ole_invoke(), and ole_invoke2().
|
static |
Definition at line 588 of file win32ole.c.
References code_page_installed(), cWIN32OLE_cp, eWIN32OLERuntimeError, load_conv_function51932, ole_cp2encoding(), and rb_raise().
Referenced by fole_s_set_code_page(), and ole_init_cp().
Definition at line 3326 of file win32ole.c.
References count, cWIN32OLE_lcid, HRESULT(), NULL, ole_raise(), OLE_RELEASE, oledata::pDispatch, rb_eRuntimeError, rb_str_cmp(), and WC2VSTR.
Referenced by fole_method_help(), and ole_methods().
Definition at line 3855 of file win32ole.c.
References cWIN32OLE_lcid, HRESULT(), NULL, OLE_RELEASE, oledata_get_struct(), and oledata::pDispatch.
Referenced by folerecord_initialize().
|
static |
Definition at line 199 of file win32ole.c.
Referenced by dln_strerror(), EVENTSINK_QueryInterface(), fole_s_const_load(), fole_s_free(), get_dns_server_list(), getifaddrs(), nkf_locale_charmap(), ole_bind_obj(), ole_rec2variant(), olerecord_set_ivar(), olerecord_size(), rb_w32_getppid(), reference_count(), and sock_s_unpack_sockaddr_in().
|
static |
Definition at line 398 of file win32ole.c.
References ALLOC, com_hash, com_vtbl, DATA_PTR, _Win32OLEIDispatch::dispatch, FIXNUM_FLAG, _Win32OLEIDispatch::obj, _Win32OLEIDispatch::refcount, st_data_t, st_insert, st_lookup, and val.
Referenced by ole_val2variant().
VOID* val2variant_ptr | ( | VALUE | val, |
VARIANT * | var, | ||
VARTYPE | vt | ||
) |
Definition at line 1008 of file win32ole.c.
References cWIN32OLE_lcid, get_ptr_of_variant(), HRESULT(), NULL, ole_raise(), ole_val2variant_ex(), rb_eRuntimeError, and rb_raise().
Referenced by folevariant_ary_aset(), and ole_set_safe_array().
|
static |
Definition at line 446 of file win32ole.c.
References rb_cTime, RB_FIX2INT, rb_float_new, rb_funcall(), RB_INT2FIX, and rb_intern.
Referenced by ole_variant2val().
static REFIID LPOLESTR __RPC_FAR UINT cNames |
Definition at line 86 of file win32ole.c.
|
static |
Definition at line 56 of file win32ole.c.
Referenced by Init_win32ole(), and val2dispatch().
|
static |
Definition at line 58 of file win32ole.c.
Referenced by Init_win32ole(), and val2dispatch().
VALUE cWIN32OLE |
Definition at line 37 of file win32ole.c.
Referenced by check_type_val2variant(), ev_advise(), fole_query_interface(), fole_s_const_load(), folerecord_initialize(), Init_win32ole(), Init_win32ole_variant_m(), ole_val2variant(), ole_variant2val(), and set_argv().
|
static |
Definition at line 59 of file win32ole.c.
Referenced by clsid_from_remote(), fole_s_get_code_page(), ole_cp2encoding(), ole_wc2mb_alloc(), and set_ole_codepage().
|
static |
Definition at line 60 of file win32ole.c.
DISPID dispIdMember |
Definition at line 87 of file win32ole.c.
DWORD dwCallType |
Definition at line 213 of file win32ole.c.
Definition at line 267 of file win32ole.c.
Definition at line 251 of file win32ole.c.
static HTASK DWORD dwTickCount |
Definition at line 213 of file win32ole.c.
|
static |
Definition at line 57 of file win32ole.c.
Referenced by Init_win32ole(), and ole_vstr2wc().
|
static |
Definition at line 51 of file win32ole.c.
Referenced by code_page_installed(), and installed_code_page_proc().
|
static |
Definition at line 61 of file win32ole.c.
Referenced by code_page_installed(), and installed_code_page_proc().
|
static |
Definition at line 52 of file win32ole.c.
Referenced by installed_lcid_proc(), and lcid_installed().
|
static |
Definition at line 62 of file win32ole.c.
Referenced by installed_lcid_proc(), and lcid_installed().
|
static |
Definition at line 63 of file win32ole.c.
Referenced by ole_val2variant(), and ole_val2variant2().
|
static |
Definition at line 44 of file win32ole.c.
|
static |
Definition at line 50 of file win32ole.c.
Referenced by ole_initialize().
|
static |
Definition at line 55 of file win32ole.c.
Referenced by ole_create_dcom().
|
static |
Definition at line 53 of file win32ole.c.
Referenced by ole_show_help().
|
static |
Definition at line 54 of file win32ole.c.
Referenced by ole_create_dcom().
|
static |
Definition at line 65 of file win32ole.c.
Referenced by ole_initialize().
static UINT iTInfo |
Definition at line 85 of file win32ole.c.
static REFIID LPOLESTR __RPC_FAR UINT LCID lcid |
Definition at line 85 of file win32ole.c.
Referenced by find_iid(), fole_s_set_locale(), and foletypelib_path().
Definition at line 218 of file win32ole.c.
|
static |
Definition at line 64 of file win32ole.c.
Referenced by Init_win32ole().
ID nameid = rb_check_id_cstr(psz, (long)strlen(psz), cWIN32OLE_enc) |
Definition at line 352 of file win32ole.c.
|
static |
Definition at line 173 of file win32ole.c.
static UINT __RPC_FAR * pctinfo |
Definition at line 84 of file win32ole.c.
DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR* pDispParams |
Definition at line 87 of file win32ole.c.
DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR VARIANT __RPC_FAR EXCEPINFO __RPC_FAR* pExcepInfo |
Definition at line 87 of file win32ole.c.
static UINT LCID ITypeInfo __RPC_FAR *__RPC_FAR * ppTInfo |
Definition at line 85 of file win32ole.c.
static REFIID void __RPC_FAR *__RPC_FAR * ppvObject |
Definition at line 81 of file win32ole.c.
|
static |
Definition at line 66 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 87 of file win32ole.c.
DISPID REFIID LCID WORD DISPPARAMS __RPC_FAR VARIANT __RPC_FAR* pVarResult |
Definition at line 87 of file win32ole.c.
static REFIID LPOLESTR __RPC_FAR UINT LCID DISPID __RPC_FAR * rgDispId |
Definition at line 86 of file win32ole.c.
static REFIID LPOLESTR __RPC_FAR * rgszNames |
Definition at line 86 of file win32ole.c.
static REFIID riid |
Definition at line 81 of file win32ole.c.
static HTASK threadIDCallee |
Definition at line 247 of file win32ole.c.
DWORD HTASK threadIDCaller |
Definition at line 213 of file win32ole.c.
DISPID REFIID LCID WORD wFlags |
Definition at line 87 of file win32ole.c.
|
static |
Definition at line 179 of file win32ole.c.