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
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
This should come close as l9ng as I am right the a USHORT = WORD. Below is MASM format for a structure.
Regards,
hutch at movsd dot com
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