Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category, below.

Virtual serial port and Win10

dan-3dan-3 Posts: 123
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

Comments

  • Doron_HolanDoron_Holan Posts: 10,353
    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=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
    --- 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
  • dan-3dan-3 Posts: 123
    Yes it is there:

    >[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\PORTS\0000]
    >...
    >"DeviceType"=dword:0000001b
    >...
  • dan-3dan-3 Posts: 123
    Does anyone know why Win10 would behave differently to Win8.1 in this regard?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!