Device removal attempt fails with 5 and new device will be deteced with wrong class

Hi,

i wanted to install my WLAN USB 2.0 device on my WinVista32 system but something terribly went wrong. The device perfectly works on other systems, so there is no hardware problem at this point i can think about. Removing and reinstalling it also works fine on other systems. I pluged in the device, the device installation wizard started to search for preconfigured drivers, then asked me to point to some location with drivers and i did select a folder with the devices drivers. The wizard started to intall the device and while doing something in the background it suddenly disappeared with no message or error. And the i got that “usb device not recognized” tray popup. All other devices basing on network classes work fine, but this one cant be removed or started or any operation on it. I fortunately have a system restore point i can roll back to, but i would like to find the real cause for that and maybe someone can be of help here. The particular networking device instance that cant be removed from the system and fails on any operation (restart,start,stop, etc.) is the “Virtual Machine Network Services Driver #5” Device that fails with 5. I have detailed information on the device:

DeviceName: Virtual Machine Network Services Driver
DeviceFriendlyName: Virtual Machine Network Services Driver #5
DeviceNameAndFriendlyName: Virtual Machine Network Services Driver [Virtual Machine Network Services Driver #5]
DeviceClassPnPEnumeratorName: Net
DeviceClassName: Netzwerkadapter
DeviceClassGUID: 4d36e972-e325-11ce-bfc1-08002be10318
DeviceAddress: 0
DeviceRemovalPolicyOverride: CM_REMOVAL_POLICY_NOT_SET_ZERO
DeviceRemovalPolicyHWDefault: CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL
DeviceRemovalPolicy: CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL
DeviceInstallState: CM_INSTALL_STATE_INSTALLED
DeviceCharacteristicsFlags: DEVICE_CHARACTERISTICS_NO_FLAGS_SET_ZERO
DeviceCapabilityFlags: CM_DEVCAP_NO_FLAGS_SET_ZERO
DeviceConfigurationFlags: CONFIGFLAG_NO_FLAGS_SET_ZERO
DeviceCompatibleIDs: N/A
DeviceHardwareIDs: Cntx_VPCNetS2_MP
DeviceUpperFilters: N/A
DeviceLowerFilters: N/A
DeviceManufacturerName: Microsoft
DeviceBusTypeGuid: 00000000-0000-0000-0000-000000000000
DeviceDriverINFFile: C:\Windows\Inf\oem29.inf
DevicePreinstalledDriverPackageDriverStoreINFFile: C:\Windows\System32\DriverStore\FileRepository\vmnetsrm.inf_1749f5cb\vmnetsrm.inf
DeviceDriverINFFileClassName: Net
DeviceDriverINFFileClassGuid: 4d36e972-e325-11ce-bfc1-08002be10318
DeviceEnumeratorType: ROOT
DevicePhysicalDeviceObjectName: \Device\0000000d
CurrentDeviceHardwareProfile: Undocked Profile
DeviceHardwareLocation: N/A
DeviceHardwareID: Cntx_VPCNetS2_MP
DeviceNodeStatus: CR_SUCCESS
DeviceStatusMessage: DEVICE_HAS_PROBLEM (Code: 31): CM_PROB_FAILED_ADD
DeviceInstanceID: ROOT\CNTX_VPCNETS2_MP\0004
DeviceRegistryKey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e972-e325-11ce-bfc1-08002be10318}\0026
DeviceProblemStatus: DN_ROOT_ENUMERATED, DN_HAS_PROBLEM, DN_DISABLEABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER
DeviceProblemNumber: CM_PROB_FAILED_ADD
DeviceVendorID: N/A
DeviceDeviceID: N/A

The USB 2 WLAN device wil be deteced as this:

“Device Property”,“Device Value”

“DeviceName”,“Unbekanntes Ger?t”
“DeviceFriendlyName”,“N/A”
“DeviceNameAndFriendlyName”,“Unbekanntes Ger?t”
“DeviceClassPnPEnumeratorName”,“USB”
“DeviceClassName”,“USB-Controller”
“DeviceClassGUID”,“36fc9e60-c465-11cf-8056-444553540000”
“DeviceAddress”,“1”
“DeviceRemovalPolicyOverride”,“CM_REMOVAL_POLICY_NOT_SET_ZERO”
“DeviceRemovalPolicyHWDefault”,“CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL”
“DeviceRemovalPolicy”,“CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL”
“DeviceInstallState”,“CM_INSTALL_STATE_INSTALLED”
“DeviceCharacteristicsFlags”,“DEVICE_CHARACTERISTICS_NO_FLAGS_SET_ZERO”
“DeviceCapabilityFlags”,“CM_DEVCAP_REMOVABLE”
“DeviceConfigurationFlags”,“CONFIGFLAG_NO_FLAGS_SET_ZERO”
“DeviceCompatibleIDs”,“USB\UNKNOWN”
“DeviceHardwareIDs”,“USB\UNKNOWN”
“DeviceUpperFilters”,“N/A”
“DeviceLowerFilters”,“N/A”
“DeviceManufacturerName”,“(Standard-USB-Hostcontroller)”
“DeviceBusTypeGuid”,“9d7debbc-c85d-11d1-9eb4-006008c3a19a”
“DeviceDriverINFFile”,“C:\Windows\Inf\usb.inf”
“DevicePreinstalledDriverPackageDriverStoreINFFile”,“C:\Windows\System32\DriverStore\FileRepository\usb.inf_e9aaaa78\usb.inf”
“DeviceDriverINFFileClassName”,“USB”
“DeviceDriverINFFileClassGuid”,“36fc9e60-c465-11cf-8056-444553540000”
“DeviceEnumeratorType”,“USB”
“DevicePhysicalDeviceObjectName”,“\Device\USBPDO-12”
“CurrentDeviceHardwareProfile”,“Undocked Profile”
“DeviceHardwareLocation”,“Port_#0001.Hub_#0008
“DeviceHardwareID”,“USB\UNKNOWN”
“DeviceNodeStatus”,“CR_SUCCESS”
“DeviceStatusMessage”,“DEVICE_UP_AND_RUNNING”
“DeviceInstanceID”,“USB\VID_0000&PID_0000\5&337E5E7B&1&1”
“DeviceRegistryKey”,“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{36fc9e60-c465-11cf-8056-444553540000}\0034”
“DeviceProblemStatus”,“DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER”
“DeviceProblemNumber”,“CM_PROB_SUCCESS”
“DeviceVendorID”,“0000”
“DeviceDeviceID”,“0000”

but should be similar to this (ona windows xp system):

“Device Property”,“Device Value”

“DeviceName”,“Sitecom Wireless Network USB Adapter 54G WL-113”
“DeviceFriendlyName”,“Sitecom Wireless Network USB Adapter 54G WL-113 #2
“DeviceNameAndFriendlyName”,“Sitecom Wireless Network USB Adapter 54G WL-113 [Sitecom Wireless Network USB Adapter 54G WL-113 #2]”
“DeviceClassPnPEnumeratorName”,“Net”
“DeviceClassName”,“Netzwerkadapter”
“DeviceClassGUID”,“4d36e972-e325-11ce-bfc1-08002be10318”
“DeviceAddress”,“1”
“DeviceRemovalPolicyOverride”,“CM_REMOVAL_POLICY_NOT_SET_ZERO”
“DeviceRemovalPolicyHWDefault”,“CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL”
“DeviceRemovalPolicy”,“CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL”
“DeviceInstallState”,“CM_INSTALL_STATE_INSTALLED”
“DeviceCharacteristicsFlags”,“DEVICE_CHARACTERISTICS_NO_FLAGS_SET_ZERO”
“DeviceCapabilityFlags”,“CM_DEVCAP_REMOVABLE, CM_DEVCAP_SURPRISEREMOVALOK”
“DeviceConfigurationFlags”,“CONFIGFLAG_NO_FLAGS_SET_ZERO”
“DeviceCompatibleIDs”,“USB\Class_ff&SubClass_00&Prot_00;USB\Class_ff&SubClass_00;USB\Class_ff”
“DeviceHardwareIDs”,“USB\Vid_0df6&Pid_9071&Rev_4810;USB\Vid_0df6&Pid_9071”
“DeviceUpperFilters”,“N/A”
“DeviceLowerFilters”,“N/A”
“DeviceManufacturerName”,“Sitecom”
“DeviceBusTypeGuid”,“9d7debbc-c85d-11d1-9eb4-006008c3a19a”
“DeviceDriverINFFile”,“C:\WINDOWS\Inf\oem28.inf”
“DevicePreinstalledDriverPackageDriverStoreINFFile”,“N/A”
“DeviceDriverINFFileClassName”,“Net”
“DeviceDriverINFFileClassGuid”,“4d36e972-e325-11ce-bfc1-08002be10318”
“DeviceEnumeratorType”,“USB”
“DevicePhysicalDeviceObjectName”,“\Device\USBPDO-5”
“CurrentDeviceHardwareProfile”,“Profil 1”
“DeviceHardwareLocation”,“USB2.0 WLAN”
“DeviceHardwareID”,“USB\Vid_0df6&Pid_9071&Rev_4810”
“DeviceNodeStatus”,“CR_SUCCESS”
“DeviceStatusMessage”,“DEVICE_UP_AND_RUNNING”
“DeviceInstanceID”,“USB\VID_0DF6&PID_9071\5&36B908A3&0&1”
“DeviceRegistryKey”,“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E972-E325-11CE-BFC1-08002BE10318}\0018”
“DeviceProblemStatus”,“DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER”
“DeviceProblemNumber”,“CM_PROB_SUCCESS”
“DeviceVendorID”,“N/A”
“DeviceDeviceID”,“N/A”

Thats whats setupapi.dev.log on verbose level says:

[Device Install Log]
OS Version = 6.0.6002
Service Pack = 2.0
Suite = 0x0100
ProductType = 1
Architecture = x86

[BeginLog]

>> [Device Uninstall (Device Manager) - ROOT\CNTX_VPCNETS2_MP\0004]
>> Section start 2011/07/06 17:51:38.813
17:51:38.813 cmd: “C:\Windows\system32\mmc.exe” “C:\Windows\system32\devmgmt.msc”
dvi: 17:51:38.816 {DIF_REMOVE}
dvi: 17:51:38.835 Using exported function ‘NetClassInstaller’ in module ‘C:\Windows\system32\NetCfgx.dll’.
dvi: 17:51:38.854 Class installer == NetCfgx.dll,NetClassInstaller
dvi: 17:51:38.857 Using exported function ‘NciDeviceInstall’ in module ‘C:\Windows\system32\nci.dll’.
dvi: 17:51:38.859 CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: 17:51:38.862 Using exported function ‘WlanDeviceClassCoInstaller’ in module ‘C:\Windows\system32\wlaninst.dll’.
dvi: 17:51:38.913 CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: 17:51:38.915 CoInstaller 1: Enter
cci: 17:51:38.917 [NdisCoinst: Enter NcipHandleRemovePreProcessing]
cci: 17:51:38.919 NdisCoinst: Guid {DFFDFA99-E3F6-4A41-844A-310718DF792F}
cci: 17:51:38.922 NdisCoinst: IfType 1, NetLuidIndex 2
cci: 17:51:38.955 [NdisCoinst: Exit NcipHandleRemovePreProcessing]
dvi: 17:51:38.957 CoInstaller 1: Exit
dvi: 17:51:38.959 CoInstaller 2: Enter
dvi: 17:51:39.009 CoInstaller 2: Exit
dvi: 17:51:39.013 Class installer: Enter
cci: 17:51:39.036 [NCI BEGIN REMOVE DEVICE for ROOT\CNTX_VPCNETS2_MP\0004]
cci: 17:51:39.089 !!! NCI: Device is not user-removable
cci: 17:51:39.091 [NCI END REMOVE DEVICE for ROOT\CNTX_VPCNETS2_MP\0004. Result 0x80070005]
!!! dvi: 17:51:39.095 Class installer: failed(0x00000005)!
dvi: 17:51:39.098 CoInstaller 1: Enter (Post Processing)
cci: 17:51:39.101 NdisCoinst: DIF_REMOVE Post-processing called with InstallResult 0x5
dvi: 17:51:39.104 CoInstaller 1: Exit (Post Processing)
dvi: 17:51:39.106 {DIF_REMOVE - exit(0x00000005)}
<<< Section end 2011/07/06 17:51:39.109
<<< [Exit status: SUCCESS]

>> [Device Uninstall (Device Manager) - ROOT\CNTX_VPCNETS2_MP\0004]
>> Section start 2011/07/06 17:53:44.601
17:53:44.601 cmd: “C:\Windows\system32\mmc.exe” “C:\Windows\system32\devmgmt.msc”
dvi: 17:53:44.609 {DIF_REMOVE}
dvi: 17:53:44.628 CoInstaller 1: Enter
cci: 17:53:44.685 [NdisCoinst: Enter NcipHandleRemovePreProcessing]
cci: 17:53:44.737 NdisCoinst: Guid {DFFDFA99-E3F6-4A41-844A-310718DF792F}
cci: 17:53:44.739 NdisCoinst: IfType 1, NetLuidIndex 2
cci: 17:53:44.750 [NdisCoinst: Exit NcipHandleRemovePreProcessing]
dvi: 17:53:44.753 CoInstaller 1: Exit
dvi: 17:53:44.755 CoInstaller 2: Enter
dvi: 17:53:44.757 CoInstaller 2: Exit
dvi: 17:53:44.759 Class installer: Enter
cci: 17:53:44.768 [NCI BEGIN REMOVE DEVICE for ROOT\CNTX_VPCNETS2_MP\0004]
cci: 17:53:44.826 !!! NCI: Device is not user-removable
cci: 17:53:44.830 [NCI END REMOVE DEVICE for ROOT\CNTX_VPCNETS2_MP\0004. Result 0x80070005]
!!! dvi: 17:53:44.882 Class installer: failed(0x00000005)!
dvi: 17:53:44.885 CoInstaller 1: Enter (Post Processing)
cci: 17:53:44.888 NdisCoinst: DIF_REMOVE Post-processing called with InstallResult 0x5
dvi: 17:53:44.939 CoInstaller 1: Exit (Post Processing)
dvi: 17:53:44.942 {DIF_REMOVE - exit(0x00000005)}
<<< Section end 2011/07/06 17:53:44.951
<<< [Exit status: SUCCESS]

And thats what setupapi.app.log on verbose says:

[Device Install Log]
OS Version = 6.0.6002
Service Pack = 2.0
Suite = 0x0100
ProductType = 1
Architecture = x86

[BeginLog]

>> [DIF_DESTROYPRIVATEDATA - ROOT\CNTX_VPCNETS2_MP\0004]
>> Section start 2011/07/06 17:51:39.227
17:51:39.227 cmd: “C:\Windows\system32\mmc.exe” “C:\Windows\system32\devmgmt.msc”
dvi: 17:51:39.242 CoInstaller 1: Enter
dvi: 17:51:39.244 CoInstaller 1: Exit
dvi: 17:51:39.247 CoInstaller 2: Enter
dvi: 17:51:39.299 CoInstaller 2: Exit
dvi: 17:51:39.303 Class installer: Enter
dvi: 17:51:39.354 Class installer: Exit
<<< Section end 2011/07/06 17:51:39.376
<<< [Exit status: SUCCESS]

>> [DIF_ADDPROPERTYPAGE_ADVANCED - ROOT\CNTX_VPCNETS2_MP\0004]
>> Section start 2011/07/06 17:53:36.204
17:53:36.204 cmd: “C:\Windows\system32\mmc.exe” “C:\Windows\system32\devmgmt.msc”
dvi: 17:53:36.214 Using exported function ‘NetClassInstaller’ in module ‘C:\Windows\system32\NetCfgx.dll’.
dvi: 17:53:36.221 Class installer == NetCfgx.dll,NetClassInstaller
dvi: 17:53:36.230 Using exported function ‘NciDeviceInstall’ in module ‘C:\Windows\system32\nci.dll’.
dvi: 17:53:36.241 CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: 17:53:36.246 Using exported function ‘WlanDeviceClassCoInstaller’ in module ‘C:\Windows\system32\wlaninst.dll’.
dvi: 17:53:36.249 CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: 17:53:36.304 CoInstaller 1: Enter
dvi: 17:53:36.306 CoInstaller 1: Exit
dvi: 17:53:36.308 CoInstaller 2: Enter
dvi: 17:53:36.309 CoInstaller 2: Exit
dvi: 17:53:36.311 Class installer: Enter
dvi: 17:53:36.312 Class installer: Exit
dvi: 17:53:36.314 Default installer: Enter
dvi: 17:53:36.316 Default installer: Exit
<<< Section end 2011/07/06 17:53:36.317
<<< [Exit status: SUCCESS (DI_DO_DEFAULT)]

>> [DIF_DESTROYPRIVATEDATA - ROOT\CNTX_VPCNETS2_MP\0004]
>> Section start 2011/07/06 17:53:45.065
17:53:45.065 cmd: “C:\Windows\system32\mmc.exe” “C:\Windows\system32\devmgmt.msc”
dvi: 17:53:45.068 CoInstaller 1: Enter
dvi: 17:53:45.082 CoInstaller 1: Exit
dvi: 17:53:45.085 CoInstaller 2: Enter
dvi: 17:53:45.088 CoInstaller 2: Exit
dvi: 17:53:45.098 Class installer: Enter
dvi: 17:53:45.100 Class installer: Exit
<<< Section end 2011/07/06 17:53:45.103
<<< [Exit status: SUCCESS]

Any ideas why this fails so bad,…?

Thanks in advance,…

regards

K.

Here is more info on the devices:

[Virtual Machine Network Services Driver (Virtual Machine Network Services Driver #5)]
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\CNTX_VPCNETS2_MP\0004)

“Value Name”,“Value Data Type”,“Data”

“LocationInformation”,“String”,“Port_#0001.Hub_#0008
“Capabilities”,“DWord”,“4”
“HardwareID”,“MultiString”,“USB\UNKNOWN”
“CompatibleIDs”,“MultiString”,“USB\UNKNOWN”
“ClassGUID”,“String”,“{36fc9e60-c465-11cf-8056-444553540000}”
“Driver”,“String”,“{36fc9e60-c465-11cf-8056-444553540000}\0034”
“Class”,“String”,“USB”
“Mfg”,“String”,“@usb.inf,%generic.mfg%;(Standard-USB-Hostcontroller)”
“DeviceDesc”,“String”,“@usb.inf,%usb\unknown.devicedesc%;Unbekanntes Ger?t”
“ConfigFlags”,“DWord”,“0”

(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{36fc9e60-c465-11cf-8056-444553540000}\0034)
“Value Name”,“Value Data Type”,“Data”

“InfPath”,“String”,“usb.inf”
“InfSection”,“String”,“BADDEVICE.Dev”
“InfSectionExt”,“String”,“.NT”
“ProviderName”,“String”,“Microsoft”
“DriverDateData”,“Binary”,“00 80 8C A3 C5 94 C6 01”
“DriverDate”,“String”,“6-21-2006”
“DriverVersion”,“String”,“6.0.6002.18005”
“MatchingDeviceId”,“String”,“usb\unknown”
“DriverDesc”,“String”,“Unbekanntes Ger?t”

[Unknown Device]
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{36fc9e60-c465-11cf-8056-444553540000}\0034)
“Value Name”,“Value Data Type”,“Data”

“InfPath”,“String”,“usb.inf”
“InfSection”,“String”,“BADDEVICE.Dev”
“InfSectionExt”,“String”,“.NT”
“ProviderName”,“String”,“Microsoft”
“DriverDateData”,“Binary”,“00 80 8C A3 C5 94 C6 01”
“DriverDate”,“String”,“6-21-2006”
“DriverVersion”,“String”,“6.0.6002.18005”
“MatchingDeviceId”,“String”,“usb\unknown”
“DriverDesc”,“String”,“Unbekanntes Ger?t”

(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0000&PID_0000\5&337E5E7B&1&1)
“Value Name”,“Value Data Type”,“Data”

“LocationInformation”,“String”,“Port_#0001.Hub_#0008
“Capabilities”,“DWord”,“4”
“HardwareID”,“MultiString”,“USB\UNKNOWN”
“CompatibleIDs”,“MultiString”,“USB\UNKNOWN”
“ClassGUID”,“String”,“{36fc9e60-c465-11cf-8056-444553540000}”
“Driver”,“String”,“{36fc9e60-c465-11cf-8056-444553540000}\0034”
“Class”,“String”,“USB”
“Mfg”,“String”,“@usb.inf,%generic.mfg%;(Standard-USB-Hostcontroller)”
“DeviceDesc”,“String”,“@usb.inf,%usb\unknown.devicedesc%;Unbekanntes Ger?t”
“ConfigFlags”,“DWord”,“0”

xxxxx@arcor.de wrote:

Here is more info on the devices:

[Virtual Machine Network Services Driver (Virtual Machine Network Services Driver #5)]
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\CNTX_VPCNETS2_MP\0004)

“Value Name”,“Value Data Type”,“Data”

“LocationInformation”,“String”,“Port_#0001.Hub_#0008

(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0000&PID_0000\5&337E5E7B&1&1)
“Value Name”,“Value Data Type”,“Data”

“LocationInformation”,“String”,“Port_#0001.Hub_#0008

VID 0000 PID 0000 is indicative of a device that has failed during
enumeration.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Hi Tim,

thanks for the answer, but why cant i remove the Virtual NIC Interface and the removal is intercepted with a ACCESS_DENIED? The Unknown Devices can be removed perfectly,…but the other not! Why?

K.