You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bitbox-bridge/src/web.rs
+71
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,77 @@ impl AllowedHosts {
184
184
}
185
185
}
186
186
187
+
// On windows, we use a native system dialog to prompt the user.
188
+
// The browser based prompt does not work as we can't launch a browser from the service (not allowed).
189
+
//
190
+
// We use WTSSendMessage as officially recommended (it recommends WTSSendMessageA, the ANSI-encoded
191
+
// version, but WTSSendMessagW for UTF-16 also works):
192
+
//
193
+
// See https://learn.microsoft.com/en-us/windows/win32/services/interactive-services
194
+
// > You can use the following techniques to interact with the user from a service on all supported versions of Windows:
195
+
// > Display a dialog box in the user's session using the [WTSSendMessage](https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea) function.
0 commit comments