Retrieves the value of the specified field. Both static and non-static members of these functions can be passed a field block.
__int32 __cdecl Field_GetValue(HObject *obj, struct fieldblock * field);
__int64 __cdecl Field_GetValue64(HObject *obj, struct fieldblock * field);
float __cdecl Field_GetFloat(HObject *obj, struct fieldblock * field);
double __cdecl Field_GetDouble(HObject *obj, struct fieldblock * field);
#define Field_GetBoolean(obj,field) ((bool_t) Field_GetValue(obj,field))
#define Field_GetByte(obj,field) ((signed char) Field_GetValue(obj,field))
#define Field_GetChar(obj,field) ((unicode) Field_GetValue(obj,field))
#define Field_GetShort(obj,field) ((short) Field_GetValue(obj,field))
#define Field_GetInt(obj,field) Field_GetValue(obj,field)
#define Field_GetLong(obj,field) Field_GetValue64(obj,field)
#define Field_GetObject(obj,field) ((HObject*) Field_GetValue(obj,field))
#define Field_GetFloat(obj,field) Field_GetFloat(obj,field)
#define Field_GetDouble(obj,field) Field_GetDouble(obj,field)
Returns a value of a type determined by the function.
obj | The address of the object that the field belongs to. Must be NULL for static fields, non-NULL for non-static fields. |
field | The field block of the field. |
SignalError if the obj parameter is not NULL for static fields.
NullPointerException if the obj parameter is NULL for non-static fields.
These functions operate on static or non-static fields, including both of the component object model (COM) MapsTo fields and the fields in Java objects.