There are two things I would like to do.
--app
allows only one site to startBased on the assumption above, I would like to know how to determine if you have access to the same site (app) if you have an edge process that has already started.
c# microsoft-edge
It feels like XY problem.Isn't there something you really want to do or have to limit, and the way you come up with it is to ask the question?
For example, if you simply think about it, why don't the Edge Launcher program created with C# do it within your responsibilities instead of getting any information or requesting it to work from
Microsoft Edge
?
C#.
C# should launch the Microsoft Edge with the --app option in its main process and monitor it permanently until the launched?
Since it's a self-launched program, you'll know process information such as PID, and you should wait for the process to end (such as a forced interruption) before ending the Edge launcher program
created with C#.
However, you will not be able to manually launch the equivalent Microsoft Edge using the --app option without using the
C# Edge launcher program
, and you will not be able to access it using Chrome or Firefox.
If you really want to impose strong restrictions, you might want to ban access to the site on individual PCs and networks from using general-purpose browsers, such as firewalls/virus checkers/proxy servers/gateway servers, and access only special programs using controls such as Microsoft Edge WebView 2.
Such a dedicated program would make it easier to implement restrictions such as having only one boot/access and some unique behavior than a generic program that you can't change yourself.
© 2024 OneMinuteCode. All rights reserved.