ZwCreateFile

Hi All,

I was trying to open the COM1 Driver using “ZwCreatefile”. The Device
UNICODE string \DosDevices\COM1 was working fine with win2k but not
working with win98 :frowning:
I want to know how we reference the COM port in Win98

I have tried the alternative to get the resource name by using the fn.
“IoGetDeviceInterfaces”. this function takes the GUID of the Device “class”
( in this case the device belongs to ACPI class) and returns back an array
of Device UNICODE strings of the devices of that class. The Above fn was
working fine… but, i don’t know how to identify required device string
out of the set of strings.
any suggestions on the above will be highly greatful.

thanks in advance,
Have a Nice day

-Naveen


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

Hi Naveen,

Windows 98 Comport donot fall in the categories of

\DosDevices, they actually are hosted by windows as
VCOMM services to virtual machines. If you want to
open the comport and then use the services like set
baud, read, write etc, you need to use vcomm service
exported by Windows.
Take a look at this web page or even Win98 DDK.
http://www.osr.com/ddk/comm_12pi.htm Search for
“_VCOMM_OpenComm” in google if you don’t find any.

To open the comport, use “VCOMM_OpenComm” api exported
in the VxdWraps.h in Win98 DDK, also there are other
bunch of helping api in the header.

Cheers,
Jayadev

xxxxx@wipro.com wrote:

Hi All,

I was trying to open the COM1 Driver using
“ZwCreatefile”. The Device
UNICODE string \DosDevices\COM1 was working fine
with win2k but not
working with win98 :frowning:
I want to know how we reference the COM port in
Win98

I have tried the alternative to get the resource
name by using the fn.
“IoGetDeviceInterfaces”. this function takes the
GUID of the Device “class”
( in this case the device belongs to ACPI class) and
returns back an array
of Device UNICODE strings of the devices of that
class. The Above fn was
working fine… but, i don’t know how to identify
required device string
out of the set of strings.
any suggestions on the above will be highly
greatful.

thanks in advance,
Have a Nice day

-Naveen


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


Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.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

Thanks jayadev,

I have tried using the VCOMM calls …but it seems to be building a Vxd.
I am trying to attach this to a “sys” driver stack…can we attach a vxd to
a sys stack… if we can that…my problem is solved. !!
… else if anybody can tell how the device string can be acquired by using
the class GUID …it would be of great help…

i’m ataaching the orginal query with this mail… please refer to it…u
could find some point… !

Original query:

> I have tried the alternative to get the resource
> name by using the fn.
> “IoGetDeviceInterfaces”. this function takes the
> GUID of the Device “class”
> ( in this case the device belongs to ACPI class) and
> returns back an array
> of Device UNICODE strings of the devices of that
> class. The Above fn was
> working fine… but, i don’t know how to identify
> required device string
> out of the set of strings.
> any suggestions on the above will be highly
> greatful.

thanks in advance,
Have a Nice day

-Naveen

On 07/12/01, “jayadev m n ” wrote:
> Hi Naveen,
>
> Windows 98 Comport donot fall in the categories of
>
> \DosDevices, they actually are hosted by windows as
> VCOMM services to virtual machines. If you want to
> open the comport and then use the services like set
> baud, read, write etc, you need to use vcomm service
> exported by Windows.
> Take a look at this web page or even Win98 DDK.
> http://www.osr.com/ddk/comm_12pi.htm Search for
> “_VCOMM_OpenComm” in google if you don’t find any.
>
> To open the comport, use “VCOMM_OpenComm” api exported
> in the VxdWraps.h in Win98 DDK, also there are other
> bunch of helping api in the header.
>
> Cheers,
> Jayadev
>
>


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