many thanks Furtbichler ,
what about this :
Code:
struct image_resource_directory_entry
{
union
{
struct
{
unsigned long name_offset : 31;
unsigned long name_is_string : 1;
};
unsigned long name;
unsigned short id;
};
union
{
unsigned long offset_to_data;
struct
{
unsigned long offset_to_directory : 31;
unsigned long data_is_directory : 1;
};
};
};