how to get total/available kernel memory?

Is there an API (callable from User Mode) that will return the
total/available Kernel memory? Thanks.

GetPerformanceInfo in psapi.dll, for XP and later. There are also
performance counters queryable via registry APIs or PDH, for downlevel
systems.


Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Neil Weicher” wrote in message news:xxxxx@ntfsd…
> Is there an API (callable from User Mode) that will return the
> total/available Kernel memory? Thanks.
>

Thanks - thats the ticket. I also noticed NtquerySystemInformation. Have
you used that?

----- Original Message -----
From: “Skywing”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 07, 2007 5:43 PM
Subject: Re:[ntfsd] how to get total/available kernel memory?

> GetPerformanceInfo in psapi.dll, for XP and later. There are also
> performance counters queryable via registry APIs or PDH, for downlevel
> systems.
>
> –
> Ken Johnson (Skywing)
> Windows SDK MVP
> http://www.nynaeve.net
> “Neil Weicher” wrote in message news:xxxxx@ntfsd…
>> Is there an API (callable from User Mode) that will return the
>> total/available Kernel memory? Thanks.
>>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@netlib.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Yes, but I would recommend using the documented API instead. It should be
providing all the information you need given your original request, and it
is fully supported, unlike NtQuerySystemInformation.


Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
“Neil Weicher” wrote in message news:xxxxx@ntfsd…
> Thanks - thats the ticket. I also noticed NtquerySystemInformation. Have
> you used that?
>
> ----- Original Message -----
> From: “Skywing”
> Newsgroups: ntfsd
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, June 07, 2007 5:43 PM
> Subject: Re:[ntfsd] how to get total/available kernel memory?
>
>
>> GetPerformanceInfo in psapi.dll, for XP and later. There are also
>> performance counters queryable via registry APIs or PDH, for downlevel
>> systems.
>>
>> –
>> Ken Johnson (Skywing)
>> Windows SDK MVP
>> http://www.nynaeve.net
>> “Neil Weicher” wrote in message news:xxxxx@ntfsd…
>>> Is there an API (callable from User Mode) that will return the
>>> total/available Kernel memory? Thanks.
>>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@netlib.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>