The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Slugsnack on November 04, 2008, 06:31:54 PM

Title: Adding a Definition
Post by: Slugsnack on November 04, 2008, 06:31:54 PM
I think my windows.inc is missing the definition for PROCESS_HEAP_ENTRY and I would like to add it, not quite sure how to declare the union part of it though.
Title: Re: Adding a Definition
Post by: BogdanOntanu on November 04, 2008, 07:03:00 PM
For a named union that can be later used inside a structure:

{union_name} UNION
... union members definitions
{union_name} ENDS

For a anonymous UNION inside a structure:

{structure_name} STRUCT
... structure members
  UNION
    ... union members
  ENDS
... other structure members
{structure_name} ENDS

Please note that both structures and unions end with the same keyword: ENDS
Title: Re: Adding a Definition
Post by: Slugsnack on November 05, 2008, 01:42:57 PM
Thanks.