windows-10-desktop

WPF Desktop App, Windows 10 Notification Toast 2016 (UWP Community Toolkit)

蹲街弑〆低调 提交于 2019-12-20 23:24:13
问题 I'm trying to display Windows 10 Toasts with my WPF C# Desktop application . Sadly the API and general support concerning Windows 10 notifications in non-UWP or Store apps seems pretty limited and chaotic. Lately the UWP Community Toolkit was published, which seems to try and make things easier for us. There's also this Store app, Notifications Visualizer, which helps in making Toasts like this: I went on and tried to generated the Toast using C# and the API provided by the UWP Community

Why does my application requires admin priviliges when placed in C:\Program Files on windows 10 but not on windows 7?

随声附和 提交于 2019-12-20 03:16:42
问题 My Java RCP application ( App.exe ) was recently converted from 32-bit to 64-bit . Since it is a 64-bit application i have used NSIS to create an installer which will dump all the required files along with App.exe in C:\Program Files. When the App.exe is run, i am getting a security exception(Access denied) when the application tries to open files (in C:\Program Files) in edit mode to dump the results/logs. When i run App.exe as administrator it works fine. It also works fine in windows 7 64

Screenshot captured using BitBlt in C# results a black image on Windows 10

情到浓时终转凉″ 提交于 2019-12-18 17:28:28
问题 Screenshot captured using BitBlt in c# resulted a black image on Windows 10 . Please help me to resolve this. Screenshot is black image for Chrome (when hardware accelerated mode is on) and IE/Edge windows. Output image is black only for Edge, IE browser windows in Windows 10 and Chrome browser window when hardware accelerated mode is ON. Apart from all other windows including transparent windows screenshots are good. Here is the code: const int Srccopy = 0x00CC0020; var windowRect = new Rect

PowerShell index[0] to the first instance of the string, index[1] to the second instance and so on till finished

↘锁芯ラ 提交于 2019-12-13 04:16:41
问题 For example, replace LINE2 1243 with LINE2 1 because it is on line 1 of test.txt. # Find the line number: $lines = sls "LINE2" test.txt | Select-Object -ExpandProperty LineNumber test.txt: abc LINE2 1243 lmn LINE2 1250 xyz LINE2 1255 Using: gc test.txt | % { $_ -replace "LINE2.*", "LINE2 $lines" } I get: abc LINE2 1 2 3 lmn LINE2 1 2 3 xyz LINE2 1 2 3 How do I supply index[0], and only index[0], to the first instance of the string, index[1] to the second instance and so on till finished.

Azure AD Password Hash Sync, Seamless SSO and 64-bit WebBrowser .NET control not working

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:49:03
问题 I have a .NET 4.5.2 WinForms application with an embedded WebBrowser. The application is built with AnyCPU and "Prefer 32-bit" disabled, running on Windows 10 64-bit. The machine is not domain joined but not Azure AD joined and Azure AD Connect is used to perform Password Hash Sync (this is not my area of expertise). When the webbrowser navigates to a website which should perform a seamless single sign-on (e.g. myapps.microsoft.com), it doesn't work. It simply times out at the "Trying to sign

How to use the IVirtualDesktopManager interface in C++/Win32

流过昼夜 提交于 2019-12-11 07:58:47
问题 I need to search for maximized windows from Win32 (by using EnumWindows ) but I also want to filter for windows which are on the current virtual desktop. On MSDN, I found a page about the IVirtualDesktopManager interface but there seems to be no information on how to use this interface. IVirtualDesktopManager::IsWindowOnCurrentVirtualDesktop(/*args...*/); Throws the following error: Non static member reference must be relative to a specific object VirtualDesktopManager mVirtualDeskManager;

Not to display Pairing pop up mssage during Bluetooth pairing With 32feetnet in Windows 10

∥☆過路亽.° 提交于 2019-12-11 05:00:03
问题 I tried two different approaches to connect to Bluetooth device in windows 10. 1)Developed an application with 32feetnet and tried to connect to Bluetooth device, it is prompting with whether pin is matched or not message box. 2. Created a sample Universal Windows program(UWP) to connect to Bluetooth device, it is prompting with whether pin is matched or not message box. Is there any away to avoid the pin prompting message box. 回答1: EventHandler authHandler = new EventHandler

DesktopAppConverter (DAC) says the expanded image is invalid, when I try to convert my app

拥有回忆 提交于 2019-12-10 10:44:35
问题 I have downloaded the .wim file that matches my Windows version (14393) and gone through the process of setting up the converter. So, I have the converter app running on my machine. When I attempt to run a conversion, I get error message E_EXPANDED_BASEIMG_INVALID. I have tried to get rid of the expanded image by run DAC with the -Cleanup ExpandedImage parameter, but it fails to clear it. Have you managed to replace the expanded image? The files are quite large and I cannot keep adding

WPF Desktop App, Windows 10 Notification Toast 2016 (UWP Community Toolkit)

烈酒焚心 提交于 2019-12-03 07:12:29
I'm trying to display Windows 10 Toasts with my WPF C# Desktop application . Sadly the API and general support concerning Windows 10 notifications in non-UWP or Store apps seems pretty limited and chaotic. Lately the UWP Community Toolkit was published, which seems to try and make things easier for us. There's also this Store app, Notifications Visualizer , which helps in making Toasts like this: I went on and tried to generated the Toast using C# and the API provided by the UWP Community Toolkit. using Microsoft.Toolkit.Uwp.Notifications; ToastContent toastContent = new ToastContent() {

Why does my application requires admin priviliges when placed in C:\\Program Files on windows 10 but not on windows 7?

自古美人都是妖i 提交于 2019-12-02 01:37:26
My Java RCP application ( App.exe ) was recently converted from 32-bit to 64-bit . Since it is a 64-bit application i have used NSIS to create an installer which will dump all the required files along with App.exe in C:\Program Files. When the App.exe is run, i am getting a security exception(Access denied) when the application tries to open files (in C:\Program Files) in edit mode to dump the results/logs. When i run App.exe as administrator it works fine. It also works fine in windows 7 64-bit machine even when run in non-admin mode. Any idea, as what to do to run App.exe in non-admin mode ?