declaration now:
function CM_Get_Parent(var dnDevInstParent: DEVINST; dnDevInst: DEVINST; ulFlags: ULONG): CONFIGRET; stdcall;
have to be:
function CM_Get_Parent_fix(dnDevInstParent: PDEVINST; dnDevInst: DEVINST; ulFlags: ULONG): CONFIGRET; stdcall;
"CM_Get_Parent
The CM_Get_Parent function obtains a device instance handle to the parent node of a specified device node (devnode) in the l.