How to run desktop shortcut using window service background worker C# -
i have application shortcut in desktop. need run shortcut every 1 hour using windows service in c#. possible?
you'd rather not start external processes locking workstation. can lock workstation calling: (not tested)
[dllimport("user32.dll", setlasterror = true)] static extern bool lockworkstation();
call with:
lockworkstation();
source: http://www.pinvoke.net/default.aspx/user32.lockworkstation
Comments
Post a Comment