In this paper, we consider the ruin probabilities (caused by oscillation or by a claim) of the classical risk process perturbed by diffusion and the risk process with return on investments. We will prove their twice continuous differentiability and derive the integro-differential equations satisfied by them. We will present the explicit expressions for them when the claims are exponentially distributed. (C) 2001 Elsevier Science B.V. All rights reserved.