my problem is following:
I am currently opening up Microsoft Edge through .NET code to be able to read PFD-Files. But I only want to open Edge with a PDF-File, if it's not already opened.
The problem with Edge is, that the window is hosted by the ApplicationFrameHost, which also hosts other Windows Apps like Minesweaper from the store. So when I am opening e.g. Minesweaper after opening my pdf file with Edge, the current ApplicationFrameHost MainWindowTitle is "Minesweaper".
But if I start my code, it should check at the beginning if Edge is already opened, but I can't check it through the ApplicationFrameHost MainWindowTitle, because it is from the current active ApplicationFrameHost, which is "Minesweaper", because I it was the last active ApplicationFrameHost window.
I also can't check if the MicrosoftEdgeCP process is running, because it is always running, even if I close Microsoft Edge.
Do you have any solutions for my problem?