计算类型长度的函数typedef struct
{
int ROP;
int SrcTop;
int SrcLeft;
int SrcWidth;
int SrcHeight;
int DstTop;
int DstLeft;
int DstWidth;
int DstHeight;
int PatternX,PatternY;
int Pattern[8*8];
int Attribute;
int ColorBg;
int ColorFg;
} BLT_INFO;
main()
{
BLT_INFO xdata blt;
int offset;
offset=(char *)&(blt.DstHeight)-(char *)&(blt);
while(1);
}
点击浏览该文件