| In: |
win32ole/win32ole.c
|
| Parent: | Object |
Returns dispatch ID.
/*
* WIN32OLE_METHOD#dispid
* ----
* Returns dispatch ID.
*/
static VALUE
folemethod_dispid(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_dispid(pmethod->pTypeInfo, pmethod->index);
}
WIN32OLE_METHOD#event?
Returns true if the method is event.
/*
* WIN32OLE_METHOD#event?
* ----
* Returns true if the method is event.
*/
static VALUE
folemethod_event(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
if (!pmethod->pOwnerTypeInfo)
return Qfalse;
return ole_method_event(pmethod->pOwnerTypeInfo,
pmethod->index,
rb_ivar_get(self, rb_intern("name")));
}
Returns help context.
/*
* WIN32OLE_METHOD#helpcontext
* -----
* Returns help context.
*/
static VALUE
folemethod_helpcontext(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_helpcontext(pmethod->pTypeInfo, pmethod->index);
}
Returns help file.
/*
* WIN32OLE_METHOD#helpfile
* ---
* Returns help file.
*/
static VALUE
folemethod_helpfile(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_helpfile(pmethod->pTypeInfo, pmethod->index);
}
WIN32OLE_MTHOD#invkind
Returns invkind.
/*
* WIN32OLE_MTHOD#invkind
* ----
* Returns invkind.
*/
static VALUE
folemethod_invkind(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_invkind(pmethod->pTypeInfo, pmethod->index);
}
Returns invoke kind string.
/*
* WIN32OLE_METHOD#invoke_kind
* ----
* Returns invoke kind string.
*/
static VALUE
folemethod_invoke_kind(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_invoke_kind(pmethod->pTypeInfo, pmethod->index);
}
Returns the name of the method.
/*
* WIN32OLE_METHOD#name
* ----
* Returns the name of the method.
*/
static VALUE
folemethod_name(self)
VALUE self;
{
return rb_ivar_get(self, rb_intern("name"));
}
Returns the offset ov VTBL.
/*
* WIN32OLE_METHOD#offset_vtbl
* ----
* Returns the offset ov VTBL.
*/
static VALUE
folemethod_offset_vtbl(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_offset_vtbl(pmethod->pTypeInfo, pmethod->index);
}
returns array of WIN32OLE_PARAM object corresponding with method parameters.
/*
* WIN32OLE_METHOD#params
* ----
* returns array of WIN32OLE_PARAM object corresponding with method parameters.
*/
static VALUE
folemethod_params(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_params(pmethod->pTypeInfo, pmethod->index);
}
Returns string of return value type of method.
/*
* WIN32OLE_METHOD#return_type
* ----
* Returns string of return value type of method.
*/
static VALUE
folemethod_return_type(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_return_type(pmethod->pTypeInfo, pmethod->index);
}
WIN32OLE_METHOD#return_type_detail
Returns detail information of return value type of method. The information is array.
/*
* WIN32OLE_METHOD#return_type_detail
* -----
* Returns detail information of return value type of method.
* The information is array.
*/
static VALUE
folemethod_return_type_detail(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_return_type_detail(pmethod->pTypeInfo, pmethod->index);
}
Returns number of return value type of method.
/*
* WIN32OLE_METHOD#return_vtype
* ----
* Returns number of return value type of method.
*/
static VALUE
folemethod_return_vtype(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_return_vtype(pmethod->pTypeInfo, pmethod->index);
}
Returns the size of arguments.
/*
* WIN32OLE_METHOD#size_params
* ----
* Returns the size of arguments.
*/
static VALUE
folemethod_size_params(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_size_params(pmethod->pTypeInfo, pmethod->index);
}
WIN32OLE_METHOD#visible?
Returns true if the method is public.
/*
* WIN32OLE_METHOD#visible?
* ----
* Returns true if the method is public.
*/
static VALUE
folemethod_visible(self)
VALUE self;
{
struct olemethoddata *pmethod;
Data_Get_Struct(self, struct olemethoddata, pmethod);
return ole_method_visible(pmethod->pTypeInfo, pmethod->index);
}