Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "win32ole.h"
Go to the source code of this file.
Functions | |
static void | olemethod_free (void *ptr) |
static size_t | olemethod_size (const void *ptr) |
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 | olemethod_set_member (VALUE self, ITypeInfo *pTypeInfo, ITypeInfo *pOwnerTypeInfo, int index, VALUE name) |
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 HRESULT | 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) |
struct olemethoddata * | olemethod_data_get_struct (VALUE obj) |
VALUE | ole_methods_from_typeinfo (ITypeInfo *pTypeInfo, int mask) |
VALUE | create_win32ole_method (ITypeInfo *pTypeInfo, VALUE name) |
VALUE | folemethod_s_allocate (VALUE klass) |
void | Init_win32ole_method (void) |
Variables | |
static const rb_data_type_t | olemethod_datatype |
Definition at line 210 of file win32ole_method.c.
References cWIN32OLE_METHOD, folemethod_s_allocate(), and olemethod_from_typeinfo().
Referenced by fole_method_help().
Definition at line 759 of file win32ole_method.c.
References olemethoddata::index, ole_method_dispid(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 587 of file win32ole_method.c.
References olemethoddata::index, ole_method_event(), olemethoddata::pOwnerTypeInfo, Qfalse, rb_intern, rb_ivar_get(), and TypedData_Get_Struct.
Referenced by folemethod_event_interface(), and Init_win32ole_method().
Definition at line 608 of file win32ole_method.c.
References folemethod_event(), HRESULT(), name, NULL, ole_docinfo_from_type(), olemethoddata::pTypeInfo, Qnil, Qtrue, TypedData_Get_Struct, and WC2VSTR.
Referenced by Init_win32ole_method().
Definition at line 728 of file win32ole_method.c.
References olemethoddata::index, ole_method_helpcontext(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 698 of file win32ole_method.c.
References olemethoddata::index, ole_method_helpfile(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 668 of file win32ole_method.c.
References olemethoddata::index, ole_method_helpstring(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 266 of file win32ole_method.c.
References cWIN32OLE_TYPE, eWIN32OLERuntimeError, itypeinfo(), olemethod_from_typeinfo(), olemethoddata::pTypeInfo, Qnil, rb_eTypeError, rb_obj_is_kind_of(), rb_raise(), SafeStringValue, and StringValuePtr.
Referenced by Init_win32ole_method().
Definition at line 921 of file win32ole_method.c.
References default_inspect().
Referenced by Init_win32ole_method().
Definition at line 449 of file win32ole_method.c.
References olemethoddata::index, ole_method_invkind(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 468 of file win32ole_method.c.
References olemethoddata::index, ole_method_invoke_kind(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 297 of file win32ole_method.c.
References rb_intern, and rb_ivar_get().
Referenced by Init_win32ole_method().
Definition at line 790 of file win32ole_method.c.
References olemethoddata::index, ole_method_offset_vtbl(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 906 of file win32ole_method.c.
References olemethoddata::index, ole_method_params(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 329 of file win32ole_method.c.
References olemethoddata::index, ole_method_return_type(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 397 of file win32ole_method.c.
References olemethoddata::index, ole_method_return_type_detail(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 363 of file win32ole_method.c.
References olemethoddata::index, ole_method_return_vtype(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 239 of file win32ole_method.c.
References olemethoddata::index, NULL, olemethoddata::pOwnerTypeInfo, olemethoddata::pTypeInfo, and TypedData_Make_Struct.
Referenced by create_win32ole_method(), Init_win32ole_method(), and ole_methods_sub().
Definition at line 853 of file win32ole_method.c.
References olemethoddata::index, ole_method_size_opt_params(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 822 of file win32ole_method.c.
References olemethoddata::index, ole_method_size_params(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
Definition at line 505 of file win32ole_method.c.
References olemethoddata::index, ole_method_visible(), olemethoddata::pTypeInfo, and TypedData_Get_Struct.
Referenced by Init_win32ole_method().
void Init_win32ole_method | ( | void | ) |
Definition at line 926 of file win32ole_method.c.
References cWIN32OLE_METHOD, 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(), rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class(), and rb_define_method().
Referenced by Init_win32ole().
|
static |
Definition at line 736 of file win32ole_method.c.
References HRESULT(), Qnil, and RB_INT2NUM.
Referenced by folemethod_dispid().
|
static |
Definition at line 623 of file win32ole_method.c.
References HRESULT().
Referenced by ole_method_helpcontext(), ole_method_helpfile(), and ole_method_helpstring().
|
static |
Definition at line 513 of file win32ole_method.c.
References HRESULT(), name, NULL, OLE_GET_TYPEATTR, OLE_RELEASE, OLE_RELEASE_TYPEATTR, Qfalse, Qtrue, rb_str_cmp(), and WC2VSTR.
Referenced by folemethod_event().
|
static |
Definition at line 707 of file win32ole_method.c.
References HRESULT(), NULL, ole_method_docinfo_from_type(), Qnil, and RB_INT2FIX.
Referenced by folemethod_helpcontext().
|
static |
Definition at line 676 of file win32ole_method.c.
References HRESULT(), NULL, ole_method_docinfo_from_type(), Qnil, and WC2VSTR.
Referenced by folemethod_helpfile().
|
static |
Definition at line 645 of file win32ole_method.c.
References HRESULT(), NULL, ole_method_docinfo_from_type(), Qnil, and WC2VSTR.
Referenced by folemethod_helpstring().
|
static |
Definition at line 405 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), ole_raise(), and RB_INT2FIX.
Referenced by folemethod_invkind(), and ole_method_invoke_kind().
|
static |
Definition at line 419 of file win32ole_method.c.
References ole_method_invkind(), RB_FIX2INT, and rb_str_new2.
Referenced by folemethod_invoke_kind().
|
static |
Definition at line 767 of file win32ole_method.c.
References HRESULT(), Qnil, and RB_INT2FIX.
Referenced by folemethod_offset_vtbl().
|
static |
Definition at line 861 of file win32ole_method.c.
References ALLOCA_N, create_win32ole_param(), HRESULT(), len, rb_ary_new(), rb_ary_push(), and WC2VSTR.
Referenced by folemethod_params().
|
static |
Definition at line 303 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), ole_raise(), ole_typedesc2val(), and Qnil.
Referenced by folemethod_return_type().
|
static |
Definition at line 371 of file win32ole_method.c.
References HRESULT(), ole_typedesc2val(), and rb_ary_new().
Referenced by folemethod_return_type_detail().
|
static |
Definition at line 337 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), ole_raise(), and RB_INT2FIX.
Referenced by folemethod_return_vtype().
|
static |
Definition at line 830 of file win32ole_method.c.
References HRESULT(), Qnil, and RB_INT2FIX.
Referenced by folemethod_size_opt_params().
|
static |
Definition at line 798 of file win32ole_method.c.
References HRESULT(), Qnil, and RB_INT2FIX.
Referenced by folemethod_size_params().
|
static |
Definition at line 75 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), NULL, OLE_GET_TYPEATTR, ole_raise(), OLE_RELEASE_TYPEATTR, olemethod_set_member(), Qnil, strcasecmp, StringValuePtr, and WC2VSTR.
Referenced by olemethod_from_typeinfo().
|
static |
Definition at line 476 of file win32ole_method.c.
References HRESULT(), Qfalse, and Qtrue.
Referenced by folemethod_visible().
VALUE ole_methods_from_typeinfo | ( | ITypeInfo * | pTypeInfo, |
int | mask | ||
) |
Definition at line 112 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), OLE_GET_TYPEATTR, ole_methods_sub(), ole_raise(), OLE_RELEASE, OLE_RELEASE_TYPEATTR, and rb_ary_new().
Referenced by foletype_methods(), and ole_methods().
|
static |
Definition at line 172 of file win32ole_method.c.
References cWIN32OLE_METHOD, eWIN32OLERuntimeError, folemethod_s_allocate(), HRESULT(), NULL, OLE_GET_TYPEATTR, ole_raise(), OLE_RELEASE_TYPEATTR, olemethod_set_member(), rb_ary_push(), and WC2VSTR.
Referenced by ole_methods_from_typeinfo().
struct olemethoddata* olemethod_data_get_struct | ( | VALUE | obj | ) |
Definition at line 67 of file win32ole_method.c.
References TypedData_Get_Struct.
Referenced by oleparam_ole_param().
|
static |
Definition at line 52 of file win32ole_method.c.
References free(), OLE_FREE, olemethoddata::pOwnerTypeInfo, and olemethoddata::pTypeInfo.
Definition at line 141 of file win32ole_method.c.
References eWIN32OLERuntimeError, HRESULT(), OLE_GET_TYPEATTR, ole_method_sub(), ole_raise(), OLE_RELEASE, OLE_RELEASE_TYPEATTR, and Qnil.
Referenced by create_win32ole_method(), and folemethod_initialize().
|
static |
Definition at line 225 of file win32ole_method.c.
References olemethoddata::index, OLE_ADDREF, olemethoddata::pOwnerTypeInfo, olemethoddata::pTypeInfo, rb_intern, rb_ivar_set(), and TypedData_Get_Struct.
Referenced by ole_method_sub(), and ole_methods_sub().
|
static |
Definition at line 61 of file win32ole_method.c.
|
static |
Definition at line 45 of file win32ole_method.c.