WCHAR szPortName[8];
DWORD dwPortNumber = 0;
DWORD dwSize;
+ DWORD dwValue;
LONG lError;
HKEY hKey;
(LPBYTE)szPortName,
(wcslen(szPortName) + 1) * sizeof(WCHAR));
+ /*
+ * FIXME / HACK:
+ * This is to get the w2k3 parport.sys to work until we have our own.
+ * This setting makes the driver accept resources with an IRQ instead
+ * of only resources without an IRQ.
+ *
+ * We should probably also fix IO manager to actually give devices a
+ * chance to register without an IRQ. CORE-9645
+ */
+ dwValue = 0;
+ RegSetValueExW(hKey,
+ L"FilterResourceMethod",
+ 0,
+ REG_DWORD,
+ (LPBYTE)&dwValue,
+ sizeof(dwValue));
+
RegCloseKey(hKey);
}
}