The eminent Muslim scholar Sheikh `AbdelKhaliqHasan Ash-Shareef, a renowned scholar and Da`iyah, states: Wine is impure (najis) even if it was mixed with something else after cooking. Being cooked does not approve wine. It is not valid to be used at all.
However, some people say that if it was boiled well until all its taste and smell have gone, it could be used as vinegar. This opinion is weak and the general opinion of the majority of scholars is that wine cannot be used in cooking or anything. It is haram.