Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Basic System Displayer VB6

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
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 Sub

Add 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 Function

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.
I did one last year also in vb6, here's the source code if you want to mix the 2 programs :

[img]http://img440.imageshack.us/img440/1753/sanstitrefa5.png[/img]

http://www.#/?d=HAZMDUB6


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by [Eprouvez]Jun 9, 2015 01:13 PM 6 373 Jun 9, 2015 01:13 PM
Last Post: SaketSaket
[.NET] by PatchItOct 28, 2014 04:03 PM 2 145 Oct 28, 2014 04:03 PM
Last Post: Skilinium
[.NET] by AzokSep 23, 2014 02:30 PM 10 583 Sep 23, 2014 02:30 PM
Last Post: TheBarret