Top Description Inners Fields Methods
com.sun.jna.platform.win32

public Interface Psapi

extends StdCallLibrary
Imports
com.sun.jna.Native, .Pointer, .Structure, .Structure.ByReference, .Structure.FieldOrder, com.sun.jna.platform.win32.BaseTSD.SIZE_T, .BaseTSD.ULONG_PTR, .WinDef.DWORD, .WinDef.HMODULE, .WinNT.HANDLE, com.sun.jna.ptr.IntByReference, com.sun.jna.win32.StdCallLibrary, .W32APIOptions

The process status application programming interface (PSAPI) is a helper library that makes it easier for you to obtain information about processes and device drivers.
Author
Andreas "PAX" Lück, onkelpax-git[at]yahoo.de

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final Psapi
Inherited from com.sun.jna.win32.StdCallLibrary:
FUNCTION_MAPPERSTDCALL_CONVENTION

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.
EnumProcesses
(int[]
A pointer to an array that receives the list of process identifiers
lpidProcess
,
int
The size of the lpidProcess array, in bytes.
cb
,
IntByReference
The number of bytes returned in the pProcessIds array.
lpcbNeeded
)

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

public boolean

Returns:

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.
EnumProcessModules
(WinNT.HANDLE
A handle to the process.
hProcess
,
WinDef.HMODULE[]
An array that receives the list of module handles.
lphModule
,
int
The size of the lphModule array, in bytes.
cb
,
IntByReference
The number of bytes required to store all module handles in the lphModule array.
lpcbNeeded
)

The EnumProcessModules function is primarily designed for use by debuggers and similar applications that must extract module information from another process.

public int

Returns:

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().
GetModuleFileNameEx
(WinNT.HANDLE
A handle to the process that contains the module.
process
,
WinNT.HANDLE
A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.
module
,
Pointer
A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.
lpFilename
,
int
The size of the lpFilename buffer, in characters.
nSize
)

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

public int

Returns:

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().
GetModuleFileNameExA
(WinNT.HANDLE
A handle to the process that contains the module.
process
,
WinNT.HANDLE
A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.
module
,
byte[]
A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.
lpFilename
,
int
The size of the lpFilename buffer, in characters.
nSize
)

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

public int

Returns:

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().
GetModuleFileNameExW
(WinNT.HANDLE
A handle to the process that contains the module.
process
,
WinNT.HANDLE
A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.
module
,
char[]
A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.
lpFilename
,
int
The size of the lpFilename buffer, in characters.
nSize
)

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

public boolean

Returns:

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.
GetModuleInformation
(WinNT.HANDLE
A handle to the process that contains the module. The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights. For more information, see Process Security and Access Rights.
hProcess
,
WinDef.HMODULE
A handle to the module.
hModule
,
Psapi.MODULEINFO
A pointer to the MODULEINFO structure that receives information about the module.
lpmodinfo
,
int
The size of the MODULEINFO structure, in bytes.
cb
)

To get information for the calling process, pass the handle returned by GetCurrentProcess.

public boolean

Returns:

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call Kernel32Util#getLastErrorMessage().
GetPerformanceInfo
(Psapi.PERFORMANCE_INFORMATION
A pointer to a PERFORMANCE_INFORMATION structure that receives the performance information.
pPerformanceInformation
,
int
The size of the PERFORMANCE_INFORMATION structure, in bytes.
cb
)

Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure.

public int

Returns:

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call GetLastError.
GetProcessImageFileName
(WinNT.HANDLE
A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.
hProcess
,
char[]
A pointer to a buffer that receives the full path to the executable file.
lpImageFileName
,
int
The size of the lpImageFileName buffer, in characters.
nSize
)

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

public boolean

Returns:

If the function succeeds, the return value is nonzero.
QueryWorkingSetEx
(WinNT.HANDLE
A Handle to the Process
hProcess
,
Pointer
A pointer to an array of PSAPI_WORKING_SET_EX_INFORMATION structures
pv
,
int
The size of the pv buffer, in bytes.
cb
)

Retrieves extended information about the pages at specific virtual addresses in the address space of the specified process.

Field Detail

INSTANCEback to summary
public static final Psapi INSTANCE

Method Detail

EnumProcessesback to summary
public boolean EnumProcesses(int[] lpidProcess, int cb, IntByReference lpcbNeeded)

Retrieves the process identifier for each process object in the system.
It is a good idea to use a large array, because it is hard to predict how many processes there will be at the time you call EnumProcesses.
To determine how many processes were enumerated, divide the pBytesReturned value by sizeof(DWORD). There is no indication given when the buffer is too small to store all process identifiers. Therefore, if pBytesReturned equals cb, consider retrying the call with a larger array.
To obtain process handles for the processes whose identifiers you have just obtained, call the OpenProcess function.

Parameters
lpidProcess:int[]

A pointer to an array that receives the list of process identifiers

cb:int

The size of the lpidProcess array, in bytes.

lpcbNeeded:IntByReference

The number of bytes returned in the pProcessIds array.

Returns:boolean

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also
MSDN
EnumProcessModulesback to summary
public boolean EnumProcessModules(WinNT.HANDLE hProcess, WinDef.HMODULE[] lphModule, int cb, IntByReference lpcbNeeded)

The EnumProcessModules function is primarily designed for use by debuggers and similar applications that must extract module information from another process.
If the module list in the target process is corrupted or not yet initialized, or if the module list changes during the function call as a result of DLLs being loaded or unloaded, EnumProcessModules may fail or return incorrect information.
It is a good idea to specify a large array of HMODULE values, because it is hard to predict how many modules there will be in the process at the time you call EnumProcessModules.
To determine if the lphModule array is too small to hold all module handles for the process, compare the value returned in lpcbNeeded with the value specified in cb.
If lpcbNeeded is greater than cb, increase the size of the array and call EnumProcessModules again. To determine how many modules were enumerated by the call to EnumProcessModules, divide the resulting value in the lpcbNeeded parameter by sizeof(HMODULE).
The EnumProcessModules function does not retrieve handles for modules that were loaded with the LOAD_LIBRARY_AS_DATAFILE or similar flags. For more information, see LoadLibraryEx.
Do not call CloseHandle on any of the handles returned by this function. The information comes from a snapshot, so there are no resources to be freed.
If this function is called from a 32-bit application running on WOW64, it can only enumerate the modules of a 32-bit process.
If the process is a 64-bit process, this function fails and the last error code is ERROR_PARTIAL_COPY (299).
To take a snapshot of specified processes and the heaps, modules, and threads used by these processes, use the CreateToolhelp32Snapshot function.
Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions.
The PSAPI version number affects the name used to call the function and the library that a program must load.
If PSAPI_VERSION is 2 or greater, this function is defined as K32EnumProcessModules in Psapi.h and exported in Kernel32.lib and Kernel32.dll.
If PSAPI_VERSION is 1, this function is defined as EnumProcessModules in Psapi.h and exported in Psapi.lib and Psapi.dll as a wrapper that calls K32EnumProcessModules.
Programs that must run on earlier versions of Windows as well as Windows 7 and later versions should always call this function as EnumProcessModules.
To ensure correct resolution of symbols, add Psapi.lib to the TARGETLIBS macro and compile the program with -DPSAPI_VERSION=1.
To use run-time dynamic linking, load Psapi.dll.

Parameters
hProcess:WinNT.HANDLE

A handle to the process.

lphModule:WinDef.HMODULE[]

An array that receives the list of module handles.

cb:int

The size of the lphModule array, in bytes.

lpcbNeeded:IntByReference

The number of bytes required to store all module handles in the lphModule array.

Returns:boolean

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also
MSDN
GetModuleFileNameExback to summary
public int GetModuleFileNameEx(WinNT.HANDLE process, WinNT.HANDLE module, Pointer lpFilename, int nSize)

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

Parameters
process:WinNT.HANDLE

A handle to the process that contains the module.

module:WinNT.HANDLE

A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.

lpFilename:Pointer

A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.

nSize:int

The size of the lpFilename buffer, in characters.

Returns:int

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().

GetModuleFileNameExAback to summary
public int GetModuleFileNameExA(WinNT.HANDLE process, WinNT.HANDLE module, byte[] lpFilename, int nSize)

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

Parameters
process:WinNT.HANDLE

A handle to the process that contains the module.

module:WinNT.HANDLE

A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.

lpFilename:byte[]

A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.

nSize:int

The size of the lpFilename buffer, in characters.

Returns:int

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().

GetModuleFileNameExWback to summary
public int GetModuleFileNameExW(WinNT.HANDLE process, WinNT.HANDLE module, char[] lpFilename, int nSize)

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

Parameters
process:WinNT.HANDLE

A handle to the process that contains the module.

module:WinNT.HANDLE

A handle to the module. If this parameter is NULL, GetModuleFileNameEx returns the path of the executable file of the process specified in hProcess.

lpFilename:char[]

A pointer to a buffer that receives the fully qualified path to the module. If the size of the file name is larger than the value of the nSize parameter, the function succeeds but the file name is truncated and null-terminated.

nSize:int

The size of the lpFilename buffer, in characters.

Returns:int

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util#getLastErrorMessage().

GetModuleInformationback to summary
public boolean GetModuleInformation(WinNT.HANDLE hProcess, WinDef.HMODULE hModule, Psapi.MODULEINFO lpmodinfo, int cb)

To get information for the calling process, pass the handle returned by GetCurrentProcess.
The GetModuleInformation function does not retrieve information for modules that were loaded with the LOAD_LIBRARY_AS_DATAFILE flag.
For more information, see LoadLibraryEx.
Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions.
The PSAPI version number affects the name used to call the function and the library that a program must load.
If PSAPI_VERSION is 2 or greater, this function is defined as K32GetModuleInformation in Psapi.h and exported in Kernel32.lib and Kernel32.dll.
If PSAPI_VERSION is 1, this function is defined as K32GetModuleInformation in Psapi.h and exported in Psapi.lib and Psapi.dll as a wrapper that calls K32GetModuleInformation.
Programs that must run on earlier versions of Windows as well as Windows 7 and later versions should always call this function as K32GetModuleInformation.
To ensure correct resolution of symbols, add Psapi.lib to the TARGETLIBS macro and compile the program with -DPSAPI_VERSION=1.
To use run-time dynamic linking, load Psapi.dll.

Parameters
hProcess:WinNT.HANDLE

A handle to the process that contains the module. The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights. For more information, see Process Security and Access Rights.

hModule:WinDef.HMODULE

A handle to the module.

lpmodinfo:Psapi.MODULEINFO

A pointer to the MODULEINFO structure that receives information about the module.

cb:int

The size of the MODULEINFO structure, in bytes.

Returns:boolean

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also
MSDN
GetPerformanceInfoback to summary
public boolean GetPerformanceInfo(Psapi.PERFORMANCE_INFORMATION pPerformanceInformation, int cb)

Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure.

Parameters
pPerformanceInformation:Psapi.PERFORMANCE_INFORMATION

A pointer to a PERFORMANCE_INFORMATION structure that receives the performance information.

cb:int

The size of the PERFORMANCE_INFORMATION structure, in bytes.

Returns:boolean

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call Kernel32Util#getLastErrorMessage().

See Also
MSDN
GetProcessImageFileNameback to summary
public int GetProcessImageFileName(WinNT.HANDLE hProcess, char[] lpImageFileName, int nSize)

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

Parameters
hProcess:WinNT.HANDLE

A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.

lpImageFileName:char[]

A pointer to a buffer that receives the full path to the executable file.

nSize:int

The size of the lpImageFileName buffer, in characters.

Returns:int

If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call GetLastError.

See Also
MSDN
QueryWorkingSetExback to summary
public boolean QueryWorkingSetEx(WinNT.HANDLE hProcess, Pointer pv, int cb)

Retrieves extended information about the pages at specific virtual addresses in the address space of the specified process.

Parameters
hProcess:WinNT.HANDLE

A Handle to the Process

pv:Pointer

A pointer to an array of PSAPI_WORKING_SET_EX_INFORMATION structures

cb:int

The size of the pv buffer, in bytes.

Returns:boolean

If the function succeeds, the return value is nonzero.

See Also
MSDN
com.sun.jna.platform.win32 back to summary

public Class Psapi.MODULEINFO

extends Structure
Class Inheritance
Annotations
@FieldOrder:lpBaseOfDll, SizeOfImage, EntryPoint

Field Summary

Modifier and TypeField and Description
public Pointer
public Pointer
public int
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

EntryPointback to summary
public Pointer EntryPoint
lpBaseOfDllback to summary
public Pointer lpBaseOfDll
SizeOfImageback to summary
public int SizeOfImage

Constructor Detail

MODULEINFOback to summary
public MODULEINFO()
com.sun.jna.platform.win32 back to summary

public Class Psapi.PERFORMANCE_INFORMATION

extends Structure
Class Inheritance
Annotations
@FieldOrder:cb, CommitTotal, CommitLimit, CommitPeak, PhysicalTotal, PhysicalAvailable, SystemCache, KernelTotal, KernelPaged, KernelNonpaged, PageSize, HandleCount, ProcessCount, ThreadCount

Field Summary

Modifier and TypeField and Description
public WinDef.DWORD
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public WinDef.DWORD
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public BaseTSD.SIZE_T
public WinDef.DWORD
public BaseTSD.SIZE_T
public WinDef.DWORD
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

cbback to summary
public WinDef.DWORD cb
CommitLimitback to summary
public BaseTSD.SIZE_T CommitLimit
CommitPeakback to summary
public BaseTSD.SIZE_T CommitPeak
CommitTotalback to summary
public BaseTSD.SIZE_T CommitTotal
HandleCountback to summary
public WinDef.DWORD HandleCount
KernelNonpagedback to summary
public BaseTSD.SIZE_T KernelNonpaged
KernelPagedback to summary
public BaseTSD.SIZE_T KernelPaged
KernelTotalback to summary
public BaseTSD.SIZE_T KernelTotal
PageSizeback to summary
public BaseTSD.SIZE_T PageSize
PhysicalAvailableback to summary
public BaseTSD.SIZE_T PhysicalAvailable
PhysicalTotalback to summary
public BaseTSD.SIZE_T PhysicalTotal
ProcessCountback to summary
public WinDef.DWORD ProcessCount
SystemCacheback to summary
public BaseTSD.SIZE_T SystemCache
ThreadCountback to summary
public WinDef.DWORD ThreadCount

Constructor Detail

PERFORMANCE_INFORMATIONback to summary
public PERFORMANCE_INFORMATION()
com.sun.jna.platform.win32 back to summary

public Class Psapi.PSAPI_WORKING_SET_EX_INFORMATION

extends Structure
Class Inheritance
Annotations
@FieldOrder:VirtualAddress, VirtualAttributes

Field Summary

Modifier and TypeField and Description
public Pointer
public BaseTSD.ULONG_PTR
Inherited from com.sun.jna.Structure:
ALIGN_DEFAULTALIGN_GNUCALIGN_MSVCALIGN_NONECALCULATE_SIZE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int

Returns:

innerValue with the mask and shift applied.
getBitFieldValue
(final int
Size of the Bit Mask
maskLength
,
final int
Amount to Shift innerValue to the right by
rightShiftAmount
)

Returns innerValue after shifting the value rightShiftAmount, and applying a Bit Mask of size maskLength.

public int
getNode()

The NUMA node.

public int
getShareCount()

The number of processes that share this page.

public int
getWin32Protection()

The memory protection attributes of the page.

public boolean
isBad()

If this bit is 1, the page is has been reported as bad.

public boolean
isLargePage()

If this bit is 1, the page is a large page.

public boolean
isLocked()

If this bit is 1, the virtual page is locked in physical memory.

public boolean
isShared()

If this bit is 1, the page can be shared.

public boolean
isValid()

If this bit is 1, the subsequent members are valid; otherwise they should be ignored.

Inherited from com.sun.jna.Structure:
allocateMemoryallocateMemoryautoAllocateautoReadautoReadautoWriteautoWritecacheTypeInfocalculateSizeclearcreateFieldsOrdercreateFieldsOrdercreateFieldsOrdercreateFieldsOrderdataEqualsdataEqualsensureAllocatedequalsfieldOffsetgetAutoReadgetAutoWritegetFieldListgetFieldOrdergetFieldsgetNativeAlignmentgetNativeSizegetNativeSizegetPointergetStringEncodinggetStructAlignmenthashCodenewInstancenewInstancereadreadFieldreadFieldsetAlignTypesetAutoReadsetAutoSynchsetAutoWritesetStringEncodingsizesortFieldstoArraytoArraytoStringtoStringuseMemoryuseMemorywritewriteFieldwriteFieldwriteField

Field Detail

VirtualAddressback to summary
public Pointer VirtualAddress
VirtualAttributesback to summary
public BaseTSD.ULONG_PTR VirtualAttributes

Constructor Detail

PSAPI_WORKING_SET_EX_INFORMATIONback to summary
public PSAPI_WORKING_SET_EX_INFORMATION()

Method Detail

getBitFieldValueback to summary
private int getBitFieldValue(final int maskLength, final int rightShiftAmount)

Returns innerValue after shifting the value rightShiftAmount, and applying a Bit Mask of size maskLength. Example,
innerValue = 0011
getBitFieldValue(2, 1) = 0011 >> 1 & 11 = 01

Parameters
maskLength:int

Size of the Bit Mask

rightShiftAmount:int

Amount to Shift innerValue to the right by

Returns:int

innerValue with the mask and shift applied.

getNodeback to summary
public int getNode()

The NUMA node. The maximum value of this member is 63.

getShareCountback to summary
public int getShareCount()

The number of processes that share this page. The maximum value of this member is 7.

getWin32Protectionback to summary
public int getWin32Protection()

The memory protection attributes of the page. For a list of values see below.

See Also
Memory Protection Constants
isBadback to summary
public boolean isBad()

If this bit is 1, the page is has been reported as bad.

isLargePageback to summary
public boolean isLargePage()

If this bit is 1, the page is a large page.

isLockedback to summary
public boolean isLocked()

If this bit is 1, the virtual page is locked in physical memory.

isSharedback to summary
public boolean isShared()

If this bit is 1, the page can be shared.

isValidback to summary
public boolean isValid()

If this bit is 1, the subsequent members are valid; otherwise they should be ignored.