This question already has answers here:
ASP.NET/Silverlight Control USB Device
(3 answers)
Closed 10 years ago.
I'm developing web application using MVC3 and the requirement is to access USB port. if not possible is there other way or workaround for accessing port using web browser. Please send me a sample link.
Thanks
You might find more answers if you provided detail on why your App required access to a USB port. If this Intranet, then you are talking Corporate and you have more control over the Client side. If this is Internet, it's hopeless (or should be).
Yes - it is possible. Silverlight 5 can access the Win32 API using PInvoke (platform invocation). The Silverlight application must be a trusted application.
Here's an example (there are lots of others, Google it):
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx
Related
This question already has an answer here:
Programmatically Install Windows Service On Remote Machine
(1 answer)
Closed 6 years ago.
I would like to programmatically install using a give AD user / delete / check the status of a windows services using C#. I would need to constantly check the status of these dynamically created services from a remote machine.
Is there any way to achieve this ?
Thank you.
The solution provided in this threads suits my needs very well, and I have no issue in creating and managing remote services.
Programmatically Install Windows Service On Remote Machine
This question already has answers here:
What is the simplest method of inter-process communication between 2 C# processes?
(9 answers)
Closed 7 years ago.
How to pass value from a Windows desktop application to another Windows desktop application?
I'm stuck right now. I don't want to build two different forms in one Winform application.
I need two different Winform application that communicates with each other, one of them send value to other one and the receiver processes the data.
Anyone knows how to do that?
I'd be grateful if you can help.
You need to implement interprocess communication, Please check this link What is the simplest method of inter-process communication between 2 C# processes?
in this link you can find multiple options to implement interprocess communication such as:
Windows Communication Foundation
Windows Messages
Also you can use WCF for communicating between applications. Have look WCF - Fastest interprocess communication
If you are familiar with Remote Objects using Services (.Net Remoting), then your two application can communicate using this method.
You can refer to this link:
https://www.daniweb.com/software-development/csharp/code/227615/simple-net-remoting-demonstration
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.
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/
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to capture image from client webcam in asp.net
Hi i want to capture a video using asp.net c# webapplication. How can i do it?
(Just like recording video in facebook)
Can you have any examples plz help me.
I've gone through google but nothing is suitable for me
Not really much to go on is there...
I am assuming you want a user to be able to record video in your app. This is not possible without a plugin on the user's machine, like Flash, because it means accessing hardware on the client machine. Flash has this built in and will ask for it to be allowed to access the user's webcam.
You might want to bwe a bit more clear with your question though...
Use Microsoft Expression Encoder for broadcast, and simple Silverlight of Flash control for presentation on a client side.