Expand Minimize

EngProbeForReadAndWrite function

The EngProbeForReadAndWrite function probes a structure for read and write accessibility.

Syntax


VOID EngProbeForReadAndWrite(
  _Inout_  PVOID Address,
  _In_     SIZE_T Length,
  _In_     ULONG Alignment
);

Parameters

Address [in, out]

Pointer to the structure to be probed.

Length [in]

Specifies the length, in bytes, of the structure to be probed.

Alignment [in]

Specifies the required alignment of the structure. This parameter is expressed as the number of bytes in the base data type. For example, an alignment of 1 indicates that Address be aligned on a BYTE boundary, 2 specifies alignment on a WORD boundary, and 4 specifies alignment on a DWORD boundary.

Return value

None

Remarks

EngProbeForReadAndWrite causes an exception to be raised if the structure pointed to by Address:

  • Does not have a base address that begins on an alignment-byte boundary.

  • Is not both read- and write-accessible.

Requirements

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngProbeForRead

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft