Understanding a #define directive
Posted
by Meta
on Stack Overflow
See other posts from Stack Overflow
or by Meta
Published on 2010-06-03T06:03:11Z
Indexed on
2010/06/03
6:14 UTC
Read the original article
Hit count: 200
Looking at the Windows SDK, I found this #define directive for MAKEINTRESOURCEW:
#define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i))))
Can someone explain to me what the heck that means? For example, what would be the value of MAKEINTRESOURCEW(0)? (1)? (-1)?
© Stack Overflow or respective owner