How to get physical memory size using ZwQuerySection?

Is it possible to get size of system memory using ZwQuerySection() ? Is it is same as MEMORYSTATUSEX?

Is it possible to drive nails with a shoe?

The OP want’s to drive nails with his forehead. He asked these questions on
the Microsoft forum, and did not like the answers so is hoping for a
different answer here. He obviously does not understand Albert Einstein’s
famous quote “Insanity: doing the same thing over and over again and
expecting different results.”

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@broadcom.com
Sent: Monday, August 01, 2016 8:32 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to get physical memory size using ZwQuerySection?

Is it possible to drive nails with a shoe?


NTDEV is sponsored by OSR

Visit the list online at:
http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at
http:</http:></http:></http:>

>Is it possible to drive nails with a shoe?

Actually, your example is not as clever as you may think. Everything depends on how often you have to do it. If you have to pound a single nail on Sunday, have do it straight away, and are pretty sure you would not have to do it again anytime soon…well, then doing it the way mentioned above is, probably, indeed, easier than waiting until the shops get opened (i.e. until Monday) so that you can drive to a shop and buy a hammer. In terms of programming, this is more or less the same question as whether it is better to do a bit of cumbersome copying/editing job manually, or to write a script that automates your task and generates the code for you. Everything depends on whether the automation that a script offers is worth an effort of writing the one, which, in turn,depends on how much effort creating your target file manually takes ( and/or, in the long, on run how often you may make use of your script )…

Anton Bassov

What should I use to drive nails: a shoe or a bottle?

>What should I use to drive nails:

A naildriver, of course…

a shoe or a bottle

The beauty of the above mentioned term is that you can assign any meaning to it - a stone, a bottle, a frying pan, a Windows laptop that disallows defenestration by means of a firmware lock, etc,etc,etc…

Anton Bassov

>> a shoe or a bottle

Woman’s shoe with a spiked heel (not so thin) is a rather good tool to drive a nail, better then everything else listed here.

Nevertheless, this reminds me on a modern Russian proverb “if you have lack of birds - even asshole is a nightingale”.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com