Windows 10 IoT embedded, trying to get a console app debugging/deployed using Visual Stuido 2019 - c++

I've been trying to get a 'console application' to deploy and debug on my embedded Win10 device but I just can't seem to figure it out.
I can get an application to deploy, which requires a 'SquareLogo' screen to come up and I can't figure how to have this 'window' hide or be a headless app.
I can set in the property pages of my app "Property Pages - Configuration Properties - Linker - System - SubSystem" to 'Console (SUBSYSTEM:CONSOLE) and the console window will display on the embedded device but the app screen comes up and the console window will not take any input, from the keyboard.
So in summation I want to debug (Remote Machine) to my embedded Win10 device with a console application.
I'm writing my app in C++.
I won't think it would be this hard but I just can't get the applications main window to not display at startup.
Any help would be appreciated.
Thanks

For Windows IoT Core, you can debug console app using Remote Console App Debugging in Visual Studio. You need to start visual studio debugger on Windows IoT Core in Device Portal.
Please refer to this document.
Debug your app using Remote Console App Debugging
BTW, IoT Core is a UWP centric OS and UWP apps are its primary app type.Since that , traditional UI app can not work on Windows IoT Core, it means Windows IoT Core does not support MFC or ATL APIs.If you want to run a headless app on Windows IoT Core, we recommend you to use Background Applications.

Related

How to allow uiAccess in UWP application

I am invoking C++ UIautomation modules in my UWP application. The application is not able to extract control elements since it is not running in an elevated environment. How should I set up the manifest file or set my UWP app to be able to get access to ui elements of other applications.
I'd suggest that you could put the UIautomation modules into a console app and then launch the console as elevated from your UWP app using desktop bridge. You will also need to add the allowElevation capability into the manifest file.
For detailed steps, you could take a look at Stefan wick's blog- App Elevation Samples.

Windows Store App - remove fullTrustCapability

I'm developing a C++-Win32-app which should be deployed in the Microsoft Store. Unfortunately, since runFullTrustis added automatically as required capability, the program appears in Microsoft Store as follows: "This app can access all your files, peripheral devices, apps, programs and registry.", but I don't need all of those capabilities. Is there any possibility to get rid of the runFullTrust capability or to choose which capabilities are really needed?
If you want to publish the Win32 apps in Microsoft Store, and you must add restricted capability runFullTrust in the manifest.
Only UWP app can be published in the Microsoft Store,if you have an existing desktop application that was built using the .NET Framework (including WPF and Windows Forms) or C++ Win32 APIs, you can several options(Package your desktop application in an MSIX package, Use UWP APIs...) for moving to the UWP and Windows 10. The moved app called desktop bridge apps. You can see more details in document:
Move from a desktop application to UWP
The restricted capability runFullTrust is required for any desktop application that is delivered as an appx or msix package (as with the Desktop Bridge), and it will automatically appear in your manifest when packaging these apps using the Desktop App Converter (DAC) or Visual Studio. You can see this in document:
Restricted capabilities

Automation: Can't inspect GUI controls with Spy++

I'm trying to automate a desktop application but I can't inspect its elements using tools such as Spy++, Inspect.exe, UI Verify... The application is old aparently built with C++.
Is there anything I can do?
I've thought about reproducing the application communication with the server via code, but I wasn't able to identify HTTP requests/responses between them.
Spy++ screenshot

Project Type for simple headless windows application

I am creating a Windows app that will run on Windows 2012r2 and soon be migrated to newer servers.
This app will be started from task scheduler and run several times a day.
It will start up, monitor a file system and, based on what it finds on the file system, will update a database.
I want it to run even when the user is not logged in.
I don't want it to pop up a console window while it is running because I inherited some applications that are doing that and it is quite annoying.
I will be writing it in C#.
In Visual Studio 2017 which project type should I choose?
Blank App
WPF App
Console App (.NET Core)
Console App (.NET Framework)
Other?
I am new to Windows development so please use terminology that I will see in Visual Studio 2017 so I can understand the answer.
[EDIT] I changed Console App (.Net Standard) to (.Net Framework) because Standard does not exist. I was suffering from temporary insanity when I listed that as an option.
Since there is no user interface, and you are just monitoring the file system and updating a database and running on a Window Server I would recommend:
4. Console App (.NET Framework), and in the Application/Properties for the app set the output type to Windows application and this will prevent any type of console window from showing. This is the type of application I use on a frequent basis to accomplish tasks very similar to what you are describing. The security settings you have for the user account logging into the server will determine if you can run it whether the user is logged in or not.

What should I do if I get activation error on Xbox UWP app and there is nothing useful in the error message?

I got xbox system update push recently on dev mode. My program winrtcpp program stops working, while other c++/cx program does still run on the xbox. In the meantime, I did not change my code or relevant dependencies. And the program is running correctly on PC.
Is there a general strategy for solving this kind of windows app activation problem.
Error message:
"unable to activate Windows.Store.app...The process started, but the activation request failed with error 'The app didn't start.'"
https://learn.microsoft.com/en-us/windows/uwp/xbox-apps/frequently-asked-questions
Why aren't my games and apps working?
If your games and apps aren't working, or if you don't have access to the store or to Live services, you are probably running in Developer Mode. To figure out which mode you're currently in, press the Home button on your controller. If this takes you to Dev Home instead of the retail Home experience, you're in Developer Mode. If you want to play games, you can open Dev Home and switch back to Retail Mode by using the Leave developer mode button.