We study at first the solutions of a Schrodinger type problem relative to t
he subelliptic p-Laplacian: we prove, for potentials that are in the Kato s
pace, an Harnack inequality on enough small intrinsic balls; the continuity
of the solutions to the homogeneous Dirichlet problem follows from some es
timates in the proof of the Harnack inequality. In the second part of the p
aper we study a relaxed Dirichlet problem for the subelliptic p-Laplacian a
nd we prove a Wiener type criterion for the regularity of a point (with res
pect to our problem).