Skip to content

Latest commit

 

History

History
114 lines (89 loc) · 4.5 KB

nf-psapi-enumpagefilesw.md

File metadata and controls

114 lines (89 loc) · 4.5 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:psapi.EnumPageFilesW
EnumPageFilesW function (psapi.h)
Calls the callback routine for each installed pagefile in the system. (Unicode)
EnumPageFiles
EnumPageFiles function [PSAPI]
EnumPageFilesW
K32EnumPageFiles
K32EnumPageFilesW
_win32_enumpagefiles
base.enumpagefiles
psapi.enumpagefiles
psapi/EnumPageFiles
psapi/EnumPageFilesW
psapi/K32EnumPageFiles
psapi/K32EnumPageFilesW
psapi\enumpagefiles.htm
psapi
9289fe3c-a7d9-4acb-aeb6-a50de65db0a2
12/05/2018
EnumPageFiles, EnumPageFiles function [PSAPI], EnumPageFilesA, EnumPageFilesW, K32EnumPageFiles, K32EnumPageFilesA, K32EnumPageFilesW, _win32_enumpagefiles, base.enumpagefiles, psapi.enumpagefiles, psapi/EnumPageFiles, psapi/EnumPageFilesA, psapi/EnumPageFilesW, psapi/K32EnumPageFiles, psapi/K32EnumPageFilesA, psapi/K32EnumPageFilesW
psapi.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
EnumPageFilesW (Unicode) and EnumPageFilesA (ANSI)
Kernel32.lib on Windows 7 and Windows Server 2008 R2; Psapi.lib (if PSAPI_VERSION=1) on Windows 7 and Windows Server 2008 R2; Psapi.lib on Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP
Kernel32.dll on Windows 7 and Windows Server 2008 R2; Psapi.dll (if PSAPI_VERSION=1) on Windows 7 and Windows Server 2008 R2; Psapi.dll on Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP
Windows
19H1
EnumPageFilesW
psapi/EnumPageFilesW
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
Psapi.dll
Psapi.dll
API-MS-Win-Core-PsAPI-Ansi-L1-1-0.dll
API-MS-Win-Core-PsAPI-L1-1-0.dll
KernelBase.dll
EnumPageFiles
EnumPageFilesA
EnumPageFilesW
K32EnumPageFiles
K32EnumPageFilesW
K32EnumPageFilesA

EnumPageFilesW function

-description

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

-parameters

-param pCallBackRoutine [out]

A pointer to the routine called for each pagefile. For more information, see EnumPageFilesProc.

-param pContext [in]

The user-defined data passed to the callback routine.

-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 GetLastError.

-remarks

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 K32EnumPageFiles in Psapi.h and exported in Kernel32.lib and Kernel32.dll. If PSAPI_VERSION is 1, this function is defined as EnumPageFiles in Psapi.h and exported in Psapi.lib and Psapi.dll as a wrapper that calls K32EnumPageFiles.

Programs that must run on earlier versions of Windows as well as Windows 7 and later versions should always call this function as EnumPageFiles. 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.

Note

The psapi.h header defines EnumPageFiles as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

EnumPageFilesProc

PSAPI Functions