Тут очень подробно: http://autogear.ru/enc/all/235/