Let $X$ be a ringed space, and $F$ be a sheaf of abelian groups on $X$. Then $H^i(X, F)$ is the right derived functors of the global sections functor. However, there are at least three different global sections functors that we can take derived functors of:
- Forget the ringed space structure and just consider $X$ as a topological space and $F$ is a sheaf of abelian groups. Then, the global sections functor is $Ab(X) \rightarrow Ab$.
- If $F$ has an $O_X$-module structure, then we have another global sections functor $O_X-mod \rightarrow O_X(X)-mod$. That is: the category of sheaves $O_X$-modules to the category of $O_X(X)$-modules
- We can also restrict (2) to the case where $F$ is quasicoherent. That is: we have a functor $QCoh(X) \rightarrow O_X(X)-mod$.
My question is: what is the relationship between them? Injective objects in the category of quasicoherent sheaves is not the same as injective objects in the category of sheaves of $O_X$-modules, see here for an example.
Hartshorne's proposition III.2.6 states that the derived functors $O_X-mod$ to $Ab$ coincide with the cohomology functor. Does this mean that (2) and (1) result in the same cohomology groups, after applying the forgetful functor?
If $X$ is an affine scheme, then the global sections functor is exact. This would imply that the $H^i(X, F)$ for $i \geq 1$ is 0 for the third global sections functor. What about the first and second global sections functors?