Home All Groups Group Topic Archive Search About

[.NET 1.1] physical memory

Author
23 Feb 2006 11:45 AM
Adam Klobukowski
How can I programatically check how much of total physical memory
computer has?

--
Semper Fidelis

Adam Klobukowski
at***@gabo.pl

Author
23 Feb 2006 1:23 PM
Marwan Tarek
Hello Adam,

try using WMI there is a class called Win32_PhysicalMemory has property called
capcity returns The total capacity of this physical memory, in bytes.

to generate WMI code try WMI code creator check this post
http://www.sharepointblogs.com/marwantarek/archive/2005/12/20/4419.aspx


Marwan Tarek
http://www.sharepointblogs.com/marwantarek/


Show quote
> How can I programatically check how much of total physical memory
> computer has?
>
> Adam Klobukowski
> at***@gabo.pl
Author
23 Feb 2006 2:07 PM
Adam Klobukowski
Marwan Tarek napisał(a):
> Hello Adam,
>
> try using WMI there is a class called Win32_PhysicalMemory has property
> called capcity returns The total capacity of this physical memory, in
> bytes.
>
> to generate WMI code try WMI code creator check this post
> http://www.sharepointblogs.com/marwantarek/archive/2005/12/20/4419.aspx

Great tool, but:

Reading Win32_PhysicalMemory gives me 0 results...

Moreover it seems to be NT+ only, what about Windows 98?

--
Semper Fidelis

Adam Klobukowski
at***@gabo.pl

AddThis Social Bookmark Button