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

python - Setting ctypes.Structure default values -

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

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -