For a quasi-Hopf algebra H, a left H-comodule algebra B and a right H-module coalgebra C we will characterize the category of Doi-Hopf modules ^C M(H)_B in terms of modules. We will also show that for an H-bicomodule algebra A and an H
Nearby in the stack
-bimodule coalgebra
C
the category of generalized Yetter-Drinfeld modules
_A YD(H)^C
is isomorphic to a certain category of Doi-Hopf modules. Using this isomorphism we will transport the properties from the category of Doi-Hopf modules to the category of generalized Yetter-Drinfeld modules.