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
1
vote
3 answers

Check whether file has read only flag in UWP

I am working on an UWP text editor. I have added desktop extension to it to modify system files and other read only files. The problem I have is there is no reliable way to detect if a file has read-only attribute. FileInfo.IsReadOnly doesn't work…
1
vote
2 answers

Alternative ways of roaming of app settings in uwp

Microsoft docs for unsupported features in windows describes Package State Roaming to be deprecated and will be removed in later versions. Is their any alternative way to sync settings across devices that small developers can use for free??
1
vote
1 answer

How to close main window of uwp programmatically

Unlike wpf, uwp apps can't close their mainpage programatically. Window.Current.Close() fails when executed on mainpage of the app. What is the correct way of closing the mainpage in uwp??
1
vote
1 answer

Understanding base addresses in VirtualAlloc

In my application I'm trying to allocate a large block of memory (approximately 1GB-2GB) through VirtualAlloc on startup that I can then later divide up for use throughout the rest of the application. When in debug mode I want to pass a base…
1
vote
1 answer

Self Signed RSA Certificate export private key parameters exception in .NET Core 3.1 [Windows 10 Pro OS]

I have created a self signed RSA certificate and stored the Private key as .pfx file. Then from my .Net Core 3.1 code i'm trying to instantiate the X509Certificate2 object with the .pfx file. The X509Certificate2 instance is created successfully but…
1
vote
0 answers

How to trigger a BAT file on Shutdown Button Click?

Windows 10's default "Shutdown" option keeps the open apps available on the next startup. So I've been using a BAT file with the simple line shutdown -s -f -t 0. How can I make my shutdown button to trigger this command? Or is it even possible?
oividiosCaeremos
  • 608
  • 1
  • 10
  • 30
1
vote
1 answer

Win32 API CreateWindowW conflicts with Menu Creation

I'm trying to add some application controls into my Windows API code (Note: I am using Visual Studio) I am experiencing a problem where I try to add in a CreateWindowW() function that generates text and a field ("static" and "edit") and a menu at…
Peter
  • 373
  • 3
  • 10
1
vote
0 answers

Is there a way to inspect what "ntoskrnl" calls/executes in Windows 10?

[EDIT]: This issue has been solved by a recent Windows update. Good day folks, I have an issue and hope you can help me out with it. Here it goes: After 5 minutes my computer enters away mode and "ntoskrnl.exe" shown as "System" in Task Manager…
1
vote
0 answers

Make Delphi application start on a specific desktop

Is there a way to force a Delphi application to always start on a particular desktop in Windows 10? I'm using multiple desktops, and sometimes switch between them when waiting for the application to compile. This has the effect that when it's…
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
1 answer

AppContainer Incompatibility in Protected Mode - Adobe Acrobat Reader

After the latest Windows 10 update KB4524098 and KB4525237 Adobe Reader suddenly doesn't start properly anymore, and says: Adobe Acrobad Reader cannot open inside an AppContainer in Protected Mode due to an incompatibility with your system…
gloschtla
  • 41
  • 3
  • 10
1
vote
1 answer

Is installing unsigned UWP apps in Developer Mode in Windows 10 possible?

According to this and this, it should be possilbe, whereas according to Microsoft and the small description under the option Developer Mode ("Install any signed app and use advanced development features") and as I am personally experiencing, it is…
1
vote
1 answer

C/C++ DLL failing after .NET framework upgrade from 3.5 to 4.6

I have application called as Agent which have 2 projects : C# project C/C++ DLL Whole application was running fine with .NET 3.5 which we use to build with vs2008. Due to some requirement we upgraded the .Net Framework to 4.6 and vs 2019 to build…
cjoshi
  • 31
  • 6
1
vote
1 answer

No file base when copying a file in solution explorer

It used to be, that one could copy a file in solution explorer, and when looking at the changes in the commit window, it compared to the file it was copied from by default. This worked flawlessly and was very useful. For a while now, this hasnt been…
1
vote
1 answer

Couldn't set up mod_wsgi for my Apache and Django

Need guides to set up mod_wsgi on Windows for my XAMPP Apache and Django project. I'm using Python 3.7.3(win32), Django 2.2.3 and Apache 2.4.39(win64). Errors appear when after i set "MOD_WSGI_APACHE_ROOTDIR=C:\xampp\apache\bin" and pip install…
Django Newbie
  • 15
  • 2
  • 6
1
vote
1 answer

Resuming a suspended UWP application from a Desktop application

As the title suggests I am curious to discover a programmatic solution that allows for WIN32 desktop applications to resume a suspended UWP application. I am writing a small process management app that allows for suspending & resuming processes…