Questions tagged [windows-10-desktop]

the tag windows-10-desktop is for questions concerning application development for the Windows 10 Desktop. Windows 10 Desktop development uses the Win32 API and provides a user interface similar to a traditional Windows UI that supports and may require the use of a keyboard and mouse. Along with this tag should be a tag indicating the language being used and the platform such as .NET. This tag is not used for posts concerning WinRT application development.

Windows 10 comes in three main flavors: Windows 10 Desktop, Windows 10 Mobile, and Windows 10 IoT. Development can be done in a wide variety of languages with several different target processors as well as the different target versions of Windows 10.

The Windows Desktop, Win32, uses the Windows 10 version of the Win32 API which contains functionality that is unavailable in the WinRT in order provide the security of a protected environment for WinRT. The most common processor target is x86 or x64 CPUs.

See the discussion and links in How to: Use Existing C++ Code in a Universal Windows Platform App.

The Windows Runtime, WinRT, with Universal Windows Platform applications allows for a code once, compile many for specific target. A UWP application can be built to target one of several different processors (x86, x64, ARM) as well as any of the versions of Windows 10 (Windows 10 Desktop, Windows 10 Mobile, and Windows 10 IoT).

367 questions
7
votes
4 answers

IAsyncOperation await in Windows Service: "Type is defined in an assembly that is not referenced..."

I have a Windows Service (created using this tutorial). And I am trying to run an IAsyncOperation: var uri= new Uri(@"uri/to/second/app"); var options = new LauncherOptions { TargetApplicationPackageFamilyName = "second-app-guid" }; var results =…
7
votes
1 answer

How to Bind manually to a BlueTooth Low Energy Device in a WinForm using C#?

This question is mostly answered by: Windows UWP connect to BLE device after discovery I am writing a custom service and testing,for now, using a C#.NET WinForm on Windows 10 to connect to a Bluetooth Low Energy (BLE) device. I am using Framework…
7
votes
1 answer

fsevents (pulled in by chokidar) in npm shrinkwrap causes build to fail on Windows

OSX only fsevents is listed in the npm shrinkwrap because it's pulled in by chokidar. Our production is Linux based and it didn't cause any trouble there, obviously OSX developers are fine too, but it broke npm install on my Win x64 environment. How…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
6
votes
0 answers

Handle/Prevent a non UWP Win32 application from being suspended in Windows 10

I have a legacy Win32 application written in C++ that runs on the system continuously to monitor system health related parameters. Recently, I started facing an issue with the application getting suspended and becoming unresponsive thereafter on…
iqstatic
  • 2,322
  • 3
  • 21
  • 39
6
votes
4 answers

Local user account created with Powershell is NOT shown in settings "Family & Other people"

I am working on Windows 10 Assigned Access for Desktop for version 1607. Mission: I need to get Assigned Access to work with Powershell. Steps done: I create a new LocalUser account with New-LocalUser and I enable the account with Enable-LocalUser.…
6
votes
3 answers

Error in Windows Software Development Kit (SDK) stand alone Installation

While I want to write an app for Windows 10 IoT on Raspberry Pi 3 B I need to install Visual Studio 2015 Community with Windows SDK on a Windows 10 PC. I already have a Windows 10 with Visual Studio 2015 installed and downloaded Windows SDK 10 stand…
Heydar
  • 86
  • 1
  • 5
6
votes
2 answers

Activation of the Windows Store app ... failed with error 'The app didn't start'

ISSUE Unable to start any UWP app (blank app, UWP samples) in Release/x86. However, Debug/x86, Debug/x64, Release/x64 are OK. RELATED Build -> Configuration Manager New... Copy Settings from Debug Same error ERROR Visual Studio Output Symbols for…
6
votes
2 answers

Windows App Certification Kit hangs

I have developed windows 10 App and uploaded that to windows store. However, I wanted to apply Windows Certification App Kit. The testing hangs during these two stages; Direct3D trim after suspend In progress... UTF-8 file encoding In…
5
votes
4 answers

The local machine's clock may be out of sync with the server time by more than five minutes

While configuring VSTS agent locally through command prompt with admin privileges, i've encountered the error below The local machine's clock may be out of sync with the server time by more than five minutes. Please sync your clock with your…
5
votes
2 answers

Bash on Windows 10, no loop devices

I've just tried Bash on my Windows 10 PC, and it works fine. However, I found that there is no such thing as loop devices by ls /dev/, and modprobe loop gives an error output. Does it mean this Bash doesn't support loop devices at all or is there a…
AsyncCode
  • 81
  • 1
  • 2
4
votes
2 answers

WinUI3/Desktop/C++: Can't compile winrt::resume_foreground(Microsoft::System::DispatcherQueue const& dispatcher)

I want to use: co_await winrt::resume_foreground(window.DispatcherQueue()); (Type of "window" is: "winrt::Microsoft::UI::Xaml::Window") But I cannot compile it because winrt::resume_foreground(Microsoft::System::DispatcherQueue const& dispatcher) is…
Markus
  • 51
  • 6
4
votes
1 answer

Bluetooth Low Energy (BLE) API for C# .NET - Desktop application Windows 10

I'm trying to write a desktop application to access a Bluetooth Low Energy (BLE) device. My target platform in Windows 10, I'm using Visual Studio Community 2015, .NET 4.6.1. There doesn't seem to be API included for Accessing BLE devices. I found…
Yabbie
  • 491
  • 1
  • 4
  • 16
4
votes
1 answer

Why is app icon missing for toast notifications in action center on desktop?

I'm developing an app that uses toast notifications to notify the user. These notifications are raised when the app is running in the background and go to the notification center. All is well, but on desktop the app icon is missing for the…
4
votes
1 answer

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

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…
tbala
  • 43
  • 3
  • 9
4
votes
1 answer

How to write different code for windows and windows phone apps in windows 10 apps

I created a new windows 10 app, In solution file common main page is created for windows and windows phone, now i want display button only in windows app, not in windows phone app, is it possible please help me..
1
2
3
24 25