The transport of energetic charged particles through magnetized plasmas is ubiquitous in interplanetary space and astrophysics, and the important physical quantities are the parallel and perpendicular diffusion coefficients of energetic charged particles. In this paper, the influence of solar wind on particle transport is investigated. Using the focusing equation, we obtain parallel and perpendicular diffusion coefficients, accounting for the solar wind effect. For different conditions, the relative importance of the solar wind effect to diffusion is investigated. It is shown that, when energetic charged particles are close to the Sun, for parallel diffusion, the solar wind effect needs to be taken into account. These results are important for studying energetic charged particle transport processes in the vicinity of the Sun.