From: dave on
Hello:

Q1:

When i'm using
status = IoGetDeviceInterfaces(
(LPGUID)&GUID_CLASS_COMPORT,
NULL,
0,
&symbolicLinkList );

I have error LNK2001: unresolved external symbol _GUID_CLASS_COMPORT
I included <ntddser.h>

Q2:
When i'm using
GUID ClassGuid =
{0x4D36E978L, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03,
0x18};

the returned symbolicLinkList contains ONLY one instance( COM1) even when
PC has 2 serial ports ?

I'm using W2K checked buid

thank you:
dave

From: Doron Holan [MS] on
#include <initguid.h>
#include <ntddser.h>

will create an instance of the GUID variable

as for only one com port showing up, did you hook up a kernel debugger? if
so, are you using a com port for kernel debugging? if so, the com port used
for kernel debugging is not available and is not listed.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"dave" <dave(a)discussions.microsoft.com> wrote in message
news:B696E206-4925-4352-A63A-6B5DBA4EA5B7(a)microsoft.com...
> Hello:
>
> Q1:
>
> When i'm using
> status = IoGetDeviceInterfaces(
> (LPGUID)&GUID_CLASS_COMPORT,
> NULL,
> 0,
> &symbolicLinkList );
>
> I have error LNK2001: unresolved external symbol _GUID_CLASS_COMPORT
> I included <ntddser.h>
>
> Q2:
> When i'm using
> GUID ClassGuid =
> {0x4D36E978L, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03,
> 0x18};
>
> the returned symbolicLinkList contains ONLY one instance( COM1) even when
> PC has 2 serial ports ?
>
> I'm using W2K checked buid
>
> thank you:
> dave
>