Hi,
I discovered my physical device object has been registered in
HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
How can I change UNKNOWN to the name I woud like ?
Is it a special line to add in the INF file ?
Hi,
I discovered my physical device object has been registered in
HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
How can I change UNKNOWN to the name I woud like ?
Is it a special line to add in the INF file ?
I am not 100% sure about this but if you implement IRP_MN_QUERY_ID and
IRP_MN_QUERY_DEVICE_TEXT for your PDO, you’ll probably see different things
there.
Mat
-----Original Message-----
From: Nicolas Mugnier [mailto:xxxxx@cesa.fr]
Sent: Monday, August 11, 2003 5:46 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Physical Device Object Name
Hi,
I discovered my physical device object has been registered in
HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
How can I change UNKNOWN to the name I woud like ?
Is it a special line to add in the INF file ?
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@guillemot.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
When I call IoRegisterDeviceInterface() in response to AddDevice(), the
returned symbolic link name is
??\Root#UNKOWN#0000#{xxxx-xxxx-xxxx}
or something near that and it seems to match the registry key I wrote.
However IRP_MN_QUERY_ID and IRP_MN_QUERY_DEVICE_TEXT are called after
AddDevice (if I’m not wrong) so how can the registry be modified ?
“Mathieu Routhier” a écrit dans le message de
news:xxxxx@ntdev…
>
> I am not 100% sure about this but if you implement IRP_MN_QUERY_ID and
> IRP_MN_QUERY_DEVICE_TEXT for your PDO, you’ll probably see different
things
> there.
>
> Mat
>
> -----Original Message-----
> From: Nicolas Mugnier [mailto:xxxxx@cesa.fr]
> Sent: Monday, August 11, 2003 5:46 AM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] Physical Device Object Name
>
> Hi,
>
> I discovered my physical device object has been registered in
> HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
>
> How can I change UNKNOWN to the name I woud like ?
>
> Is it a special line to add in the INF file ?
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@guillemot.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
Devices under root are installed by manual execution of Add New Hardware
wizard, and their names are taken from the INF file.
Another way of creating such a device is using SetupDi routines.
MN_QUERY_DEVICE_TEXT and MN_QUERY_ID are irrelevant here, since they are
processed in the bus driver, and we are speaking about the functional driver.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
What device class does your INF register your PDO under? IIRC the UNKNOWN part of a root enumerated ID is based off of the device class for the device.
D
This posting is provided “AS IS” with no warranties, and confers no rights.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Nicolas Mugnier
Sent: Monday, August 11, 2003 9:01 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: Physical Device Object Name
When I call IoRegisterDeviceInterface() in response to AddDevice(), the
returned symbolic link name is
??\Root#UNKOWN#0000#{xxxx-xxxx-xxxx}
or something near that and it seems to match the registry key I wrote.
However IRP_MN_QUERY_ID and IRP_MN_QUERY_DEVICE_TEXT are called after
AddDevice (if I’m not wrong) so how can the registry be modified ?
“Mathieu Routhier” a ?crit dans le message de
news:xxxxx@ntdev…
>
> I am not 100% sure about this but if you implement IRP_MN_QUERY_ID and
> IRP_MN_QUERY_DEVICE_TEXT for your PDO, you’ll probably see different
things
> there.
>
> Mat
>
> -----Original Message-----
> From: Nicolas Mugnier [mailto:xxxxx@cesa.fr]
> Sent: Monday, August 11, 2003 5:46 AM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] Physical Device Object Name
>
> Hi,
>
> I discovered my physical device object has been registered in
> HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
>
> How can I change UNKNOWN to the name I woud like ?
>
> Is it a special line to add in the INF file ?
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@guillemot.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Indeed I installed the driver with the wizard.
What is the section in the INF file I have to change if I want to replace
UNKOWN by the name I want ?
“Maxim S. Shatskih” a ecrit dans le message de
news:xxxxx@ntdev…
>
> Devices under root are installed by manual execution of Add New Hardware
> wizard, and their names are taken from the INF file.
>
> Another way of creating such a device is using SetupDi routines.
>
> MN_QUERY_DEVICE_TEXT and MN_QUERY_ID are irrelevant here, since they are
> processed in the bus driver, and we are speaking about the functional
driver.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
>
>
I’m not very used to INF files and I created with the GenInf utility.
I forgot to say the GenInf asked for a catalog file but I don’t have one. I
provided a fake name.
I think the device class your asking for is “Ports” however I’m not sure so
I put the INF file content below:
;
; Created by GenINF.
;
[Version]
Signature = “$Windows NT$”
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%CESA%
CatalogFile=WDMDriver.cat
DriverVer= 08-08-2003-02
[DestinationDirs]
WDMDriver.Files.x86_12 = 12
[SourceDisksNames.x86]
0=%Desc_x860%
[SourceDisksNames.ia64]
[SourceDisksFiles.x86]
WDMDriver.sys=0,
[SourceDisksFiles.ia64]
[Manufacturer]
%CESA%=CESA
[CESA]
%WDMDriverDesc%=WDMDriver_Inst,WDM001
[WDMDriver_Inst.ntx86]
CopyFiles = WDMDriver.Files.x86_12
[WDMDriver_Inst.ntx86.Services]
AddService = WDMDriver,0x00000002,WDMDriver_Service_Instx86,
WDMDriver_EventLog_Inst
[WDMDriver_Service_Instx86]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\WDMDriver.sys
[WDMDriver.Files.x86_12]
WDMDriver.sys
[WDMDriver_EventLog_Inst]
AddReg = WDMDriver_EventLog_Inst.AddReg
[WDMDriver_EventLog_Inst.AddReg]
HKR,EventMessageFile,%REG_EXPAND_SZ%,“%%SystemRoot%%\System32\IoLogMsg.dll”
HKR,TypesSupported,%REG_DWORD%,7
[Strings]
; *******Localizable Strings*******
CESA= “CESA SCOP SA”
Desc_x860= “CESA SCOP SA Portsdrivers”
WDMDriverDesc= “WDM Driver”
; *******Non Localizable Strings*******
SERVICE_BOOT_START = 0x0
SERVICE_SYSTEM_START = 0x1
SERVICE_AUTO_START = 0x2
SERVICE_DEMAND_START = 0x3
SERVICE_DISABLED = 0x4
SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3
REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001
“Doron Holan” a écrit dans le message de
news:xxxxx@ntdev…
What device class does your INF register your PDO under? IIRC the UNKNOWN
part of a root enumerated ID is based off of the device class for the
device.
D
This posting is provided “AS IS” with no warranties, and confers no rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Nicolas Mugnier
Sent: Monday, August 11, 2003 9:01 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: Physical Device Object Name
When I call IoRegisterDeviceInterface() in response to AddDevice(), the
returned symbolic link name is
??\Root#UNKOWN#0000#{xxxx-xxxx-xxxx}
or something near that and it seems to match the registry key I wrote.
However IRP_MN_QUERY_ID and IRP_MN_QUERY_DEVICE_TEXT are called after
AddDevice (if I’m not wrong) so how can the registry be modified ?
“Mathieu Routhier” a écrit dans le message de
news:xxxxx@ntdev…
>
> I am not 100% sure about this but if you implement IRP_MN_QUERY_ID and
> IRP_MN_QUERY_DEVICE_TEXT for your PDO, you’ll probably see different
things
> there.
>
> Mat
>
> -----Original Message-----
> From: Nicolas Mugnier [mailto:xxxxx@cesa.fr]
> Sent: Monday, August 11, 2003 5:46 AM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] Physical Device Object Name
>
> Hi,
>
> I discovered my physical device object has been registered in
> HKLM\SYSTEM\CurrentControlSet\Enum\Root\UNKNOWN\0000
>
> How can I change UNKNOWN to the name I woud like ?
>
> Is it a special line to add in the INF file ?
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@guillemot.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com