📄 csdn_文档中心_win32 api资源分配释放速查,防止代码资源泄露.htm
字号:
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>FreeLibrary<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Memory<SPAN
style="mso-spacerun: yes">
</SPAN>AllocDStoCSAlias<SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>FreeSelector<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>AllocSelector<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>FreeSelector<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalAlloc<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalFree<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalDOSAlloc<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalDOSFr<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalFix<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalUnfix<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalLock<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalUnlock<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalPageLock<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalPageUnlock<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GlobalRealloc<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalFree<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-spacerun: yes"> </SPAN>GlobalWire<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>GlobalUnwire<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>LocalAlloc<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>LocalFree<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>LocalLock<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>LocalUnlock<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>LocalRealloc<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>LocalFree<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Menu<SPAN
style="mso-spacerun: yes">
</SPAN>CreateMenu<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DestroyMenu<SPAN
style="mso-spacerun: yes">
</SPAN>No<SPAN style="mso-spacerun: yes"> </SPAN>%</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>CreatePopupMenu<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DestroyMenu<SPAN
style="mso-spacerun: yes">
</SPAN>No<SPAN style="mso-spacerun: yes"> </SPAN>%</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>LoadMenu<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DestroyMenu<SPAN
style="mso-spacerun: yes">
</SPAN>No<SPAN style="mso-spacerun: yes"> </SPAN>%</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>LoadMenuIndirect<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DestroyMenu<SPAN
style="mso-spacerun: yes">
</SPAN>No<SPAN style="mso-spacerun: yes"> </SPAN>%</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>GetSystemMenu<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>N/A<SPAN
style="mso-spacerun: yes">
</SPAN>No</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>MetaFile<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>CreateMetaFile<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DeleteMetaFile<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Palette<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>CreatePalette<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DeleteObject<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US>Pen<SPAN
style="mso-spacerun: yes">
</SPAN>CreatePen<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DeleteObject<SPAN
style="mso-spacerun: yes">
</SPAN>Yes</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN>CreatePenIndirect<SPAN
style="mso-spacerun: yes">
</SPAN><SPAN style="mso-tab-count: 1"> </SPAN><SPAN
style="mso-tab-count: 1">
</SPAN>DeleteObject<SPAN
style="mso-spacerun: yes">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -