VirtualSerial2 sample driver not showing up in DeviceManager

Paul Sievers 25 Reputation points
2024-10-14T11:42:56.6766667+00:00

Can anyone tell me an environment (versions of Windows, VisualStudio, SDK, WDK) where the VirtualSerial2 driver sample compiles and runs???

I tried to build this sample (from GitHub) with

Microsoft Visual Studio Community 2022

VisualStudio.17.Release/17.10.4+35027.167

Visual C++ 2022 00482-90000-00000-AA903

Windows Software Development Kit - Windows 10.0.26100.0

Windows Driver Kit 10.0.22621.311

After overcoming some compiler and linker problems (e.g. I had to add mincore.lib, ntdll.lib and WdfDriverStubUm.lib to linker input) and running StampInf and Inf2Cat manually, I got a package that is accepted by the DeviceManager.

However, when I installed it (TestSigning was enabled) no new COM-ports were shown in the DeviceManager.

Windows development | Windows Driver Kit (WDK)
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Marvin Köhler 0 Reputation points
    2025-08-14T01:52:33.6033333+00:00

    This post is rather old, but after a lot of struggling I found out how to get the sample driver working by pure chance, so in case someone stumbles across this in future:

    For I had not only to deploy the driver, which made it listed in the device-manager if you select "view devices by driver" (without any devices in its tab), but you also had to execute this command found in the drivers INF:
    devcon install *the driver inf file path* UMDF\VirtualSerial2um
    Where the last part is the drivers Hardware-ID also configured in the INF.

    Alternatively you can add this under the driver projects Properties>Driver Install>Deployment settings using the "Install to Hardware-ID" option.
    Each time this is run it creates an additional COM port, calling
    devcon remove UMDF\VirtualSerial2um

    removes all the virtual ports again.

    Only found this our after browsing trough the help of devcon and somehow having the feeling to have read "Hardware ID" some wherein the INF file already, and then there seeing this command suggested.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.