Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assign haredware id as devicedesc #1057

Open
walkthetalk opened this issue Nov 27, 2023 · 0 comments
Open

assign haredware id as devicedesc #1057

walkthetalk opened this issue Nov 27, 2023 · 0 comments

Comments

@walkthetalk
Copy link

walkthetalk commented Nov 27, 2023

sorry, maybe it's not the right place to issue the question.

I'm developing virtual serial driver, and want to know how to set 'devicedesc' in 'inf' file.

in example inf:

[Microsoft.NTamd64]
%VirtualSerialDeviceName%=VirtualSerial_Install,UMDF\VirtualSerial2um

the string in % is used as 'devicedesc' in registry, and will displayed in device manager.

I need create multiple virtual serial using devcon, and want to use custom name for everyone.
I can't differentiate between them using parameters of devcon.
so I give every one a specific hardware ID like:

[MyComp.NTamd64]
myserial0=SerialCL_Install, Root\myserial0
myserial1=SerialCL_Install, Root\myserial1

then I can install them using devcon.

the 'devicedesc' is 'myserial0' and 'myserial1'. but must use static string in inf, how to give the devicedesc from parameters of devcon?

or another solution like:

[MyComp.NTamd64]
%id%=SerialCL_Install, Root\myserial_%id%

both of the devicedesc can auto use part of hardware id from commandline, how to get it work?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant