다음을 통해 공유


PageOutModule (Windows CE 5.0)

Send Feedback

This function swaps out all the pages of a process or DLL that are available for paging.

BOOL PageOutModule(HANDLEhModule,DWORDdwFlags);

Parameters

  • hModule
    [in] Handle to a process or a DLL.
  • dwFlags
    [in] Specifies the operation to be performed. This flag must be one of the three values shown in the following table.
    Value Description
    PAGE_OUT_PROCESS_ONLY Only page out the pages belonging to the process or module.
    PAGE_OUT_DLL_USED_ONLY_BY_THISPROC Page out the process and the dependent DLLs loaded by the process. This flag is ignored if hModule is a DLL.
    PAGE_OUT_ALL_DEPENDENT_DLL Page out the process and all dependent modules. This flag pages out modules that are used by other processes and will cause performance to suffer.

Return Values

This function returns TRUE if the operation succeeded; otherwise, it returns FALSE. To get extended error information, call GetLastError.

Remarks

This function is typically called by the shell, which can determine whether a particular process is inactive so that it can pre-release some of the memory held by the inactive process to improve performance. Call this function only when the system has been idle for a while; otherwise, useful pages might be paged out and the performance of your system might suffer.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

Kernel Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.