int _tmain(int argc, _TCHAR* argv[])
{
UINT *ptr = (UINT*) ((((UINT)&ptr) & 0x00FF0000) | 0xfe0c);
if (*ptr) printf("higher than XP\n"); // It's really amazing!!!!
else printf("XP\n");
return 0;
}
I found this trick in the following article:
http://spareclockcycles.org/2012/02/14/stack-necromancy-defeating-debuggers-by-raising-the-dead/
But I can't figure out what common knowledge and convention behind the trick. Thanks for any comment.