I dont have WoW access atm but got little request to my addon and require help now
I want to find out if given item is used for enchanting or not. I found GetItemFamily but dunno how to work with bitfield, so probably something like
Lua Code:
if (bit.band(GetItemFamily(item), 0x0040) ~= 64) then
dose not have much sense (i found those values here
http://wowprogramming.com/docs/api_types#bitfield)