Ok. I know now that I can differ within the shader using:

vecLightDir[0].w <= 0

I'd like calculate in the vertex shader if the vertex in currently in the spotlight cone.

Can someone help me with that?

I think first I have to calculate the angle between the light ray and the vertex, right?