Ruby  2.4.2p198(2017-09-14revision59899)
Functions | Variables
win32ole_method.c File Reference
#include "win32ole.h"
Include dependency graph for win32ole_method.c:

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 olemethoddataolemethod_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
 

Function Documentation

◆ create_win32ole_method()

VALUE create_win32ole_method ( ITypeInfo *  pTypeInfo,
VALUE  name 
)

Definition at line 210 of file win32ole_method.c.

References cWIN32OLE_METHOD, folemethod_s_allocate(), and olemethod_from_typeinfo().

Referenced by fole_method_help().

◆ folemethod_dispid()

static VALUE folemethod_dispid ( VALUE  self)
static

◆ folemethod_event()

static VALUE folemethod_event ( VALUE  self)
static

◆ folemethod_event_interface()

static VALUE folemethod_event_interface ( VALUE  self)
static

◆ folemethod_helpcontext()

static VALUE folemethod_helpcontext ( VALUE  self)
static

◆ folemethod_helpfile()

static VALUE folemethod_helpfile ( VALUE  self)
static

◆ folemethod_helpstring()

static VALUE folemethod_helpstring ( VALUE  self)
static

◆ folemethod_initialize()

static VALUE folemethod_initialize ( VALUE  self,
VALUE  oletype,
VALUE  method 
)
static

◆ folemethod_inspect()

static VALUE folemethod_inspect ( VALUE  self)
static

Definition at line 921 of file win32ole_method.c.

References default_inspect().

Referenced by Init_win32ole_method().

◆ folemethod_invkind()

static VALUE folemethod_invkind ( VALUE  self)
static

◆ folemethod_invoke_kind()

static VALUE folemethod_invoke_kind ( VALUE  self)
static

◆ folemethod_name()

static VALUE folemethod_name ( VALUE  self)
static

Definition at line 297 of file win32ole_method.c.

References rb_intern, and rb_ivar_get().

Referenced by Init_win32ole_method().

◆ folemethod_offset_vtbl()

static VALUE folemethod_offset_vtbl ( VALUE  self)
static

◆ folemethod_params()

static VALUE folemethod_params ( VALUE  self)
static

◆ folemethod_return_type()

static VALUE folemethod_return_type ( VALUE  self)
static

◆ folemethod_return_type_detail()

static VALUE folemethod_return_type_detail ( VALUE  self)
static

◆ folemethod_return_vtype()

static VALUE folemethod_return_vtype ( VALUE  self)
static

◆ folemethod_s_allocate()

VALUE folemethod_s_allocate ( VALUE  klass)

◆ folemethod_size_opt_params()

static VALUE folemethod_size_opt_params ( VALUE  self)
static

◆ folemethod_size_params()

static VALUE folemethod_size_params ( VALUE  self)
static

◆ folemethod_visible()

static VALUE folemethod_visible ( VALUE  self)
static

◆ Init_win32ole_method()

void Init_win32ole_method ( void  )

◆ ole_method_dispid()

static VALUE ole_method_dispid ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
static

Definition at line 736 of file win32ole_method.c.

References HRESULT(), Qnil, and RB_INT2NUM.

Referenced by folemethod_dispid().

◆ ole_method_docinfo_from_type()

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

Definition at line 623 of file win32ole_method.c.

References HRESULT().

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

◆ ole_method_event()

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

◆ ole_method_helpcontext()

static VALUE ole_method_helpcontext ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
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().

◆ ole_method_helpfile()

static VALUE ole_method_helpfile ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
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().

◆ ole_method_helpstring()

static VALUE ole_method_helpstring ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
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().

◆ ole_method_invkind()

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

◆ ole_method_invoke_kind()

static VALUE ole_method_invoke_kind ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
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().

◆ ole_method_offset_vtbl()

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

Definition at line 767 of file win32ole_method.c.

References HRESULT(), Qnil, and RB_INT2FIX.

Referenced by folemethod_offset_vtbl().

◆ ole_method_params()

static VALUE ole_method_params ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
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().

◆ ole_method_return_type()

static VALUE ole_method_return_type ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
static

Definition at line 303 of file win32ole_method.c.

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

Referenced by folemethod_return_type().

◆ ole_method_return_type_detail()

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

Definition at line 371 of file win32ole_method.c.

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

Referenced by folemethod_return_type_detail().

◆ ole_method_return_vtype()

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

Definition at line 337 of file win32ole_method.c.

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

Referenced by folemethod_return_vtype().

◆ ole_method_size_opt_params()

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

Definition at line 830 of file win32ole_method.c.

References HRESULT(), Qnil, and RB_INT2FIX.

Referenced by folemethod_size_opt_params().

◆ ole_method_size_params()

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

Definition at line 798 of file win32ole_method.c.

References HRESULT(), Qnil, and RB_INT2FIX.

Referenced by folemethod_size_params().

◆ ole_method_sub()

static VALUE ole_method_sub ( VALUE  self,
ITypeInfo *  pOwnerTypeInfo,
ITypeInfo *  pTypeInfo,
VALUE  name 
)
static

◆ ole_method_visible()

static VALUE ole_method_visible ( ITypeInfo *  pTypeInfo,
UINT  method_index 
)
static

Definition at line 476 of file win32ole_method.c.

References HRESULT(), Qfalse, and Qtrue.

Referenced by folemethod_visible().

◆ ole_methods_from_typeinfo()

VALUE ole_methods_from_typeinfo ( ITypeInfo *  pTypeInfo,
int  mask 
)

◆ ole_methods_sub()

static VALUE ole_methods_sub ( ITypeInfo *  pOwnerTypeInfo,
ITypeInfo *  pTypeInfo,
VALUE  methods,
int  mask 
)
static

◆ olemethod_data_get_struct()

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().

◆ olemethod_free()

static void olemethod_free ( void *  ptr)
static

◆ olemethod_from_typeinfo()

static VALUE olemethod_from_typeinfo ( VALUE  self,
ITypeInfo *  pTypeInfo,
VALUE  name 
)
static

◆ olemethod_set_member()

static VALUE olemethod_set_member ( VALUE  self,
ITypeInfo *  pTypeInfo,
ITypeInfo *  pOwnerTypeInfo,
int  index,
VALUE  name 
)
static

◆ olemethod_size()

static size_t olemethod_size ( const void *  ptr)
static

Definition at line 61 of file win32ole_method.c.

Variable Documentation

◆ olemethod_datatype

const rb_data_type_t olemethod_datatype
static
Initial value:
= {
"win32ole_method",
}
#define RUBY_TYPED_FREE_IMMEDIATELY
Definition: ruby.h:1145
static size_t olemethod_size(const void *ptr)
static void olemethod_free(void *ptr)
#define NULL
Definition: _sdbm.c:102

Definition at line 45 of file win32ole_method.c.