Screen Shot:
[img]http://i42.[censored].com/wvols5.jpg[/img]
I Put this on my site you might need to tweak it a little bit for it to get your video card thou.
Make a Standard EXE place this code into your Form1
add 4 TextBoxes.
Form1
Add this code to a Module
Module Code:
As I said you will need to tweak the code to get it to work with your video card I couldn't think of a way to call the video card saddly so I had it call by looking in the registry to the name of my Video Card :P and then I used the path to where it found my video card in the Registry.
[img]http://i42.[censored].com/wvols5.jpg[/img]
I Put this on my site you might need to tweak it a little bit for it to get your video card thou.
Make a Standard EXE place this code into your Form1
add 4 TextBoxes.
Form1
Code
Private Sub Form_Load()
Dim Processor As String
Dim ProductName As String
Dim Owner As String
Dim wmiObjServices As Object
Dim wbemObjectSet As Object
Dim wbemObject As Object
Dim lngMemory As Long
If Environ("OS") = "Windows_NT" Then
Processor = getstring(HKEY_LOCAL_MACHINE, "HARDWARE\DESCRIPTION\System\CentralProcessor\0", "ProcessorNameString")
Text1.Text = Processor
Set wbemServices = GetObject("winmgmts:\\" & ".")
Set wbemObjectSet = wbemServices.InstancesOf("Win32_physicalmemory")
For Each wbemObject In wbemObjectSet
lngMemory = lngMemory + (wbemObject.Capacity / (1024& * 1024&))
Next
Text2.Text = "Total Physical Memory: " & lngMemory & " MB of RAM"
ProductName = getstring(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName")
Text3.Text = ProductName
Owner = getstring(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows NT\CurrentVersion", "RegisteredOwner")
Text4.Text = Owner
End If
End SubAdd this code to a Module
Module Code:
Code
Public Const HKEY_CLASSES_ROOT = &H80000000
Public Const HKEY_CURRENT_USER = &H80000001
Public Const HKEY_LOCAL_MACHINE = &H80000002
Public Const HKEY_USERS = &H80000003
Public Const HKEY_PERFORMANCE_DATA = &H80000004
Public Const ERROR_SUCCESS = 0&
Declare Function GetTickCount& Lib "kernel32" ()
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal Hkey As Long) As Long
Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String) As Long
Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal Hkey As Long, ByVal lpValueName As String) As Long
Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal Hkey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal Hkey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Public Const REG_SZ = 1
Public Const REG_DWORD = 4
Public Function getstring(Hkey As Long, strPath As String, strValue As String)
Dim keyhand As Long
Dim datatype As Long
Dim lResult As Long
Dim strBuf As String
Dim lDataBufSize As Long
Dim intZeroPos As Integer
r = RegOpenKey(Hkey, strPath, keyhand)
lResult = RegQueryValueEx(keyhand, strValue, 0&, lValueType, ByVal 0&, lDataBufSize)
If lValueType = REG_SZ Then
strBuf = String(lDataBufSize, " ")
lResult = RegQueryValueEx(keyhand, strValue, 0&, 0&, ByVal strBuf, lDataBufSize)
If lResult = ERROR_SUCCESS Then
intZeroPos = InStr(strBuf, Chr$(0))
If intZeroPos > 0 Then
getstring = Left$(strBuf, intZeroPos - 1)
Else
getstring = strBuf
End If
End If
End If
End FunctionAs I said you will need to tweak the code to get it to work with your video card I couldn't think of a way to call the video card saddly so I had it call by looking in the registry to the name of my Video Card :P and then I used the path to where it found my video card in the Registry.

