Virtual serial port and Win10

I put the following snippet in my INF file (see
https://www.osronline.com/showThread.CFM?link=282896):

[SetDeviceType_AddReg]

HKR,DeviceType,0x10001,0x0000001b ; 0x1b =3D FILE_DEVICE_SERIAL_PORT

…to allow it to work with various apps like the dotnet serial port class

This works on my development machine (Win 8.1 pro), but I have not had any
success on the Win10 machines that I have tested on… I get the “The given
port name is invalid. It may a valid port, but not a serial port” message.

Does anyone have any insight on this one?

Cheers

Did you verify the registry value is present on the device node?

Bent from my phone


From: xxxxx@lists.osr.com on behalf of xxxxx@gmail.com
Sent: Wednesday, November 22, 2017 4:44:48 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Virtual serial port and Win10

I put the following snippet in my INF file (see https://www.osronline.com/showThread.CFM?link=282896https:):

[SetDeviceType_AddReg]
HKR,DeviceType,0x10001,0x0000001b ; 0x1b =3D FILE_DEVICE_SERIAL_PORT

…to allow it to work with various apps like the dotnet serial port class

This works on my development machine (Win 8.1 pro), but I have not had any success on the Win10 machines that I have tested on… I get the “The given port name is invalid. It may a valid port, but not a serial port” message.

Does anyone have any insight on this one?

Cheers
— NTDEV is sponsored by OSR Visit the list online at: MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at To unsubscribe, visit the List Server section of OSR Online at</https:>

Yes it is there:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\PORTS\0000]

“DeviceType”=dword:0000001b

Does anyone know why Win10 would behave differently to Win8.1 in this regard?