Difference between CreateFile & Com_Open

Posted: 05-27-2005, 02:38 PM
Hi,

For a serial port device like modem, can any one please tell me the
difference between the APIs CreateFile(), COM_Open() and HWOpen().

Thanks,

Arsalan


Reply With Quote

Responses to "Difference between CreateFile & Com_Open"

Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
Re: Difference between CreateFile & Com_Open
Posted: 05-27-2005, 04:53 PM
Well, CreateFile() is how an application program opens a hardware device (or
a file). COM_Open is the name of the driver function which is called to
perform the open, when a device whose name is of the form COM<n>: is opened.
HWOpen is probably the low-level routine that actually does whatever is
necessary to the hardware when the device is opened (called by COM_Open).

If you're developing an application, all you need is CreateFile().

Paul T.

"Arsalan Ahmad" <arsal__@hotmail.com> wrote in message
news:%23OinmFsYFHA.1028@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> For a serial port device like modem, can any one please tell me the
> difference between the APIs CreateFile(), COM_Open() and HWOpen().
>
> Thanks,
>
> Arsalan
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
32 or 64 bit? What's the difference? DJjay Windows Vista Install & Setup 11 11-04-2006 01:08 PM
difference? Anthony Windows XP Messenger 1 09-19-2003 08:51 PM
What's the Difference ? Yu Ling Windows XP Messenger 3 09-04-2003 04:09 PM
what's the difference ricky Windows XP New Users 5 07-13-2003 02:51 PM