News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Adding a Definition

Started by Slugsnack, November 04, 2008, 06:31:54 PM

Previous topic - Next topic

Slugsnack

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.

BogdanOntanu

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
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro