[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 368
  • Last Modified:

inpw or inpd for 32-bit NT CONSOLE

In 32-bit NT CONSOLE application:

Consider the functions: inpw() and inpd()

1) Which one do I use to talk to a com part (e.g. COM1)?

2) Do I need to OPEN the com port first (before talking to it)

3) If the answer to 2) is YES, HOW do I open it?

Thanks
stevefromc
0
Stephen Kairys
Asked:
Stephen Kairys
  • 3
2 Solutions
 
grg99Commented:
You dont and you can't.  

NT is designed to be a "safe" and "stable" system.  Toweard that goal, you're not allowed to touch anything that can mess up the hardware.

What exactly are you trying to do?    Serial I/O is quite possible using the standard API's.

0
 
jkrCommented:
If you want to do serial communications on NT, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp ("Serial Communications in Win32"), it also comes with sample code. Direct harware access is forbidden under NT.
0
 
Stephen KairysTechnical Writer - ConsultantAuthor Commented:
Hello.
I had actually posted this question on behalf of another programmer; however, I think that
he ended up solving it a different way.

I will confirm with them that I do not need any further information. Assuming that's the case,
I have no problem with jmcg's recommendation.

Thanks
stevefromc


0
 
Stephen KairysTechnical Writer - ConsultantAuthor Commented:
My colleagues no longer need help, so mods, you can close it, as per jmcg's suggestion.
Bear in mind though that I did not try out any of the ideas suggested.

Thanks,
stevefromc
0
 
Stephen KairysTechnical Writer - ConsultantAuthor Commented:
Thanks!!!
0

Featured Post

Live webcast with Pinal Dave

Pinal Dave will teach you tricks to help identify the real root cause of database problems rather than red herrings. Attendees will learn scripts that they can use in their environment to immediately figure out their performance Blame Shifters and fix them quickly.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now