| In: |
win32ole/win32ole.c
|
| Parent: | Object |
Returns default value. If the default value does not exist, this method returns nil.
/*
* WIN32OLE_PARAM#default
* ----
* Returns default value. If the default value does not exist,
* this method returns nil.
*/
static VALUE foleparam_default(self)
VALUE self;
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
return ole_param_default(pparam->pTypeInfo, pparam->method_index,
pparam->index);
}
WIN32OLE_PARAM#input?
Returns true if the parameter is input.
/*
* WIN32OLE_PARAM#input?
* ----
* Returns true if the parameter is input.
*/
static VALUE foleparam_input(self)
VALUE self;
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FIN);
}
Returns name.
/*
* WIN32OLE_PARAM#name
* ----
* Returns name.
*/
static VALUE
foleparam_name(self)
VALUE self;
{
return rb_ivar_get(self, rb_intern("name"));
}
WIN32OLE_PARAM#optional?
Returns true if argument is output.
/*
* WIN32OLE_PARAM#optional?
* -----
* Returns true if argument is output.
*/
static VALUE foleparam_optional(self)
VALUE self;
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FOPT);
}
WIN32OLE#output?
Returns true if argument is output.
/*
* WIN32OLE#output?
* ----
* Returns true if argument is output.
*/
static VALUE foleparam_output(self)
VALUE self;
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FOUT);
}