Read application history

Hi which C# API allow me to create a little spy application I need to manage my kids so I need to record how long he play Genshi or League of Legend Just capture the the open and close time would be accurate for my case
9 Replies
no >> body
no >> body2y ago
I suppose you need to use API provided by OS you're using. If your son uses Windows, than something like this https://www.pinvoke.net/default.aspx/user32.GetForegroundWindow https://www.pinvoke.net/default.aspx/user32.GetWindowText
Buddy
Buddy2y ago
Why do you have to make one when it already exists? https://www.microsoft.com/en-us/microsoft-365/family-safety
TotechsStrypper
He doesnt even have a Microsoft account He treat Windows is like Chromebook only open games That windows also not official it's active using KMSpico Copies the text of the specified window's title bar ?
Buddy
Buddy2y ago
Eh, you do realize Discord has ToS, right? Talking about piracy or something related to is kind of a no-no
TotechsStrypper
What is a ToS ?
Buddy
Buddy2y ago
Terms of Service
Patrick
Patrick2y ago
@TotechsStrypper you're not going to get help here - use the built in family/child safety functionality in Windows
TotechsStrypper
This require a Microsoft account
Patrick
Patrick2y ago
Sure, low barrier to entry, then.