Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement C # to allow services to interact with the desktop

Shulou Source: shulou.com Published: 2022-06-03 15:28:38 11月14日 Update

This article introduces the knowledge of "how to implement C# to allow services to interact with the desktop". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Modify the registry when onstart

[HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ your service name] "Type" = dword:00000010 key value+256

For example, now 00000010 is 16 "256" 272.

16 refined is 00000110.

C # allows services to interact with the desktop: directly manipulating "services" under "management tools" is also possible:

This is the end of the content of "how to implement C# to allow services to interact with the desktop". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Services desktops content more knowledge practicality achievement and then dilemma reality that is tools situations articles times cases registry management tools editing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology NVidia Linux macOS vpn