This paper reports on the use of a new technique to investigate the magnetic properties of thin films, multilayers and artificial structures, the X-ray resonant magnetic scattering at small values of the scattering vector. It can be used either by registering the reflectivity pattern or in a diffraction mode. In comparison with magneto-optical Kerr effect or neutron scattering, it offers an atomic selectivity due to the resonant excitation of a core electron, and even an electronic shell one. Examples are presented mainly in the soft X-range allowing to probe the 3d band of transition metals. They demonstrate the promising possibilities of the method to measure the magnetic moments carried by each of the atomic components in complex systems, as well as their distribution through thin layers, with an atomic resolution.