AddDevice called twice for same volume

Hi there,

I am developing a Volume filter. During debugging on VMWare i am seeing that for each volume AddDevice is being called twice. There are two volume on my system and i am getting 4 calls to AddDevice. Is iit right to get calls to AddDevice twice for the same volume or i am messing something up.

Thanks
Suhail Ansari

Have you run CHKINF?

Check your INF file. My experience has been that AddDevice gets called at
least twice if you have the following sequence:

[Manufacturer]
%Mfg%=MyDeviceSection,NTX86,NTamd64

[MyDeviceSection]
% MyDevice.DeviceDesc%= MyDevice, root\MyDevice

[MyDeviceSection.NTX86]
% MyDevice.DeviceDesc%=VED MyDevice, root\ MyDevice

[MyDeviceSection.NTamd64]
% MyDevice.DeviceDesc%= MyDevice, root\ MyDevice

Drop the non-processor specific section. Or, remove the NTX86 and NTAMD64
sections since it will default to the processor you are installing upon.

Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Friday, April 02, 2010 6:44 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] AddDevice called twice for same volume

Hi there,

I am developing a Volume filter. During debugging on VMWare i am seeing that
for each volume AddDevice is being called twice. There are two volume on my
system and i am getting 4 calls to AddDevice. Is iit right to get calls to
AddDevice twice for the same volume or i am messing something up.

Thanks
Suhail Ansari


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

__________ Information from ESET Smart Security, version of virus signature
database 4995 (20100402) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature
database 4995 (20100402) __________

The message was checked by ESET Smart Security.

http://www.eset.com