From: SMTP%"RM@nms.com" 15-DEC-1997 16:41:44.23 To: ntdev@atria.com, kongyun@hal.com CC: Subj: [ntdev] available physical memory -Reply Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Mon, 15 Dec 1997 16:34:14 -0500 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mercury.mv.net (8.8.8/mem-971025) with SMTP id TAA16720 for ; Fri, 12 Dec 1997 19:29:51 -0500 (EST) Received: by gw.atria.com id Fri, 12 Dec 1997 16:02:16 -0500 Received: from relay3.smtp.psi.net by gw.atria.com id Fri, 12 Dec 1997 16:02:09 -0500 Received: from nms.com by relay3.smtp.psi.net (8.8.5/SMI-5.4-PSI) id QAA21608; Fri, 12 Dec 1997 16:02:04 -0500 (EST) Received: from NMS-Message_Server by nms.com with Novell_GroupWise; Fri, 12 Dec 1997 16:01:01 -0500 Message-Id: X-Mailer: Novell GroupWise 4.1 Date: Fri, 12 Dec 1997 15:57:48 -0500 From: Ron Muscosky To: ntdev@atria.com, kongyun@hal.com Subject: [ntdev] available physical memory -Reply Mime-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Sender: owner-ntdev@atria.com Precedence: bulk X-Majordomo-Taboo: ntdev The win32 function call GlobalMemoryStatus() will do this. It returns: typedef struct _MEMORYSTATUS { // mst DWORD dwLength; // sizeof(MEMORYSTATUS) DWORD dwMemoryLoad; // percent of memory in use DWORD dwTotalPhys; // bytes of physical memory DWORD dwAvailPhys; // free physical memory bytes DWORD dwTotalPageFile; // bytes of paging file DWORD dwAvailPageFile; // free bytes of paging file DWORD dwTotalVirtual; // user bytes of address space DWORD dwAvailVirtual; // free user bytes } MEMORYSTATUS, *LPMEMORYSTATUS; >>> Kongyun Ji 12/12/97 03:16pm >>> Does anyone know if there is a kernel or win32 function call to get the available physical memory? TIA -KJ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]