I have a application I wrote that uses a serial port (hand scanner connected to it) and I need to detect somehow that another user switched so I can close that port and when the new user logs on to the application it wont get 'port in use' error. Any suggestions? My program is in VB.Net but open to any suggestions.
Trying to detect a windows user switch and close a serial port
130 Views Asked by skifreak At
1
There are 1 best solutions below
Related Questions in SERIAL-PORT
- C# PCI Express Serial Port
- USB to Serial, Port Name Changing Unexpectedly
- Connecting a USB serial device to the Arduino directly
- Sending gcode string to 3D printer through a serial port
- Raspberry PI USB to RS232 adapter Receiving Only Ctrl Chars
- Read and write data multiple times on a serial port with a single click
- Processing in Java Serial object Null Pointer Exception
- Why can't I open/write from a serial port on Android?
- fconfigure refuses to set baud rate to 921600
- Multiple objects containing SerialPort with same SerialDataReceivedEventHandler
- Nodejs send data to Arduino using serial
- PHP dio_read taking taking 1 minute to execute each task
- Serial Port Write Echo
- Linux Shell, How to send a command over Serial port and return?
- Turning Textbox Red with a timer when serial port stops outputting data
Related Questions in SWITCH-USER
- Unable to impersonate user when authenticated using auth_kerb listener
- How do you Switch User?
- Symfony2 impersonate listener with parameters injection
- How can we determine a program is already running in either in the current user or other user in delphi
- Rails: Switch User Gem and issues with switching back to original user
- Switch user and output variable contents
- grep: /proc/version : Permission Denied
- Windows Authentication Logout / SigninwithDifferent User
- How can I pass a password from a file to the "su" command?
- How can I replicate Task Manager's switch user functionality in C#?
- Trying to detect a windows user switch and close a serial port
- Switching user in laravel 5.4
- android switch user programmatically
- auto switching user with task scheduler in win7
- Detect enter/exit session under KDE/Gnome with FreePascal
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is a common issue unfortunately.
I find the best thing to do is create a Windows Service to handle all of the comms so that it works independently of any user being logged in. You can use a WCF/Web Service to get data out of the Windows Service.
I hope this helps.
(I would have posted this as a comment instead of an answer if I could)