Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Function returns the number of CPUs in the system....
Author:
Peter Riley
E-mail:
Click to e-mail author
Submitted:
12/8/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Windows API
Views:
8918
Function returns the number of CPUs in the system.
Declarations:
Declare Sub GetSystemInfo Lib "kernel32" Alias "GetSystemInfo" (lpSystemInfo As SYSTEM_INFO)
Code:
Public Function NumCPU() As Integer Dim lpSystemInfo As SYSTEM_INFO GetSystemInfo lpSystemInfo NumCPU = lpSystemInfo.dwNumberOfProcessors End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2023 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement