2,980 questions with Universal Windows Platform (UWP) tags

Sort by: Updated
0 answers

Can we create and destroy winrt::hstring on different threads?

Hello, I’m working on a multi-threaded WinRT/C++ application and need some clarification on how thread safety works when using winrt::hstring across threads. Specifically, if I create a winrt::hstring on one thread (Thread 1) and pass its ABI pointer to…

Universal Windows Platform (UWP)
asked 2024-11-18T08:50:55.2833333+00:00
Shyam Butani 260 Reputation points
edited the question 2024-11-19T06:03:29.7+00:00
Shyam Butani 260 Reputation points
0 answers

UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied

Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…

Universal Windows Platform (UWP)
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,659 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.
11,041 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,772 questions
asked 2024-11-19T04:13:17.18+00:00
DotNET Fan 271 Reputation points
0 answers

Windows.Data.Pdf.PdfDocument Crash with file size greater than 2GB

Same issue as here (no replies there, it's an old thread) https://zcusa.951200.xyz/en-us/answers/questions/248422/windows-data-pdf-pdfdocument-crash My notes: Crash is not catchable which makes it really hard to find reason for issue or…

Universal Windows Platform (UWP)
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.
11,041 questions
asked 2024-11-12T17:59:23.92+00:00
Jérôme S 5 Reputation points
commented 2024-11-18T18:32:06.81+00:00
Jérôme S 5 Reputation points
1 answer

How to access camera preview frames with MediaCapture class in Unity?

Using the Windows MediaCapture class we can capture videos and images on the HoloLens 2. The class also offers preview capabilities (see here). However, I am not sure how to get the preview stream within Unity and then display it to the user. In the docs…

Universal Windows Platform (UWP)
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.
11,041 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
asked 2024-11-15T08:24:11.62+00:00
Valentin 40 Reputation points
commented 2024-11-18T14:17:02.6933333+00:00
Valentin 40 Reputation points
0 answers

How do I localize the AppDescription of Desktop Bridge apps?

I have a UWP application. The project contains the following files: de-DE\Resources.resw en-US\Resources.resw Each file contains a text with the key AppDescription. en-US is set as the default language in Package.appxmanifest. When submitting to the…

Universal Windows Platform (UWP)
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,788 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,019 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.
11,041 questions
asked 2024-11-13T13:08:33.4966667+00:00
Heiko 1,261 Reputation points
commented 2024-11-18T13:14:07.6933333+00:00
Heiko 1,261 Reputation points
0 answers

WNS(Raw Notification) fail after PC restart and cannot accept message push notifications

Hello, I have found that the message push service(WNS) cannot be used after restarting the computer. After restarting, the PushNotifications LongRunningTask.exe process was not running, so it did not receive a message and subsequent pushes were dropped.…

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.
798 questions
asked 2024-11-16T05:57:06.44+00:00
coco 0 Reputation points
commented 2024-11-18T08:00:59.6233333+00:00
Junjie Zhu - MSFT 19,051 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Understanding the lifecycle of winrt::hstring with ABI handling

Hello, I'm trying to understand the lifecycle of winrt::hstring when working with the ABI and managing reference counts. Specifically, I want to store an winrt::hstring in a void* pointer, and to do so, I'm using the copy_to_abi API. This increases the…

Universal Windows Platform (UWP)
asked 2024-11-14T11:10:33.95+00:00
Shyam Butani 260 Reputation points
accepted 2024-11-18T06:05:17.3233333+00:00
Shyam Butani 260 Reputation points
0 answers

System.Exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E)

public Dictionary<Guid, MyClass> _dictMyClass; ... if (_dictMyClass.ContainsKey(gID)) { MyClass myClass = _dictMyClass[gID]; } Occasionally and rarely), the above line throws the following exception: System.Exception: The application called an…

Universal Windows Platform (UWP)
asked 2024-11-06T22:50:46.4466667+00:00
Hong 1,211 Reputation points
commented 2024-11-15T08:40:59.62+00:00
Junjie Zhu - MSFT 19,051 Reputation points Microsoft Vendor
1 answer

VS2022 Error When Deploying HoloLens 2 Application: GameAssembly.lib Not Found

I encountered an error while deploying a HoloLens 2 application using VS2022: GameAssembly.lib not found. I noticed that the file does not exist in the Build folder and I'm not sure why it wasn't generated. I am deploying via Wi-Fi.

Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
asked 2024-10-29T13:31:49.65+00:00
琛博 程 0 Reputation points
commented 2024-11-13T17:37:06.3033333+00:00
slaters5050 0 Reputation points
0 answers

How to make sandbox account for testing to purchase app in Microsoft partner center?

"I want to create a sandbox account in Partner Center. How can I do that? I want to test in-app purchases. Could you please guide me?"

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,019 questions
asked 2024-11-12T05:07:51.9433333+00:00
Deepak Patel 60 Reputation points
commented 2024-11-13T09:42:16.65+00:00
Junjie Zhu - MSFT 19,051 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Does WinUI3 App support Miracast feature now?

Hi Microsoft team, I developed a UWP app to implement the screen mirror function with the Windows.Media.Miracast APIs. Now I want to migrate UWP to the WinUI 3 App(Windows App SDK), so I research how to migrate Miracast and find that WinUI 3 App didn't…

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.
798 questions
asked 2024-11-11T09:55:26.51+00:00
Zev Yang 20 Reputation points
accepted 2024-11-13T08:27:17.5166667+00:00
Zev Yang 20 Reputation points
1 answer

Microsoft Store In-App Purchase Issue: Add-On Products Keep Loading and Show "PEX-CatalogAvailabilityDataNotFound" Error

I'm experiencing an issue with in-app purchases (IAP) in my Unity game published on the Microsoft Store. I have created multiple store-managed consumable add-ons (e.g., "speed_x1", "speed_x3") and have set up their respective product…

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,019 questions
asked 2024-10-31T14:35:41.2666667+00:00
MecanzLuna 0 Reputation points
commented 2024-11-13T07:17:26.4566667+00:00
Junjie Zhu - MSFT 19,051 Reputation points Microsoft Vendor
0 answers

MediaClip.CreateFromFileAsync() throws System.ArgumentException

MediaClip videoClip = await MediaClip.CreateFromFileAsync(storageFileVideo); The above code occasionally throws the following exception: System.ArgumentException at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at…

Universal Windows Platform (UWP)
asked 2024-11-13T02:26:31.3266667+00:00
Hong 1,211 Reputation points
commented 2024-11-13T06:32:53.0533333+00:00
Junjie Zhu - MSFT 19,051 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Handling of UWP child window closing behavior

Hello UWP experts , I create the child windows from the main app using the below code. The requirement is at the start dont allow the user to close of window and allow only after 10 to 20 seconds. I couldn't find any pre close event for the child…

Universal Windows Platform (UWP)
asked 2024-07-05T14:15:02.29+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:26:16.2333333+00:00
DotNET Fan 271 Reputation points
1 answer One of the answers was accepted by the question author.

Multiple Instances of App

Hi UWP experts, So i have enabled multiple instances of my app through the package manifest desktop4:SupportsMultipleInstances="true" and it works perfectly fine when the app is selected from the windows start menu and opens up multiple…

Universal Windows Platform (UWP)
asked 2024-09-19T08:19:31+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:24:29.3366667+00:00
DotNET Fan 271 Reputation points
3 answers One of the answers was accepted by the question author.

Handling Appservice connections in a multiple instance of fulltrust process

Hello UWP experts, Please look at the below thread . This question is related to the thread. https://zcusa.951200.xyz/en-us/answers/questions/2087088/uwp-app-communication-with-another-process-(*-exe)?comment=question#newest-question-comment UWP app…

Universal Windows Platform (UWP)
asked 2024-10-15T10:24:46.31+00:00
DotNET Fan 271 Reputation points
accepted 2024-11-12T17:22:08.84+00:00
DotNET Fan 271 Reputation points
2 answers One of the answers was accepted by the question author.

Implementing app purchase with subscription add-on

i implemented app purchase in UWP firstly create add-on in Microsoft partner now status of add-on is (in the Microsoft store). After that write all the code as mention in "…

Universal Windows Platform (UWP)
asked 2024-11-07T06:30:46.9133333+00:00
Deepak Patel 60 Reputation points
answered 2024-11-12T04:43:21.05+00:00
Deepak Patel 60 Reputation points
1 answer One of the answers was accepted by the question author.

GetAssociatedStoreProductsAsync always returns error in a Game!

Hi, I have several APPS in the store and get the addons info using the GetAssociatedStoreProductsAsync() method. It returns the addons that are available for purchase from my app. Recently I created a GAME. and when I use the same method to…

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
1,019 questions
asked 2021-05-18T02:36:28.167+00:00
MG Bhadurudeen 626 Reputation points
commented 2024-11-11T04:56:26.5366667+00:00
Deepak Patel 60 Reputation points
1 answer One of the answers was accepted by the question author.

Does uwp app service has access control?

I implement a uwp app service in my application and I don't want this app service being exposed to all user processes, which may causes privacy issue. So I want to know if there is any method to control the scope of processes that can connnect to my app…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,760 questions
Universal Windows Platform (UWP)
asked 2024-11-07T06:14:32.6666667+00:00
Jayden Xia 20 Reputation points
commented 2024-11-11T01:26:24.49+00:00
Jayden Xia 20 Reputation points
0 answers

Windows.Data.Pdf.PdfDocument Crash

when i use Windows.Data.Pdf.PdfDocument to load a pdf file which sizes more than 2 GB, it crashed immediately. No matter what you use LoadFromStreamAsync or LoadFromFileAsync, it just crashed with no information. i can't catch this crash with try…

Universal Windows Platform (UWP)
asked 2021-01-28T04:44:42.07+00:00
buskysnow 6 Reputation points
commented 2024-11-08T18:01:50.7166667+00:00
Jérôme S 5 Reputation points