Apply the Hamming window to a sinusoidal signal
The window isn't "sampled" as it isn't a signal, really.  It's a vector that you construct, and it doesn't matter how you construct it.  The window vector just has to be the same length as your signal vector.