Поделиться через


VirtualSetAttributesEx (Compact 2013)

3/28/2014

This function enables driver developers to change the per-page attributes for a range of virtual memory, which is usually copied from a physical location not known to the kernel. This function is callable only in kernel mode.

Syntax

BOOL VirtualSetAttributes (
    HANDLE hProc,
    LPVOID lpvAddress,
  DWORD cbSize,
  DWORD dwNewFlags,
  DWORD dwMask,
    LPDWORD lpdwOldFlags
);

Parameters

  • hProc
    [in] Handle to a process owning virtual memory whose attributes are to be changed.
  • lpvAddress
    [in] Start address of the virtual memory whose attributes are to be changed.
  • cbSize
    [in] Length, in bytes, of the virtual memory whose attributes are to be changed.
  • dwNewFlags
    [in] Specifies the new value of the bits to be set.
  • dwMask
    [in] Specifies which bits are to be changed.
  • lpdwOldFlags
    [in] If this parameter is not NULL, *lpdwOldFlags will contain the original value of the page entry of the first page upon return.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

For more information, see VirtualSetAttributes.

Requirements

Header

mkfuncs.h

Library

coredll.lib

See Also

Reference

Memory Management Functions

Other Resources

VirtualSetAttrib