VB3 How VB Can Get Windows Status Information via API Calls (84556)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q84556 SUMMARY
The Visual Basic for Windows program example below demonstrates how
you can obtain system status information similar to the information
displayed in the Windows Program Manager About box. The example
program displays the following information using the Windows API
function(s) indicated:
- The Windows version number with GetVersion
- The kind of CPU (80286, 80386, or 80486) and whether a math
coprocessor is present with GetWinFlags
- Whether Windows is running in enhanced mode or standard mode with
GetWinFlags
- The amount of free memory with GetFreeSpace and GlobalCompact
- The percentage of free system resources with SystemHeapInfo
NOTE: The API function SystemHeapInfo is new to Windows version 3.1
and is not available in Windows, version 3.0. All other API functions
listed above are available in both Windows versions 3.0 or 3.1.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbcode kbWndw KB84556 |
---|
|