Аннотация:The study deals with the ruin problem when an insurance company invests its
reserve into a risky asset with the price dynamics given by a geometric L´evy process. Considering a rather general functional of the capital reserve before the ruin we obtain for it apartial integro-differential equation understood in a viscosity sense and prove a result on the uniqueness of solution for a boundary value problem.