|
-
Nov 19th, 2002, 04:25 PM
#1
Thread Starter
Frenzied Member
Retrieving System Information
Hi! All,
I would like to retrive these things using VB, please help:
ComputerName
RAM
HDD
Processor
And the Operating System that is running...
Thanks!!!
-
Nov 19th, 2002, 04:29 PM
#2
Banned
You can use the GetSystemInfo API to get some of the things you listed.
This is an example how to use it:
VB Code:
Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
Private Type SYSTEM_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Private Sub Form_Load()
Dim SInfo As SYSTEM_INFO
'KPD-Team 1998
'URL: [url]http://www.allapi.net/[/url]
'Set the graphical mode to persistent
Me.AutoRedraw = True
'Get the system information
GetSystemInfo SInfo
'Print it to the form
Me.Print "Number of procesor:" + str$(SInfo.dwNumberOrfProcessors)
Me.Print "Processor:" + str$(SInfo.dwProcessorType)
Me.Print "Low memory address:" + str$(SInfo.lpMinimumApplicationAddress)
Me.Print "High memory address:" + str$(SInfo.lpMaximumApplicationAddress)
End Sub
It has more potential.....
-
Nov 19th, 2002, 05:02 PM
#3
-
Nov 19th, 2002, 05:05 PM
#4
Banned
That's possible too. But it gives you wayyyyy to much information if all he needs are just the 5 things he mentioned.
-
Nov 19th, 2002, 05:18 PM
#5
Sleep mode
so nice job Michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|