Use System.Diagnostics in windows store application [duplicate] - c#

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What’s the equivalent of the System.Diagnostic.Process on WinRT (C#)?
I use System.Diagnostics namespace for working with process functions in windows forms application.
Now I want to know is there any possible way so that I can use this function in windows store application?
Thanks in advance

I would think that they are not going to work. Looking at MSDN, it contains all the entities in the System.Diagnostics namespace that are available to Windows Store applications. If the method/class is not listed in this, then you can't use it. I would expect the code to not even be present in the framework that is used by these apps to prevent using them via introspection.
It's most likely that even if you could invoke the methods, you would find that they would fail due to security blocks that have been put in place to prevent Windows Store apps from interacting with the desktop.

Related

Can I embed the output of a program in a web application in ASP.NET and C# [duplicate]

This question already has an answer here:
How do I run a Console Application, capture the output and display it in a Literal?
(1 answer)
Closed 4 years ago.
I'm writing a web app that will use a server executable to do all the work. The program is in DOS. I want to embed the output of the program in the page. I've done this in PHP, but I'm new to ASP.net and C#. I need some native functions that can call and embed the program in the site. The outputs are video and audio files. The program is ffmpeg (cite: ffmpeg.org).
I've been going over the Microsoft Documentation and I'm using VS17 Community. It doesn't seem to say much about adding arbitrary code into a web app produced in the languages. I'm still researching, and I thought it'd be smart to come here.
I need a way to pass the output to the Web App. The outputs are going to vary as well. So there is going to be some definitely variable embedding going on.
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process?view=netframework-4.7.2
This is the class that handles outside Processes. Very easy to understand.

Is Microsoft Store the only way to distribute a self-contained UWP application? [duplicate]

This question already has answers here:
Preferred way to deliver UWP app without Windows Store
(2 answers)
Distributing private win app in UWP
(2 answers)
Closed 4 years ago.
I've been trying to dig around a simple way to distribute this simple application I've created. I want things simple: a simple self-contained installer. Not to say that it cannot be put on the MS-Store, but I want alternative ways to distribute it simply to my clients.
I've create a package, but you need to enable the developers options to run it elsewhere.... And all the other solutions are either VERY costly or require a 3 year degree to understand them. And of course, the documentation on the internet is dominated by Microsoft who push their own solution, i.e. the Store.
I would be grateful if anyone could point me in the right direction please.

How do I include "Always on Top" functionality into my C# application [duplicate]

This question already has answers here:
WPF Always On Top
(7 answers)
How to make a window always stay on top in .Net?
(14 answers)
Closed 5 years ago.
When the task manager is open, there is an option for "Always On Top" in the menu bar. I would like this to be the default behavior for my application. I am using C# in Visual Studio to write the program. It is basically an investment calculator that offers important numbers for the user.
The user will need these numbers and it is unlikely for them to be able to memorize them. Time is of the essence when using my application so stopping to write them all down is not feasible either. How was this implemented? Thanks in advance.
Response to proposed duplicate
I do not think this is a duplicate question. Other questions on SO have used third party software to handle this task. I also was under the impression that what others were seeking related to keeping one of many of their forms as top most. I am specifically asking to be higher than all applications running on the machine.
Furthermore, the question was designed to seek help on implementation of code to facilitate this. In the article offered by Mohammed, there is code for working with Windows API and I was unable to get it working. I had read this article prior to asking the question. Most people reported TopMost property to not help them, and many responses reported using Windows API.
if its winform application Form.TopMost will work
Depending on what you are using (WPF or Forms), these may help you :
WPF : WPF Always On Top
Forms : How to make a window always stay on top in .Net?
The idea is to set True to the property YourForm.TopMost or YourWindow.TopMost. You may still have troubles with full screen applications that can be on top of yours.

using dotpeek exe I can convert my exe into sourcecode how to make secure my application [duplicate]

This question already has answers here:
How to protect your software code? [duplicate]
(13 answers)
Closed 8 years ago.
I am working on Financial domain project using Windows application, Recently came to know that using "DOTPEEKPACK exe" I can get source code using my application exe. So there is no security for my code. It got some sensitive data too.
even I try to convert my sensitive data code in to dll format but still using that dotpeek exe we can change dll to C# code.
kindly any one suggest me what to do for securing my windows application?
You can use code obfuscation tools like Babel Obfuscator, Crypto obfuscator, dotfuscator by microsoft. it will modify your compiled assemblies in a way that it will be harder to understand the control flow of your code. different obfuscators use different types of obfuscation techniques like method and variable renaming, control flow obfuscation etc.

How to access web camera settings (like Skype) C# [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How to access web camera settings (like in Skype) using DotNet
I found another question "How to access web camera settings (like in Skype) using DotNet" but it is very old with no answer. I have pretty much the same question.
I am developing a app using SkypeKit and to make it more complete to the user I would like to be able to tap into the webcam/audio/mic settings.
Is there an easy way using C# or skypekit ? & any advice.
Thanks.
You can use DirectShow or a .Net wrapper for it such as DirectShow.Net.
Here are some projects that can help you going:
http://www.codeproject.com/Articles/18511/Webcam-using-DirectShow-NET
http://www.barebonescoder.com/2012/01/finding-your-web-cam-with-c-directshow-net/

Categories