http://bugs.winehq.org/show_bug.cgi?id=13858
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2008-06-12 19:47:40 --- DEVINST is declared in cfgmgr32.h, with no tricky includes or whatnot to trip it up: typedef DWORD DEVINST, *PDEVINST;
That, in turn, is included by devinst.c: #include "cfgmgr32.h"
I think you have a bug with your compiler setup. If you want to make sure cfgmgr32.h is being included, modify it with something like: #pragma error "Got here" around the DEVINST declaration. If you never see the error, you need to track down why it isn't getting included. If you do, you need to find out why your compiler can't typedef correctly.