Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I determine hardware resources?
Message
From
03/12/2002 11:49:00
 
 
To
03/12/2002 11:13:42
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00729021
Message ID:
00729045
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
Here is what my registry shows:

REGEDIT4

[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\MultifunctionAdapter\4\ParallelController\0]
"Component Information"=hex:40,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff
"Identifier"="PARALLEL1"
"Configuration Data"=hex(9):01,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,01,\
01,01,00,78,03,00,00,00,00,00,00,03,00,00,00,02,00,01,00,07,00,00,00,07,00,\
00,00,ff,ff,ff,ff

[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\MultifunctionAdapter\4\SerialController\0]
"Component Information"=hex:78,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,ff
"Identifier"="COM1"
"Configuration Data"=hex(9):01,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,01,\
01,01,00,f8,03,00,00,00,00,00,00,07,00,00,00,02,00,01,00,04,00,00,00,04,00,\
00,00,ff,ff,ff,ff,05,00,00,00,08,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,20,1c,00

[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\MultifunctionAdapter\4\SerialController\1]
"Component Information"=hex:78,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff
"Identifier"="COM2"
"Configuration Data"=hex(9):01,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,01,\
01,01,00,f8,02,00,00,00,00,00,00,07,00,00,00,02,00,01,00,03,00,00,00,03,00,\
00,00,ff,ff,ff,ff,05,00,00,00,08,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,20,1c,00

--------------

You will notice that Parallel Port 1 shows ... ,78,03, ...
This could be interpreted as 0378

And the same is true for the serial ports. So, there is a way to decipher this, but it would take time. There has to be an easier way. If all else fails, looking for VB code that can do it and translate it into VFP code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform