Paste: Correct use of UNION-STRUCT?
Author: | tsculpt |
Mode: | factor |
Date: | Mon, 26 Oct 2009 17:17:00 |
Plain Text |
STRUCT: SYMBOLIC_LINK_REPARSE_BUFFER
{ SubstituteNameOffset USHORT }
{ SubstituteNameLength USHORT }
{ PrintNameOffset USHORT }
{ PrintNameLength USHORT }
{ Flags ULONG }
{ PathBuffer WCHAR[1] } ;
STRUCT: MOUNT_POINT_REPARSE_BUFFER
{ SubstituteNameOffset USHORT }
{ SubstituteNameLength USHORT }
{ PrintNameOffset USHORT }
{ PrintNameLength USHORT }
{ PathBuffer WCHAR[1] } ;
STRUCT: GENERIC_REPARSE_BUFFER
{ DataBuffer UCHAR[1] } ;
UNION-STRUCT: REPARSE_DATA_UNION
{ SymbolicLinkReparseBuffer SYMBOLIC_LINK_REPARSE_BUFFER }
{ MountPointReparseBuffer MOUNT_POINT_REPARSE_BUFFER }
{ GenericReparseBuffer GENERIC_REPARSE_BUFFER } ;
STRUCT: REPARSE_DATA_BUFFER
{ ReparseTag ULONG }
{ ReparseDataLength USHORT }
{ Reserved USHORT }
{ ReparseDataUnion REPARSE_DATA_UNION } ;
TYPEDEF: REPARSE_DATA_BUFFER* PREPARSE_DATA_BUFFER
New Annotation