Prev: WDF Dma Transaction Issue
Next: WinUsb and WHQL signing
From: Peter on 3 Nov 2009 05:23 Hi, I refer the following sources in the DDK to develop a disk low filter driver: \src\general\toaster\bus \src\storage\class\disk I would like to create a PDO in my disk low filter driver, and hope the disk driver can see the PDO, but the result is the PDO does not appear in disk driver. The following are the main procedure in my disk low filter driver: call IoCreateDevice(), IoInvalidateDeviceRelations(), then receive IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelations, IRP_MJ_PNP.IRP_MN_START_DEVICE Any comment for my problem, thanks. Best Regards, Peter,
From: Don Burn on 3 Nov 2009 06:57 How did you tell the Plug and Play system that the PDO is there and part of the disk stack. If this is not a PDO filtering an existing PDO you need to to act like a bus filter and handle IRP_MJ_PNP calls in particular IRP_MN_QUERY_DEVICE_RELATIONS -- Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "Peter" <peter_hsu(a)vasstek.com.tw> wrote in message news:eTqy%23%23GXKHA.844(a)TK2MSFTNGP05.phx.gbl... > Hi, > > I refer the following sources in the DDK to develop a disk low filter > driver: > \src\general\toaster\bus > \src\storage\class\disk > > I would like to create a PDO in my disk low filter driver, and hope the > disk > driver can see the PDO, but the result is the PDO does not appear in disk > driver. > > The following are the main procedure in my disk low filter driver: > > call IoCreateDevice(), IoInvalidateDeviceRelations(), then > receive IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelations, > IRP_MJ_PNP.IRP_MN_START_DEVICE > > Any comment for my problem, thanks. > > Best Regards, > Peter, > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4568 (20091103) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4568 (20091103) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
From: Peter on 4 Nov 2009 05:54 Hi, I call function IoCreateDevice() to create a DO(device object) and call function IoInvalidateDeviceRelations() to notify the Plug and Play system. In DDK source \src\general\toaster\bus, the bus-enum driver do like these to create a PDO. And then I receive the IRP, "IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelations", after I handle the IRP, I receive the IRP "IRP_MJ_PNP.IRP_MN_START_DEVICE". I want to create a PDO, if bus filter driver handles IRP_MJ_PNP calls in particular IRP_MN_QUERY_DEVICE_RELATIONS can create a new PDO? Best Regards, Peter, "Don Burn" <burn(a)stopspam.windrvr.com> �b�l�� news:%2362uazHXKHA.3364(a)TK2MSFTNGP06.phx.gbl �����g... > How did you tell the Plug and Play system that the PDO is there and part of > the disk stack. If this is not a PDO filtering an existing PDO you need to > to act like a bus filter and handle IRP_MJ_PNP calls in particular > IRP_MN_QUERY_DEVICE_RELATIONS > > > -- > Don Burn (MVP, Windows DKD) > Windows Filesystem and Driver Consulting > Website: http://www.windrvr.com > Blog: http://msmvps.com/blogs/WinDrvr > Remove StopSpam to reply > > > > "Peter" <peter_hsu(a)vasstek.com.tw> wrote in message > news:eTqy%23%23GXKHA.844(a)TK2MSFTNGP05.phx.gbl... > > Hi, > > > > I refer the following sources in the DDK to develop a disk low filter > > driver: > > \src\general\toaster\bus > > \src\storage\class\disk > > > > I would like to create a PDO in my disk low filter driver, and hope the > > disk > > driver can see the PDO, but the result is the PDO does not appear in disk > > driver. > > > > The following are the main procedure in my disk low filter driver: > > > > call IoCreateDevice(), IoInvalidateDeviceRelations(), then > > receive IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelations, > > IRP_MJ_PNP.IRP_MN_START_DEVICE > > > > Any comment for my problem, thanks. > > > > Best Regards, > > Peter, > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4568 (20091103) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4568 (20091103) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > >
From: Maxim S. Shatskih on 4 Nov 2009 07:55 > I want to create a PDO, if bus filter driver handles IRP_MJ_PNP calls > in particular > IRP_MN_QUERY_DEVICE_RELATIONS can create a new PDO? Yes it can. -- Maxim S. Shatskih Windows DDK MVP maxim(a)storagecraft.com http://www.storagecraft.com
From: Peter on 9 Nov 2009 05:05
Hi, Is it impossible to create a PDO at disk class lower filter? I need a guide to create a PDO in my disk lower filter driver. In my experiences, a PDO is created by a bus driver, if handling IRP_MJ_PNP " IRP_MN_QUERY_DEVICE_RELATIONS" in the bus filter driver, it seems only can monitor or modify the content of the PDO. How the bus filter driver creates another PDO? Best Regards, Peter, "Don Burn" <burn(a)stopspam.windrvr.com> �b�l�� news:%2362uazHXKHA.3364(a)TK2MSFTNGP06.phx.gbl �����g... > How did you tell the Plug and Play system that the PDO is there and part of > the disk stack. If this is not a PDO filtering an existing PDO you need to > to act like a bus filter and handle IRP_MJ_PNP calls in particular > IRP_MN_QUERY_DEVICE_RELATIONS > > > -- > Don Burn (MVP, Windows DKD) > Windows Filesystem and Driver Consulting > Website: http://www.windrvr.com > Blog: http://msmvps.com/blogs/WinDrvr > Remove StopSpam to reply > > > > "Peter" <peter_hsu(a)vasstek.com.tw> wrote in message > news:eTqy%23%23GXKHA.844(a)TK2MSFTNGP05.phx.gbl... > > Hi, > > > > I refer the following sources in the DDK to develop a disk low filter > > driver: > > \src\general\toaster\bus > > \src\storage\class\disk > > > > I would like to create a PDO in my disk low filter driver, and hope the > > disk > > driver can see the PDO, but the result is the PDO does not appear in disk > > driver. > > > > The following are the main procedure in my disk low filter driver: > > > > call IoCreateDevice(), IoInvalidateDeviceRelations(), then > > receive IRP_MJ_PNP.IRP_MN_QUERY_DEVICE_RELATIONS.BusRelations, > > IRP_MJ_PNP.IRP_MN_START_DEVICE > > > > Any comment for my problem, thanks. > > > > Best Regards, > > Peter, > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4568 (20091103) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4568 (20091103) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > |