Is COM port busy with mouse

How can I determine is COM port buzy with mouse?
I'm using MS VC++ 6.0.
Thanks.
SergeykaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jazzmasterCommented:
What exactly are you trying to do? What kind of project is it? (i.e. SDI, MDI, dialog, or console). What you need to do is add a function attached to a WM_MOUSEMOVE event, so that whenever the mouse moves your code is triggered, which is easy to do using the class wizard. It really depends on what you're trying to do! Please give more details.
0
SergeykaAuthor Commented:
To jazzmaster...
I've created a dialog based application. A kind of monitor, which receives data from COM port. I need to determine is COM1 port handles mouse, then program should not use this port.
0
AlexVirochovskyCommented:
O , it is something else. For detect
com port is buzy/free simple use
CreateFile ("com1:", ..) and if
function fails, test (with GetLastError) reason for this .
If reason : EBUSY (or something same)
com post is buzy.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SergeykaAuthor Commented:
Thanks, Alex.
Actually I found this myself tonight...
Ìåòîäîì íàó÷íîãî òûêà...
;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.