mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[MSPORTS] Introduce a setting that makes the driver accept resources with an IRQ instead of only resources without an IRQ. Brought to you by The ReactOS Printing Group. CORE-9645
svn path=/trunk/; revision=67509
This commit is contained in:
parent
25b7bb215e
commit
c8824c92cf
1 changed files with 18 additions and 0 deletions
|
@ -381,6 +381,7 @@ InstallParallelPort(IN HDEVINFO DeviceInfoSet,
|
||||||
WCHAR szPortName[8];
|
WCHAR szPortName[8];
|
||||||
DWORD dwPortNumber = 0;
|
DWORD dwPortNumber = 0;
|
||||||
DWORD dwSize;
|
DWORD dwSize;
|
||||||
|
DWORD dwValue;
|
||||||
LONG lError;
|
LONG lError;
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
|
||||||
|
@ -458,6 +459,23 @@ InstallParallelPort(IN HDEVINFO DeviceInfoSet,
|
||||||
(LPBYTE)szPortName,
|
(LPBYTE)szPortName,
|
||||||
(wcslen(szPortName) + 1) * sizeof(WCHAR));
|
(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);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue