601 questions with Windows App SDK tags

Sort by: Updated
1 answer

Printing a file in Windows App SDK (tested printing thought processstartinfo with verb print) its not working

I am migrating my app from UWP to WinUI 3 in Desktop with windows app sdk. I used to print using print manager in uwp. So printing a file in Windows App SDK by printing thought processstartinfo with verb "print" its not working. is this a…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-10-28T06:33:30.687+00:00
Vignesh Govindhan 26 Reputation points
answered 2021-10-28T08:50:21.153+00:00
Castorix31 83,536 Reputation points
3 answers One of the answers was accepted by the question author.

How to list all physical drives and find there drive letter?

What I am doing is, to help users (me) to find the raw data sdcard (its physical drive no). and to warn them (me) not to WRITE any thing on that drive letter. for finding part, I have done this: for (1 to 10) { …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-10-22T06:25:24.797+00:00
HUANG da 21 Reputation points
answered 2021-10-26T05:59:58.033+00:00
HUANG da 21 Reputation points
2 answers One of the answers was accepted by the question author.

Starting a process in an AppContainer from a service (LOCAL_SYSTEM)

Hello, I am trying to run a process in an AppContainer. This process is created from a service, so is in session 0 running as LOCAL_SYSTEM. I have also tried CreateProcessAsUser to run it as LOCAL_SERVICE (also in session 0) and it doesn't work. …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-09-17T10:25:50.1+00:00
Alex Crane 96 Reputation points
accepted 2021-10-22T18:17:13.927+00:00
Alex Crane 96 Reputation points
1 answer

Does winui 3 desktop application support "Windows.ApplicationModel.Email"?

Hello everyone, In uwp, using the following code to achieve the mail function works very well. var emailMessage = new Windows.ApplicationModel.Email.EmailMessage(); var email = new ContactEmail() …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-10-17T04:36:18.273+00:00
Singh Wong 51 Reputation points
commented 2021-10-17T08:58:55.403+00:00
Castorix31 83,536 Reputation points
2 answers

BCryptEncrypt API failing for AES-128-CFB-128 when the input plaintext is size is not multiple of 16 and padding is off

I trying to encrypt the data with AES-128-CFB-128 using BCryptEncrypt API but API is failing when input plaintext is size is not multiple of 16 and padding is off with error 0xc0000206/STATUS_INVALID_BUFFER_SIZE. AES-CFB encryption is self-synchronizing…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
asked 2021-10-06T11:53:51.17+00:00
Pavan 101 Reputation points
commented 2021-10-11T06:57:42.35+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How do I access DWriteCore from a C# managed application?

How do I access DWriteCore from a C# managed application? I'm using .Net5 WindowsAppSDK Desktop. I need to get a SYSTEM and CUSTOM FONT COLLECTION LIST using DWriteCore, but I need to do so from a C# App using WindowsAppSDK, which says it includes…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,732 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,146 questions
asked 2021-10-02T06:36:10.877+00:00
Kenny Brown 51 Reputation points
commented 2021-10-06T10:07:03.213+00:00
Kenny Brown 51 Reputation points
1 answer

Impact of uiaccess = true on dlls?

We are planning to update an Exe to uiaccess = true and moving to the secure location. a. Is it required to move the dependent dlls too? b. Did we need to sign and create uiaccess = true manifest for these GUI dlls?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,735 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,872 questions
asked 2021-09-29T13:54:26.643+00:00
Vishnu Gopalakrishnan 126 Reputation points
commented 2021-09-30T08:23:38.86+00:00
RLWA32 44,116 Reputation points
2 answers

Is the secure location to bypass User Interface Privilege Isolation (UIPI) configurable?

We would like to bypass Interface Privilege Isolation (UIPI) for some applications by specifying UIAccess = true in manifest files. Is it possible to add our own folder as a secure location like, \Program Files\ including subdirectories …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,872 questions
asked 2021-09-28T03:53:45.44+00:00
Vishnu Gopalakrishnan 126 Reputation points
commented 2021-09-30T03:49:32.897+00:00
Vishnu Gopalakrishnan 126 Reputation points
1 answer

Distribution of an app for Win10 to Windows computers

Hello everyone, I have created a working test app with Visual Studio 19 and the Windows Template Studio for the time being. Unfortunately, there are now problems with the deployment. Do I need a "Developer License " or a "Sideload…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-09-29T07:37:21.69+00:00
Stefan Adorjan 1 Reputation point
answered 2021-09-30T01:54:26.587+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer

Grouping Windows based on creator

Some applications have single PID with multi instanaces running Eg: Word or MS Teams I need to automate UIA but hoe do i differentiate the windows created by a specific instance Eg : on MS Teams I can have two Instances running under the same PID …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-09-28T19:23:08.477+00:00
Achyuth Krishna 1 Reputation point
answered 2021-09-29T03:02:45.61+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

What is the recommended screen display resolution for widows 10 OS, as I am not able to see it in display setting?

What is the recommended screen display resolution for widows 10 OS, as I am not able to see it in display setting? see below windows version & details

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,585 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,141 questions
asked 2021-09-23T07:29:49.263+00:00
Vinod Survase 4,736 Reputation points
commented 2021-09-23T08:40:08.153+00:00
Vinod Survase 4,736 Reputation points
2 answers

I want to call the Windows api to draw the text on the top of the screen, even in the full-screen mode of the game, it can be displayed. How do I do this?

I want to call the Windows api to draw the text on the top of the screen, even in the full-screen mode of the game, it can be displayed. How do I do this? I hope to be able to draw text that displays information such as the temperature of the graphics…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
asked 2021-08-23T18:02:27.213+00:00
天凯 刘 1 Reputation point
answered 2021-09-20T08:56:26.713+00:00
天凯 刘 1 Reputation point
3 answers One of the answers was accepted by the question author.

Can I use C++ function _wspawnlp() to call the ssh.exe from my Visual Studio C++ codes?

Hi, experts, I need to call ssh.exe from VS c++ codes. I tried following from the Visual Studio 2013 c++ codes: String sExeName("ssh"); String sHost; errno_t err = _set_errno(0); intptr_t t = _wspawnlp(_P_WAIT, sExeName.c_str(),…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,657 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,141 questions
asked 2021-09-01T21:21:59.76+00:00
Yong Su 21 Reputation points
answered 2021-09-11T20:09:13.377+00:00
Yong Su 21 Reputation points
3 answers One of the answers was accepted by the question author.

PostMessage from a VBA app to an MFC app

I have a VBA app which uses PostMessage to send data to an MFC app dialog. I use PreTranslateMsg to catch the message in the MFC dialog. What is strange is that it all works if I do not run inside the VS C++ IDE, i.e. run the MFC EXE on its own. …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-08-31T13:41:59.677+00:00
Owen Ransen 541 Reputation points
commented 2021-09-02T08:56:43+00:00
Owen Ransen 541 Reputation points
2 answers One of the answers was accepted by the question author.

How to build a Non-Store, Non-MSIX Desktop app using Windows SDK WinUI 3

I built a UWP app that I publish and deploy to about 70 Windows 10 users. It works fine, except I can’t walk around to every user when I update the app, so I created a new build with Enable Automatic Updates. The problem is my company recently disabled…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-08-25T23:46:13.257+00:00
Gregory Bologna 56 Reputation points
accepted 2021-08-27T20:04:13.87+00:00
Gregory Bologna 56 Reputation points
1 answer

Cannot find Microsoft.WindowsAppSDK.Bootstrap.dll

Trying tutorial here doesn't work. Getting error "Unable to load DLL 'Microsoft.WindowsAppSDK.Bootstrap.dll' or one of its dependencies" …

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-08-26T13:53:07.23+00:00
Gregory Bologna 56 Reputation points
answered 2021-08-27T02:15:11.517+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer

[cfAPI] How to report a file is no longer exist and stop fetching?

Hi MS team, I'm developing sync program with cloud filter API. I notice that some antivirus will hook system function (i.e. CreateFile) and trigger fetch callback. In my scenario, the file was being deleted on server side, and my provider start to delete…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
asked 2021-08-25T16:37:37.163+00:00
Chieh Yu 1 Reputation point
answered 2021-08-26T08:43:05.077+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer

WinUI 3(C++/WinRT): "NavViewCompactModeThresholdWidth" not found

According to the sample code of the the document in Microsoft Learn, I wrote almost the same code, but it cannot be compiled. There is an error, "NavViewCompactModeThresholdWidth": is not a member of…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,657 questions
asked 2021-08-25T13:42:38.613+00:00
XiaoLi8848 1 Reputation point
answered 2021-08-26T03:18:02.72+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor
1 answer

WinUI 3 Issues

I was exploring options to port our existing WPF app to the new WinUI 3. But it seems almost impossible. Even the most basic things are not working as intended, or am I doing something wrong? 1) A Canvas inside a ScrollViewer does not enable any…

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
asked 2021-08-25T11:35:46.84+00:00
CPP 1 Reputation point
answered 2021-08-26T02:59:15.04+00:00
Roy Li - MSFT 32,896 Reputation points Microsoft Vendor
1 answer

WiX MSI installer add optional true/false flag passthrough to Electron app

Currently I am building an Electron project to a MSI installer using electron-builder, which comes with a WiX template.xml that it uses to generate the MSI installer. Is there a way to configure/edit the installer so my Electron app can know what…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
765 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,547 questions
asked 2021-08-23T17:50:42.563+00:00
George Li 1 Reputation point
answered 2021-08-25T07:33:41.427+00:00
Xiaopo Yang - MSFT 12,541 Reputation points Microsoft Vendor