How can I programatically check how much of total physical memory
computer has?

--
Semper Fidelis

Adam Klobukowski
atari@gabo.pl

Re: [.NET 1.1] physical memory by Marwan

Marwan
Thu Feb 23 07:23:47 CST 2006

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/


> How can I programatically check how much of total physical memory
> computer has?
>
> Adam Klobukowski
> atari@gabo.pl



Re: [.NET 1.1] physical memory by Adam

Adam
Thu Feb 23 08:07:10 CST 2006

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
atari@gabo.pl