In this paper, we generalize the categorifical construction of a quantum group and its canonical basis introduced by Lusztig (cite{Lusztig,Lusztig2}) to the generic form of the whole Ringel-Hall algebra. We clarify the explicit relation between the Green formula in cite{Green} and the restriction functor in cite{Lusztig2}. By a geometric way to prove the Green formula, we show that the Hopf structure of a Ringel-Hall algebra can be categorified under Lusztigs framework.