2.2.2.5 MSG_ENUM_STRUCT

MSG_ENUM_STRUCT is a container structure holding either one MSG_INFO_0_CONTAINER container or one MSG_INFO_1_CONTAINER container. The structure also has a member to indicate what type of container it contains.

 typedef struct _MSG_ENUM_STRUCT {
   DWORD Level;
   [switch_is(Level)] union _MSG_ENUM_UNION {
     [case(0)] 
       LPMSG_INFO_0_CONTAINER Level0;
     [case(1)] 
       LPMSG_INFO_1_CONTAINER Level1;
   } MsgInfo;
 } MSG_ENUM_STRUCT,
  *PMSG_ENUM_STRUCT,
  *LPMSG_ENUM_STRUCT;

Level: A 32-bit enumerated number that MUST denote the type of structure contained in MsgInfo. It must be either 0 or 1.

MsgInfo: A pointer to a buffer that MUST contain a union that consists of either an MSG_INFO_0_CONTAINER structure or an MSG_INFO_1_CONTAINER structure.

Level0: If Level is 0, MsgInfo MUST contain an MSG_INFO_0_CONTAINER named Level0.

Level1: If Level is 1, MsgInfo MUST contain an MSG_INFO_1_CONTAINER named Level1.