I have a little problem with an application I've making.

I need to let login on windows ( only for one user ) and only between certain hours, for example from 17:00 to 22:00, or maybe block the rest of hours, but I can't find any import or using that let me make this.

I've only found something trought VBScript, but would like to make all with C#.

Thanks a lot