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

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -