www.pudn.com > DmyNP_source.rar > Clear.c, change:2004-11-21,size:450b


/*--> 
Damayi Net-Phone, 2004/11 (damayi.org) 
<--*/ 
 
#include "src\winmain.h" 
 
//资源清理处理过程 
//备注: 该过程释放进程分配的全局资源, 并且将数据写入INI文件。 
void Clear(void) 
{ 
   if(g_SO.iWSAStar==0) WSACleanup(); 
   if(g_GJ.hMemDC!=NULL) DeleteDC(g_GJ.hMemDC); 
   if(g_GJ.hGuiFont!=NULL) DeleteObject(g_GJ.hGuiFont); 
   if(g_GJ.hDevFont!=NULL) DeleteObject(g_GJ.hDevFont); 
   if(g_SO.bAvaiINI) WriteIniFile(&g_IV); 
   return; 
}