|
-
Jun 4th, 2011, 10:22 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Get comm num from handle?
Hi again folks.
Is there a way in C of getting the comm port number if I have a handle of said comm port?
obviously I already know the comm number (thats how I got the handle in the first place) but I am using multiple ports and dont want to have to go passing the different numbers around along with the handles, especially when it essentially only going to lead to a more concise error message.
Thanks
Thanks 
-
Jun 10th, 2011, 09:38 PM
#2
Re: Get comm num from handle?
What about the GetCommProperties function? I'm guessing you are getting the handle via the CreateFile function?
-
Jun 10th, 2011, 09:43 PM
#3
Re: Get comm num from handle?
Actually you might even be able to use the GetFileInformationByHandle function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|