With the H1 detector at the ep collider HERA, D* meson production cross sections have been measured in deep inelastic scattering with four-momentum transfers Q^2>2 GeV2 and in photoproduction at energies around W(gamma p)~ 88 GeV and 194 GeV. Next-to-Leading Order QCD calculations are found to describe the differential cross sections within theoretical and experimental uncertainties. Using these calculations, the NLO gluon momentum distribution in the proton, x_g g(x_g), has been extracted in the momentum fraction range 7.5x10^{-4}< x_g <4x10^{-2} at average scales mu^2 =25 to 50 GeV2. The gluon momentum fraction x_g has been obtained from the measured kinematics of the scattered electron and the D* meson in the final state. The results compare well with the gluon distribution obtained from the analysis of scaling violations of the proton structure function F_2.
Inclusive D* production is measured in deep-inelastic ep scattering at HERA with the H1 detector. In addition, the production of dijets in events with a D* meson is investigated. The analysis covers values of photon virtuality 2< Q^2 <=100 GeV^2 and of inelasticity 0.05<= y <= 0.7. Differential cross sections are measured as a function of Q^2 and x and of various D* meson and jet observables. Within the experimental and theoretical uncertainties all measured cross sections are found to be adequately described by next-to-leading order (NLO) QCD calculations, based on the photon-gluon fusion process and DGLAP evolution, without the need for an additional resolved component of the photon beyond what is included at NLO. A reasonable description of the data is also achieved by a prediction based on the CCFM evolution of partons involving the k_T-unintegrated gluon distribution of the proton.