unknown device issues after running winetest

Paul Vriens paul.vriens.wine at gmail.com
Thu May 22 05:57:23 CDT 2008


Alexander Morozov wrote:
> I was mistaken. Enum/ROOT/LEGACY_BOGUS key can be deleted so:
> 
> SetLastError(0xdeadbeef);
> set = pSetupDiGetClassDevsA(&guid, NULL, 0, 0);
> ok(set != INVALID_HANDLE_VALUE, "SetupDiGetClassDevsA failed: %08x\n", 
> GetLastError());
> SetLastError(0xdeadbeef);
> ret = pSetupDiEnumDeviceInfo(set, 0, &devInfo);
> ok(ret, "SetupDiEnumDeviceInfo failed: %08x\n", GetLastError());
> if (pSetupDiRemoveDevice)
> {
>     SetLastError(0xdeadbeef);
>     ret = pSetupDiRemoveDevice(set, &devInfo);
>     todo_wine
>     ok(ret, "SetupDiRemoveDevice failed: %08x\n", GetLastError());
> }
> else
>     skip("SetupDiRemoveDevice is not available\n");
> pSetupDiDestroyDeviceInfoList(set);
> 
> 
> 
I agree that we should use the appropriate setupapi calls stuff to remove stuff.

I however already found some cases were that won't work. So in the end it will 
most likely be a mix of setupapi calls and manual registry key deletion.

-- 
Cheers,

Paul.



More information about the wine-devel mailing list