The information in this article applies to:
SUMMARYPhysMem.exe is a sample driver that demonstrates how to get the total physical memory size in kernel-mode. The function GetPhysicalMemorySize in this driver uses Zw registry functions to query the registry and get this information. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: PhysMem.exeRelease Date: Jun-03-1998 For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. PhysMem.exe contains a sample driver source that shows how to get the total physical memory size in your device driver by querying the registry. Currently there are no documented DDK APIs to get this information. The driver has just DriverEntry, Unload, and GetPhysicalMemorySize routines. The PhysMem.exe driver provides an example of a minimal driver. This is not intended to be used in a production environment. Rather, this sample is intended for educative purposes and as a skeleton driver. Building the Driver and ExamplesTo compile the device driver:
Testing
Additional query words: kbDSupport kbdsh kbNoKeyword
Keywords : kbfile |
Last Reviewed: December 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |