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

Go to the source code of this file.

Data Structures

struct  oleparamdata
 

Functions

static void oleparam_free (void *ptr)
 
static size_t oleparam_size (const void *ptr)
 
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)
 
VALUE create_win32ole_param (ITypeInfo *pTypeInfo, UINT method_index, UINT index, VALUE name)
 
void Init_win32ole_param (void)
 

Variables

VALUE cWIN32OLE_PARAM
 
static const rb_data_type_t oleparam_datatype
 

Function Documentation

◆ create_win32ole_param()

VALUE create_win32ole_param ( ITypeInfo *  pTypeInfo,
UINT  method_index,
UINT  index,
VALUE  name 
)

◆ foleparam_default()

static VALUE foleparam_default ( VALUE  self)
static

◆ foleparam_initialize()

static VALUE foleparam_initialize ( VALUE  self,
VALUE  olemethod,
VALUE  n 
)
static

◆ foleparam_input()

static VALUE foleparam_input ( VALUE  self)
static

◆ foleparam_inspect()

static VALUE foleparam_inspect ( VALUE  self)
static

◆ foleparam_name()

static VALUE foleparam_name ( VALUE  self)
static

Definition at line 167 of file win32ole_param.c.

References rb_intern, and rb_ivar_get().

Referenced by foleparam_inspect(), and Init_win32ole_param().

◆ foleparam_ole_type()

static VALUE foleparam_ole_type ( VALUE  self)
static

◆ foleparam_ole_type_detail()

static VALUE foleparam_ole_type_detail ( VALUE  self)
static

◆ foleparam_optional()

static VALUE foleparam_optional ( VALUE  self)
static

◆ foleparam_output()

static VALUE foleparam_output ( VALUE  self)
static

◆ foleparam_retval()

static VALUE foleparam_retval ( VALUE  self)
static

◆ foleparam_s_allocate()

static VALUE foleparam_s_allocate ( VALUE  klass)
static

◆ Init_win32ole_param()

void Init_win32ole_param ( void  )

◆ ole_param_default()

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

Definition at line 342 of file win32ole_param.c.

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

Referenced by foleparam_default().

◆ ole_param_flag_mask()

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

Definition at line 241 of file win32ole_param.c.

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

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

◆ ole_param_ole_type()

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

Definition at line 173 of file win32ole_param.c.

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

Referenced by foleparam_ole_type().

◆ ole_param_ole_type_detail()

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

Definition at line 207 of file win32ole_param.c.

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

Referenced by foleparam_ole_type_detail().

◆ oleparam_free()

static void oleparam_free ( void *  ptr)
static

Definition at line 38 of file win32ole_param.c.

References free(), OLE_FREE, and oleparamdata::pTypeInfo.

◆ oleparam_ole_param()

static VALUE oleparam_ole_param ( VALUE  self,
VALUE  olemethod,
int  n 
)
static

◆ oleparam_ole_param_from_index()

static VALUE oleparam_ole_param_from_index ( VALUE  self,
ITypeInfo *  pTypeInfo,
UINT  method_index,
int  param_index 
)
static

◆ oleparam_size()

static size_t oleparam_size ( const void *  ptr)
static

Definition at line 46 of file win32ole_param.c.

Variable Documentation

◆ cWIN32OLE_PARAM

VALUE cWIN32OLE_PARAM

Definition at line 3 of file win32ole_param.c.

Referenced by create_win32ole_param(), and Init_win32ole_param().

◆ oleparam_datatype

const rb_data_type_t oleparam_datatype
static
Initial value:
= {
"win32ole_param",
}
#define RUBY_TYPED_FREE_IMMEDIATELY
Definition: ruby.h:1145
static size_t oleparam_size(const void *ptr)
static void oleparam_free(void *ptr)
#define NULL
Definition: _sdbm.c:102

Definition at line 31 of file win32ole_param.c.