Help!!!!! (URGENT) 
Author Message
 Help!!!!! (URGENT)

Does anybody know how to display the "Physical Memory Available to Windows"
(like if you clicked on the about button in Notepad) in my App. I want the
percentage on a label. I only want that, not the System Information


Regards,

Oliver Tanswell

PS - Either source or web links would be appreciated



Sun, 07 Oct 2001 03:00:00 GMT  
 Help!!!!! (URGENT)

Quote:

>Does anybody know how to display the "Physical Memory Available to Windows"
>(like if you clicked on the about button in Notepad) in my App. I want the
>percentage on a label. I only want that, not the System Information

Put the following declarations in the General Declarations section of a form:

    Private Declare Sub GlobalMemoryStatus Lib "kernel32" _
        (lpBuffer As MEMORYSTATUS)

    Private Type MEMORYSTATUS
        dwLength As Long
        dwMemoryLoad As Long
        dwTotalPhys As Long
        dwAvailPhys As Long
        dwTotalPageFile As Long
        dwAvailPageFile As Long
        dwTotalVirtual As Long
        dwAvailVirtual As Long
    End Type

Code to get memory numbers:

        Dim uMemsts As MEMORYSTATUS
        GlobalMemoryStatus uMemsts
        Me.Print "Total Physical Memory: " & CStr(uMemsts.dwTotalPhys)
        Me.Print "Total Available Memory: " & CStr(uMemsts.dwAvailPhys)

Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner



Sun, 07 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. FTP Problem PLEASE HELP!!! URGENT

2. I NEED HELP !!!! URGENT PLEASE

3. Please help ...... urgent .strange error

4. Please Help.. Urgent

5. Help! URGENT

6. Help!! Urgent:: VB5

7. Please help!! Urgent

8. Help. Urgent

9. !HELP! Urgent Import Excel values to a ListBox

10. HElp !! urgent

11. Help. Urgent

12. Form in Form Help! Urgent

 

 
Powered by phpBB® Forum Software