How to obtain system memory info (memor consumption, size of free mem space)
-
Question 1 In my program (a MFC project), how to obtain the status of system memory, say, available mem space, etc. Question 2 How to obtain the ProcessID of my program . I would like to use the ProcessID in the program.
-
Question 1 In my program (a MFC project), how to obtain the status of system memory, say, available mem space, etc. Question 2 How to obtain the ProcessID of my program . I would like to use the ProcessID in the program.
Hello, you can use the following function to get the process ID. DWORD GetCurrentProcessId(VOID); The GetCurrentProcessId function returns the process identifier of the calling process. Use the following function to get the System Information, VOID GetSystemInfo( LPSYSTEM_INFO lpSystemInfo // system information ); This function returns information about the current system. Search MSDN , If you want to know more about these functions.
vinsankar
-
Question 1 In my program (a MFC project), how to obtain the status of system memory, say, available mem space, etc. Question 2 How to obtain the ProcessID of my program . I would like to use the ProcessID in the program.