This topic has not yet been rated - Rate this topic

FILE_SEGMENT_ELEMENT union

Applies to: desktop apps only

Union that contains a 64-bit value that points to a page of data. This is used by the ReadFileScatter and WriteFileGather functions.

Syntax

typedef union _FILE_SEGMENT_ELEMENT {
  PVOID64   Buffer;
  ULONGLONG Alignment;
} FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT;

Members

Buffer

PVOID64 representation of 64-bit value.

Assigning a pointer to the Buffer member will sign-extend the value if the code is compiled as 32-bits; this can break 32-bit large-address aware applications running on systems configured with 4-Gigabyte Tuning or running under WOW64 on 64-bit Windows. Therefore, use the PtrToPtr64 macro when assigning pointers to the Buffer member.

Alignment

ULONGLONG representation of 64-bit value.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

WinNT.h (include Windows.h)

See also

File Management Structures
ReadFileScatter
WriteFileGather

 

 

Send comments about this topic to Microsoft

Build date: 4/17/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ