BYTE, WORD and DWORD macros definition

前端 未结 2 1464
小蘑菇
小蘑菇 2021-01-12 17:52

I am trying to understand, what would be the best way to define BYTE, WORD and DWORD macros, which are mentioned in answers of this qu

2条回答
  •  一生所求
    2021-01-12 18:19

    You have it defined at: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx, and that is already defined in Windows Data Type headers for WinAPI:

    typedef unsigned short WORD;
    typedef unsigned char BYTE;
    typedef unsigned long DWORD;
    

    and it is a type, and not a macro.

提交回复
热议问题