????001:??????
??????XP??user32.dll????????????????3?????????????GDI32.DLLKENNEL32.DLL??NTDLL.DLL????????????????????118??119??73
????Win7 64λ?°???????4?????????????NTDLL.DLL??GDI32.DLL??KERNEL32.DLL??ADVAPI32.DLL????????????????????91??117??125??1
????Win7 32λ?°???????3?????????????NTDLL.DLL??GDI32.DLL??KERNEL32.DLL????????????????????88??117??125
????Win8???????????????汾????????????к???api-ms-win???????
    002??
int nFlg = 0;
int n = *(int*)nFlg;
prinf("n = %d "??n);
???????????????????????????????д???:
int nFlg = 0;
int n = *(int*)(nFlg+0xffff);
prinf("n = %d "??n);
??????????????????д?????
int nFlg = 0;
int n = *(int*)(nFlg+0x10000);
prinf("n = %d "??n);
???????????????????????????0x0000 0000~0x0000 ffff??????汣??????????????????????????????????????????????????????????????
????1)??????????
??????Χ??0x0000 0000~0x0000 FFFF
?????????????????????????????
???????????????????????????????????????????0x0000 0000??????????????????д??????????????????????Υ????????
????2)?????????
??????Χ??0x0001 0000~0x7FFE FFFF
???????????????????????Χ??????????????????Χ????????????Υ???????
????????.exe?????????(DLL???)??????????????????????????????????????????????????÷?????????????
????3)64KB???????
??????Χ??0x7FFF 0000~0x7FFF FFFF
??????????
????4)??????????
??????Χ??0x8000 0000~0xFFFF FFFF
??????????????????????????豸????????????豸I/O??????楨??????????????????????????ε??????????????????????????????????????????
????????http://blog.csdn.net/anye3000/article/details/6674176
????003??????????????????? try {}????????try???????п??????????0x 0000 ffff?????μ?????????????????????п?????????????????μ??????????п??????0xffff??????????????????????????????????
????004:???????????????????????????????????????
???????Google???C++?????????Google Test???(gtest)(??)
<pre name="code" class="cpp"><pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
</pre>