-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor PowerRename context menu registration to be reusable #1051
Comments
@crutkas Since we currently have an independently working ImageResizer, I'll first work on moving that into PowerToys and I'll take up the context menu code migration after that since the two threads of work are more or less independent. |
For image Resizer, we'd migrate to this item in the future. The FYI was just to make you aware we want to have one system way to hook stuff up if at all possible. |
Just a quick heads-up if we're going to be refactoring this: It is entirely possible to register a COM class in an MSIX package without needing to write an EXE server and calling CoRegisterClassObject(), by using the |
Wonder if this will solve #1197 |
Hi @wjk |
Alright, using COM SurrogateServer instead of ExeServer didn't solve the foreground issue, since
|
@wjk we might be unaware - what are the benefits of using SurrogateServer instead of ExeServer? |
Just the ease in writing the server code, really. In particular, .NET Core doesn't support CoRegisterClassObject(), while it can easily generate an in-proc COM loader. Other than that, I see no differences between the two approaches. Thanks! |
more in terms of MSIX, closing for now |
Other tools such as Image Resizer will need this. We should have a single base for how stuff hooks into the shell. This could be we have 2 libs for .NET and for C++ that other Toys call into but each toy shouldn't have to reimplement this work
FYI: @arjunbalgovind we'd have to migrate work toward this common base once it is online. in short term, mimic how powerrename does stuff for MSIX registration.
The text was updated successfully, but these errors were encountered: