The WinAPI function GetForegroundWindow() returns NULL if a user has their desktop locked (i.e. they\'ve pressed Windows Key + L).
GetForegroundWindow()
NULL
Is there