CreateFile : FILE_SHARE_READ

Dear list members,

Is it possible to use the options(FILE_SHARE_DELETE,FILE_SHARE_READ,
FILE_SHARE_WRITE) for “CreateFile” API call while using it for Opening
Communication ports(COM1,COM2,etc). If it is possible can you suggest me
how to use them?

Thanks in advance.

Chandu


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

For what?
COM port has Exclusive device flag - so, regardless of your sharing options, you will not be able to open more that 1 file object to
it.

Max

----- Original Message -----
From: “ntdev”
To: “NT Developers Interest List”
Sent: Saturday, December 08, 2001 12:20 PM
Subject: [ntdev] CreateFile : FILE_SHARE_READ

> Dear list members,
>
> Is it possible to use the options(FILE_SHARE_DELETE,FILE_SHARE_READ,
> FILE_SHARE_WRITE) for “CreateFile” API call while using it for Opening
> Communication ports(COM1,COM2,etc). If it is possible can you suggest me
> how to use them?
>
> Thanks in advance.
>
> Chandu
>
>
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com