Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Upcoming OSR Seminars:

Writing WDF Drivers I: Core Concepts, Nashua, NH 15-19 May, 2017
Writing WDF Drivers II: Advanced Implementation Tech., Nashua, NH 23-26 May, 2017
Kernel Debugging and Crash Analysis, Dulles, VA 26-30 June, 2017
Windows Internals & Software Driver Development, Nashua, NH 24-28 July, 2017


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 8  
20 Apr 17 02:08
pritosh mishra
xxxxxx@gmail.com
Join Date: 08 Feb 2017
Posts To This List: 7
Need to change the display name of comport in device manager

We have created a virtual com port, its working fine. Now we have required to change the friendly name of com port. We have created the symbolic name of com port using the desire com port number. We able to connect the com port through serial application but only problem is that not showing desire com port number in device manager. We have tried the below codes before creating the symbolic name but it is also not changing the friendly name. status = IoSetDevicePropertyData( pdx, &PKEY_DeviceInterface_FriendlyName, LOCALE_NEUTRAL, PLUGPLAY_PROPERTY_PERSISTENT, DEVPROP_TYPE_STRING, sizeof(WCHAR)* ChangeFriendlyName.Length, ChangeFriendlyName.Buffer); Getting status success. please do the needful.
  Message 2 of 8  
20 Apr 17 02:08
pritosh mishra
xxxxxx@gmail.com
Join Date: 08 Feb 2017
Posts To This List: 7
Need to change the display name of comport in device manager

We have created a virtual com port. It is working fine. now we have required to change the friendly name of com port from the driver code. We have created symbolic name with desire com port number its working fine but problem is that in device manager not showing the desire com port number. We are using the below code to change the friendly name but its not able to change. Please do the need full and please guide us. status = IoSetDevicePropertyData( pdx, &DEVPKEY_Device_FriendlyName, LOCALE_NEUTRAL, PLUGPLAY_PROPERTY_PERSISTENT, DEVPROP_TYPE_STRING, sizeof(WCHAR)* ChangeFriendlyName.Length, ChangeFriendlyName.Buffer);
  Message 3 of 8  
20 Apr 17 02:51
Davide Ferrario
xxxxxx@metasystem.it
Join Date: 30 Mar 2017
Posts To This List: 6
Need to change the display name of comport in device manager

Hello, sorry but I don't know how to fix your problem. But please, could you try to help me to solve my issue? I'm working on a Virtual Serial port driver too. I started from "Virtual serial driver sample" of "windows-driver-kit-81-cpp.zip" merged with latest WDK 10 update. My problem is that provided example is no working correctly with some serial terminal programs. For example Tera Term is no compatible with example (Tera Term is no able to open correctly created virtual serial port). With Microsoft WDK support I investigate the problem and found that issue is in "queue.cpp" file; "OnDeviceIoControl" funct; "case IOCTL_SERIAL_WAIT_ON_MASK" management. Questions: - have you ever try your driver with Tera Term terminal? it's working? - from which example of WDK do you start to develop? Thank you
  Message 4 of 8  
20 Apr 17 06:58
Johnny Dakovo
xxxxxx@gmail.com
Join Date: 11 Nov 2016
Posts To This List: 18
Need to change the display name of comport in device manager

Hello lifeislovelyjourney, on what Windows version did you test IoSetDevicePropertyData? I experienced that changing the friendly name is not possible for Windows 7 and earlier versions. This issue is NOT documented in MSDN: "IoSetDevicePropertyData" ( https://msdn.microsoft.com/en-us/library/windows/hardware/ff549704%28v=vs.85%29.a spx?f=255&MSPPError=-2147217396 ). But in the MSDN documentation for "IWDFUnifiedPropertyStore::SetPropertyData" it states: "The driver can modify device interface property data only starting with Windows 8." According to the documentation it also should return HRESULT_FROM_WIN32 (STATUS_NOT_SUPPORTED) for this case, Unfortunately this is not true. "SetPropertyData" will not return an error code although device name could not be changed in Windows 7 and earlier. Greetings, Armin 2017-04-20 8:49 GMT+02:00 <xxxxx@metasystem.it>: > Hello, sorry but I don't know how to fix your problem. But please, could > you try to help me to solve my issue? > > I'm working on a Virtual Serial port driver too. I started from "Virtual > serial driver sample" of "windows-driver-kit-81-cpp.zip" merged with > latest WDK 10 update. > > My problem is that provided example is no working correctly with some > serial terminal programs. For example Tera Term is no compatible with > example (Tera Term is no able to open correctly created virtual serial <...excess quoted lines suppressed...> --
  Message 5 of 8  
20 Apr 17 07:38
pritosh mishra
xxxxxx@gmail.com
Join Date: 08 Feb 2017
Posts To This List: 7
Need to change the display name of comport in device manager

Thanks Johnny Dakovo for reply. So there is any another way to change the com port number as per the user choice.Our requirement is to create an user defined com port.
  Message 6 of 8  
20 Apr 17 07:46
pritosh mishra
xxxxxx@gmail.com
Join Date: 08 Feb 2017
Posts To This List: 7
Need to change the display name of comport in device manager

When i have tested on windows 10 then getting an issues. IoSetDevicePropertyData --->> 0xc000000d
  Message 7 of 8  
20 Apr 17 11:49
Johnny Dakovo
xxxxxx@gmail.com
Join Date: 11 Nov 2016
Posts To This List: 18
Need to change the display name of comport in device manager

0xc000000d means STATUS_INVALID_PARAMETER. This means one or more of your provided parameters to IoSetDevicePropertyData are invalid. What type is "ChangeFriendlyName.Buffer"? It has to be WCHAR[] not CHAR[]. 2017-04-20 13:44 GMT+02:00 <xxxxx@gmail.com>: > When i have tested on windows 10 then getting an issues. > IoSetDevicePropertyData --->> 0xc000000d > > --- > NTDEV is sponsored by OSR > > Visit the list online at: <http://www.osronline.com/ > showlists.cfm?list=ntdev> > > MONTHLY seminars on crash dump analysis, WDF, Windows internals and <...excess quoted lines suppressed...> --
  Message 8 of 8  
20 Apr 17 12:19
pritosh mishra
xxxxxx@gmail.com
Join Date: 08 Feb 2017
Posts To This List: 7
Need to change the display name of comport in device manager

0xc000000d means STATUS_INVALID_PARAMETER. This means one or more of your provided parameters to IoSetDevicePropertyData are invalid. What type is "ChangeFriendlyName.Buffer"? It has to be WCHAR[] not CHAR[]. Yes it is WCHAR*. right now I am using the hard coded string. DECLARE_UNICODE_STRING_SIZE(ChangeFriendlyName, 68); RtlInitUnicodeString(&ChangeFriendlyName, L"Communications Ports COM15");
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 03:27.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license