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

c++ - list<myClass<int> * > sort -

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

java - why am i getting a "cannot resolve method" error on getApplication? -