You could try looking for the ACPI enumerator documentation. As an enumerator, it will support many IOCTLs, and it may have some extra ones.
You can then use the device
manager’s “update driver” functionality to replace the win2k supplied
driver with your own.
>You are talking about UpdateDriverForPlugAndPlayDevices?
No, I mean you can actually use the device manager, select the lpt1 port and perform an “update driver” operation to get your driver installed (no programming required).
When I said on-the-fly I meant using UpdateDriverForPlugAndPlayDevices()
Yes, Microsoft locked up the serial and parallel ports when they implemented PnP. I believe they would like to see everyone use USB or FireWire.
Larry
-----Original Message-----
From: xxxxx@goldmail.de [mailto:xxxxx@goldmail.de]
Sent: Tuesday, October 23, 2001 6:29 AM
To: NT Developers Interest List
Subject: [ntdev] Preventing port power down
Larry,
Thank you for your detailed reply.
So if I could just find some way to disable LPTx *and* tell ACPI to keep the parallel port powered on. If I get you right, you see no other way than installing another driver:
an ACPI driver
acts as a bus enumerator and allows the I/O & IRQ’s to be used when a
driver is attached to the hardware otherwise the hardware is turned off.
Bad luck?
You can then use the device
manager’s “update driver” functionality to replace the win2k supplied
driver with your own.
You can also use the SetupDi functions to swap
drivers on-the-fly if thats what you require.
With SetupDiInstallDevice?
I’m afraid that the main problem with both methods is that the driver in case is a legacy driver, and it looks to me that the whole Setup API requires PnP drivers. I haven’t the time to rewrite the driver to PnP just to get it to work on the parallel port (it normally accesses custom hardware).
Another solution I have heard ( from Microsoft ) was to extend the
functionality of the lpt driver to temporarily “give up” its I/O resources
to a calling driver.
Yes, I already wrote such a driver years ago, and it works fine. However, *only* on the parallel port; as mentioned above, I need a solution for parallel *and* custom ports.
Manfred
You are currently subscribed to ntdev as: xxxxx@diebold.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com