At 11:43 PM 10/21/2012, you wrote:
Ludo
I have experimented with the code you sent me. It compiled after
minimal tweaking of the compiler-mode controls ({$mode delphi}{$H+}
out, {$APPTYPE CONSOLE} in), but it doesn't work in my environment
(Delphi 7, Windows 7/64). The list of ports is successfully
constructed, but then the DisableDevice function returns with
DCRErrDIF_PROPERTYCHANGE.
Do you have any suggestions? I am ready to give up.
A call to GetLastError after failure should give you the reason for
the failure. I assume you are running the program with admin rights.
Possibly you are hitting the problem of 32bit apps trying to setup
64 bit drivers documented here:
<http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/7d731747-724d-4a65-9f12-c6af92fa888f/>http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/7d731747-724d-4a65-9f12-c6af92fa888f/
Thanks. The 32 app/ 64 driver mismatch is probably it. I have a
Windows 7/32 installation somewhere, so maybe I'll find it and see if
the problem is repeatable there. In the meantime, I'll try
GetLastError to see what it says, but it probably won't be something
I can usefully interpret.
Bob
Robert R. Fenichel, M.D.
reply to b...@fenichel.net
see also http://www.fenichel.net
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public