Search code examples
c#windows-7parental-control

C# Samples for Windows Parental Controls API


Can anyone point me to some C# samples for the Windows Parental Controls API. I want to add some functionality that will allow a user to set the duration their child can be logged on in a day. I want to do this as a F/OSS app so that others can benefit from this too.

Cheers.


Solution

  • It seems like there is no way to achieve this using the MS Windows SDK provided API and no c# samples to use as a reference. I tried this for Windows 7 and the only way to make this work is to set the blocked hours the first time someone logs in to the machine each day.