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

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

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -