Hi Everybody
How to change the struct to a win32asm struct
  typedef struct tftphdr {
USHORT tu_opcode;
union
{
USHORT tu_block;
USHORT tu_code;
char tu_stuff[1];
}th_u;
char th_data[1];
}TFTP_HDR, *PTFTP_HDR;


Thank YOU
Posted on 2005-09-14 21:13:39 by SexyPink
This should come close as l9ng as I am right the a USHORT = WORD. Below is MASM format for a structure.


tftphdr STRUCT
  tu_opcode WORD ?
  UNION
    tu_block WORD ?
    tu_code  WORD ?
    tu_stuff BYTE ?
  ENDS
  th_data BYTE ?
tftphdr ENDS


Regards,

hutch at movsd dot com
Posted on 2005-09-15 07:10:07 by hutch--