A generalized Schrodinger equation containing correction terms to classical kinetic energy, has been derived in the complex vector space by considering an extended particle structure in stochastic electrodynamics with spin. The correction terms are obtained by considering the internal complex structure of the particle which is a consequence of stochastic average of particle oscillations in the zeropoint field. Hence, the generalised Schrodinger equation may be called stochastic Schrodinger equation. It is found that the second order correction terms are similar to corresponding relativistic corrections. When higher order correction terms are neglected, the stochastic Schrodinger equation reduces to normal Schrodinger equation. It is found that the Schrodinger equation contains an internal structure in disguise and that can be revealed in the form of internal kinetic energy. The internal kinetic energy is found to be equal to the quantum potential obtained in the Madelung fluid theory or Bohm statistical theory. In the rest frame of the particle, the stochastic Schrodinger equation reduces to a Dirac type equation and its Lorentz boost gives the Dirac equation. Finally, the relativistic Klein-Gordon equation is derived by squaring the stochastic Schrodinger equation. The theory elucidates a logical understanding of classical approach to quantum mechanical foundations.