Results 1 to 4 of 4

Thread: GET count of procesor at pc [vb]

  1. #1
    ghadeer is offline Net Builder
    Join Date
    Oct 2009
    Posts
    108
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    Option Explicit
    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
            dwNumberOfProcessors As Long
            dwProcessorType As Long
            dwAllocationGranularity As Long
            dwReserved As Long
    End Type
    Public Enum etProcessorType
        PROCESSOR_INTEL_386 = 386
        PROCESSOR_INTEL_486 = 486
        PROCESSOR_INTEL_PENTIUM = 586
        PROCESSOR_MIPS_R4000 = 4000
        PROCESSOR_ALPHA_21064 = 21064
    End Enum
    Private m_typSystemInfo As SYSTEM_INFO
    
    Public Function NumberOfProcessors() As Long
        GetSystemInfo m_typSystemInfo
        NumberOfProcessors = m_typSystemInfo.dwNumberOfProcessors
    End Function

  2. #2
    Aytac01's Avatar
    Aytac01 is offline Newbie Net Builder
    Join Date
    Feb 2009
    Location
    Webhost Hell!
    Posts
    83
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Looks bad :P
    Looks like I am towards not using it :P
    Jks..

    Nice share...

  3. #3
    ghadeer is offline Net Builder
    Join Date
    Oct 2009
    Posts
    108
    Thanks
    0
    Thanked 0 Times in 0 Posts
    whay bad itsprograming language
    its nice and easy language
    a
    <div class='quotetop'>QUOTE (L33T @ May 7 2009, 12:00 PM) <{POST_SNAPBACK}></div>
    Looks bad :P
    Looks like I am towards not using it :P
    Jks..

    Nice share...[/b]

  4. #4
    Eyes's Avatar
    Eyes is offline Newbie Net Builder
    Join Date
    May 2009
    Location
    In a Party
    Posts
    83
    Thanks
    0
    Thanked 1 Time in 1 Post
    nice share mate

Similar Threads

  1. Count to 10 before an admin/mod posts
    By Coelho in forum General Chat
    Replies: 4
    Last Post: 21 June, 2010, 17:48 PM
  2. Count 1 - 1000
    By DotComBum in forum General Chat
    Replies: 46
    Last Post: 7 May, 2010, 18:25 PM
  3. Count to 100 in images
    By Nofuji in forum General Chat
    Replies: 8
    Last Post: 17 April, 2010, 09:10 AM
  4. How to know GC post count ?
    By GeeOne in forum Announcements and Suggestions
    Replies: 7
    Last Post: 21 November, 2009, 03:49 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •