Unknown WinAPI Function / Steam / Xfire
A lot of players are getting kicked for this violation. This is caused by the steam overlay. The overlay hooks d3d functions which trigger this violation. You can stop the steam overlay running by doing the following
Open steam
Click File -> Settings
Select the In-Game tab
Uncheck Enable Steam Community In-Game
Xfire also causes problems with cod4. If you try and switch to a different mod or display mode the video subsystem is re-initalised. Xfire’s hooks cause the Direct x subsystem to crash with the error message
DirectX Error
DirectX(R) encountered an unrecoverable error. Check the DirectX(R) FAQ for possible solutions.
The only solution is to turn xfire off.
2ci-