摘要:        
ClearDirectory(const char* szPath) { if( szPath == NULL ) return; string strPath = szPath; if( strPath.at(strPath.length()-1) != '\\' ) strPath.append("\\"); string strSearch = strPath+"*";...    阅读全文
        
            posted @ 2009-03-12 11:37
ahuo
阅读(438)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
BOOL GetCurrentUserSid(std::string& strSID) { CCommonFunc func; DWORD dwProcessID = func.GetProcessIDFromName("explorer.exe"); if( 0 == dwProcessID ) { return FALSE; } #ifndef _RELEASE_WIN9X ...    阅读全文
        
            posted @ 2009-03-12 11:35
ahuo
阅读(476)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
PostThreadMessage的原型是这样的 BOOL PostThreadMessage( DWORD idThread, UINT Msg, WPARAM wParam, LPARAM lParam ); PostThreadMessage可以用于线程之间的异步通讯,因为它不用等待调用者返回, 这也许是线程通讯中最简单的一种方法了。 但是要注意以下问题 1 ....    阅读全文
        
            posted @ 2009-03-12 11:21
ahuo
阅读(1008)
评论(0)
推荐(0)
        
        
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号