Hi Tracy,
I agree with Dave except I use SIW. Give a vast amount of information
and include a tool to show passwords which has helped me with clients
many a time.
I use WMI for some of my programming needs. And as an example the
following code gives me the processor and all the hard drive
information.
Local objWMIService, objItem, colItems, colProcs
strComputer
strComputer = "."
objWMIService = Getobject("winmgmts:\\" + strComputer +
"\root\cimv2")
colItems = objWMIService.ExecQuery("Select * from
Win32_LogicalDisk")
lnCount = 0
For Each objItem In colItems
If Alltrim(objItem.Description) = "Local Fixed
Disk" .Or. Alltrim(objItem.Description) = "Network Connection"
lnCount = lnCount + 1
Endif
Next
StrQuery = "Select * From Win32_Processor"
objWMIService = Getobject("winmgmts:\\" + strComputer +
"\root\cimv2")
colProcs = objWMIService.ExecQuery(StrQuery,,48)
For Each objItem In colProcs
If Strtran(objItem.Name,"GHz","") = objItem.Name
GetCPUs
=(Round(objItem.CurrentClockSpeed/1024,1)) + "GHz" + " " + objItem.Name
+ Chr(13) + Chr(10) && VbCrLf
Else
GetCPUs = objItem.Name + Chr(13) +
Chr(10) && VbCrLf
Endif
Next
I also have a form which extracts all sorts of data from SIW into tables
for a company who need to be able to find out for instance what licences
of XP they have on all there machines. I can email it to you if you
like.
Cheers
Peter
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Tracy Pearson
Sent: 13 July 2010 16:16
To: [email protected]
Subject: VFP search of hardware
Has anyone done, or can point me to the right API's for gathering
hardware device information. I have a co-worker that is researching if
it is possible for us to detect if a particular device is attached to
the current workstation.
Thanks,
Tracy
Tracy Pearson
PowerChurch Software
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/a57fa4cf19531343a2ee11b57db8e3af100...@server.peterhartcomputers.local
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.