Windows Process Status Helpers API 7

 

 

 

 

 

PSAPI Reference

 

The following sections list the PSAPI functions and structures

 

PSAPI Functions

 

The following are the PSAPI functions.

 

Function

Description

EmptyWorkingSet()

- Removes as many pages as possible from the working set of the specified process.

EnumDeviceDrivers()

- Retrieves the load address for each device driver in the system.

EnumPageFiles()

- Calls the callback routine for each installed pagefile in the system.

EnumProcesses()

- Retrieves the process identifier for each process object in the system.

EnumProcessModules()

- Retrieves a handle for each module in the specified process. To control whether a 64-bit application enumerates 32-bit modules, 64-bit modules, or both types of modules, use the EnumProcessModulesEx() function.

EnumProcessModulesEx()

- Retrieves a handle for each module in the specified process that meets the specified filter criteria.

GetDeviceDriverBaseName()

- Retrieves the base name of the specified device driver.

GetDeviceDriverFileName()

- Retrieves the path available for the specified device driver.

GetMappedFileName()

- Checks whether the specified address is within a memory-mapped file in the address space of the specified process. If so, the function returns the name of the memory-mapped file.

GetModuleBaseName()

- Retrieves the base name of the specified module.

GetModuleFileNameEx()

- Retrieves the fully-qualified path for the file containing the specified module.

GetModuleInformation()

- Retrieves information about the specified module in the MODULEINFO structure.

GetPerformanceInfo()

- Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure.

GetProcessImageFileName()

- Retrieves the name of the executable file for the specified process.

GetProcessMemoryInfo()

- Retrieves information about the memory usage of the specified process.

GetWsChanges()

- Retrieves information about the pages that have been added to the working set of the specified process since the last time this function or the InitializeProcessForWsWatch() function was called. To retrieve extended information, use the GetWsChangesEx() function.

GetWsChangesEx()

- Retrieves extended information about the pages that have been added to the working set of the specified process since the last time this function or the InitializeProcessForWsWatch() function was called.

InitializeProcessForWsWatch()

- Initiates monitoring of the working set of the specified process. You must call this function before calling the GetWsChanges() function.

QueryWorkingSet()

- Retrieves information about the pages currently added to the working set of the specified process.

QueryWorkingSetEx()

- Retrieves extended information about the pages currently added to the working set of the specified process.

 

PSAPI Structures

 

The following are the PSAPI structures.

 

Function

Description

ENUM_PAGE_FILE_INFORMATION

- Contains information about a pagefile.

MODULEINFO

- Contains the module load address, size, and entry point.

PERFORMANCE_INFORMATION

- Contains performance information.

PROCESS_MEMORY_COUNTERS

- Contains the memory statistics for a process.

PROCESS_MEMORY_COUNTERS_EX

- Contains extended memory statistics for a process.

PSAPI_WORKING_SET_BLOCK

- Contains working set information for a page.

PSAPI_WORKING_SET_EX_BLOCK

- Contains extended working set information for a page.

PSAPI_WORKING_SET_EX_INFORMATION

- Contains extended working set information for a process.

PSAPI_WORKING_SET_INFORMATION

- Contains working set information for a process.

PSAPI_WS_WATCH_INFORMATION

- Contains information about a page added to a process working set.

PSAPI_WS_WATCH_INFORMATION_EX

- Contains extended information about a page added to a process working set.

 

 

 

 

< Win32 Process Status Help APIs 6 | Process Status Help APIs Index | Win32 Programming | Thread Synchronization Programming >