  We present a theory of superconductivity in presence of a general magnetic
structure in a form suitable for the description of complex magnetic phases
encountered in borocarbides. The theory, complemented with some details of the
band structure and with the magnetic phase diagram, may explain the nearly
reentrant behaviour and the anisotropy of the upper critical field of HoNi2B2C.
The onset of the helical magnetic order depresses superconductivity via the
reduction of the interaction between phonons and electrons caused by the
formation of magnetic Bloch states. At mean field level, no additional
suppression of superconductivity is introduced by the incommensurability of the
helical phase.
