473,394 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Finding Physical Memory Programmatically

How can I find the physical memory on a given box programmatically using C#?
Is there a windows API method that I need to call?

Thanks.
Raghu/..
Nov 16 '05 #1
3 5839
On Fri, 25 Feb 2005 22:56:01 -0700, "Raghu" <Ra***@Nospam.com> wrote:
How can I find the physical memory on a given box programmatically using C#?
Is there a windows API method that I need to call?

Thanks.
Raghu/..

Have you check the System.Environment class ? I know you can check
some specific information about the system with it.
Michael Hughes - Silverton, Oregon
http://wou.ath.cx/Trivia
http://wou.ath.cx/AmateurRadio

Nov 16 '05 #2
Check out:
http://www.c-sharpcorner.com/Code/20...WithWMI2JO.asp

--
Adam Clauss
ca*****@tamu.edu

"Raghu" <Ra***@Nospam.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
How can I find the physical memory on a given box programmatically using
C#?
Is there a windows API method that I need to call?

Thanks.
Raghu/..

Nov 16 '05 #3
I simply used GlobalMemoryStatusEx windows API call.

Thanks for your help.

Raghu/..

"Raghu" <Ra***@Nospam.com> wrote in message
news:e8**************@TK2MSFTNGP09.phx.gbl...
How can I find the physical memory on a given box programmatically using C#? Is there a windows API method that I need to call?

Thanks.
Raghu/..

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Twan Kennis | last post by:
Hi, I have a DB2 database on the IBM iSeries platform, on which I created several Stored Procedures with the SQLCODE as a return-parameter. These Stored Procedures are called from a Windows...
9
by: Olumide | last post by:
Thats the question. I know about virtual memory, and the MMU. I just wonder if array members guaranteed to be contiguous in physical memory (and if so, why). Thanks, Olumide
4
by: Sharon | last post by:
I have an application that fails to allocate all its memory on physical memory. I have a Windows XP with 2 GByte RAM. Can anybody tell me how to configure the allowed physical memory for each...
2
by: doudehou | last post by:
Hi guys, I want to get the physical memory status, say, the total amount of physical memory, the free memory, and so on, from the javascript, is it a mission impossible? Thank you very much...
6
by: Grant | last post by:
I need to write data to a physical address between 0xD0000 and 0xDFFFF I have download the windows DDK but have no experience with this and would like to get up and running very quickly can any one...
2
by: OgaW | last post by:
Hi, What is the difference bet. Physical memory usage and Kernal memory usage? Physical memory: available vs system cache? kernal memory: paged vs nonpaged? Anyone can explain in details...
3
by: john | last post by:
I would like to view physical memory that is mapped to a pci board. I am using a tool called WinIO to try to create a virtual address to that physical memory. It works for both read and write of...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.