程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C++ >> C++入門知識 >> 優酷土豆去視頻廣告(源碼)

優酷土豆去視頻廣告(源碼)

編輯:C++入門知識

之前寫的一個工具,好不好用我不知道,我自己用著挺好,編譯環境VC6.0,原理是改HOST文件,不過還改了其他地方,可以看看源碼,暫時支持XP,WIN7沒寫,代碼可能有些亂,有興趣的朋友可以自己改改。

     
     #include   
     #include   
     #include   
     #include  
 
 
       new DEBUG_NEW  
      THIS_FILE  
       THIS_FILE[] =       
       
     
     
       
      CAboutDlg :               
              
          { IDD =                
                  
                    DoDataExchange(CDataExchange* pDX);                    
     
                       
         
                    
        
      CAboutDlg::DoDataExchange(CDataExchange*                    
        
                                
        
     
     
       
     CGuanggaoDlg::CGuanggaoDlg(CWnd* pParent                                           
         m_hIcon = AfxGetApp()->        
      CGuanggaoDlg::DoDataExchange(CDataExchange*                                 
        
          
               
        
     
     
       
          
                
         
         ASSERT((IDM_ABOUTBOX & ) ==         ASSERT(IDM_ABOUTBOX <        
         CMenu* pSysMenu =          (pSysMenu !=                 (!                  pSysMenu->                 pSysMenu->         
                  
         SetIcon(m_hIcon, TRUE);         
         SetIcon(m_hIcon, FALSE);                   
         
           
          TRUE;  
        
                ((nID & ) ==               
           
               
       
                             CPaintDC dc(); 
       
             SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(),        
             
              cxIcon =              cyIcon =              GetClientRect(&              x = (rect.Width() - cxIcon + ) /               y = (rect.Height() - cyIcon + ) /        
             
             
           
          
                   
       
       
       
        
       
       
       
       
           
     CopyFile(,         TCHAR lujing[MAX_PATH] =          TCHAR lujing2[MAX_PATH] =          TCHAR youku[MAX_PATH] =          TCHAR tudou[MAX_PATH] =          HANDLE hFist = FindFirstFile(,&         FindNextFile (hFist, &         FindNextFile (hFist, &           LPSTR dedaoquanlujing =         LPSTR dedaoquanlujing2 =       
          ZeroMemory(&filecaoz,         filecaoz.wFunc =         filecaoz.fFlags = FOF_NOCONFIRMATION|         filecaoz.hNameMappings =         filecaoz.hwnd =         filecaoz.lpszProgressTitle =         filecaoz.pFrom =         SHFileOperation(&       
          ZeroMemory(&filecaoz2,         filecaoz.wFunc =         filecaoz.fFlags = FOF_NOCONFIRMATION|         filecaoz.hNameMappings =         filecaoz.hwnd =         filecaoz.lpszProgressTitle =         filecaoz.pFrom =         SHFileOperation(&       
         SetFileAttributes(dedaoquanlujing,           HANDLE wenjian = CreateFile(dedaoquanlujing,GENERIC_WRITE|GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE|         HANDLE wenjian2 = CreateFile(dedaoquanlujing2,GENERIC_WRITE|GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE|         SetFileAttributes(dedaoquanlujing,         SetFileAttributes(dedaoquanlujing2,          
     
         SetFileAttributes(,         HANDLE wenjianjubing = CreateFile(,GENERIC_WRITE|GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE|           
         
         DWORD sizebuff =           a1[] = {          a2[] = {          a3[] = {          a4[] = {          a5[] = {          a6[] = {          a7[] = {          a8[] = {          a9[] = {          a10[] = {          a11[] = {          a12[] = {          a13[] = {          a14[] = {          a15[] = {          a16[] = {         WriteFile(wenjianjubing,a1,(a1)-,&         WriteFile(wenjianjubing,a2,(a2)-,&         WriteFile(wenjianjubing,a3,(a3)-,&         WriteFile(wenjianjubing,a4,(a4)-,&         WriteFile(wenjianjubing,a5,(a5)-,&         WriteFile(wenjianjubing,a6,(a6)-,&         WriteFile(wenjianjubing,a7,(a7)-,&         WriteFile(wenjianjubing,a8,(a8)-,&         WriteFile(wenjianjubing,a9,(a9)-,&         WriteFile(wenjianjubing,a10,(a10)-,&         WriteFile(wenjianjubing,a11,(a11)-,&         WriteFile(wenjianjubing,a12,(a12)-,&         WriteFile(wenjianjubing,a13,(a13)-,&         WriteFile(wenjianjubing,a14,(a14)-,&         WriteFile(wenjianjubing,a15,(a15)-,&         WriteFile(wenjianjubing,a16,(a16)-,&       
           
     
          b0[] = {          b1[]={          b2[]={          b3[]={          b4[]={          b5[]={          b6[]={          b7[]={          b8[]={          b9[]={          b10[]={          b11[]={         WriteFile(wenjianjubing,b0,(b0)-,&         WriteFile(wenjianjubing,b1,(b1)-,&         WriteFile(wenjianjubing,b2,(b2)-,&         WriteFile(wenjianjubing,b3,(b3)-,&         WriteFile(wenjianjubing,b4,(b4)-,&         WriteFile(wenjianjubing,b5,(b5)-,&         WriteFile(wenjianjubing,b6,(b6)-,&         WriteFile(wenjianjubing,b7,(b7)-,&         WriteFile(wenjianjubing,b8,(b8)-,&         WriteFile(wenjianjubing,b9,(b9)-,&         WriteFile(wenjianjubing,b10,(b10)-,&         WriteFile(wenjianjubing,b11,(b11)-,&         WriteFile(wenjianjubing,a15,(a15)-,&     
          c0[] = {          c1[]={          c2[]={          c3[]={          c4[]={          c5[]={          c6[]={          c7[]={          c8[]={          c9[]={          c10[]={          c11[]={          c12[]={          c13[]={          c14[]={          c15[]={          c16[]={         WriteFile(wenjianjubing,c0,(c0)-,&         WriteFile(wenjianjubing,c1,(c1)-,&         WriteFile(wenjianjubing,c2,(c2)-,&         WriteFile(wenjianjubing,c3,(c3)-,&         WriteFile(wenjianjubing,c4,(c4)-,&         WriteFile(wenjianjubing,c5,(c5)-,&         WriteFile(wenjianjubing,c6,(c6)-,&         WriteFile(wenjianjubing,c7,(c7)-,&         WriteFile(wenjianjubing,c8,(c8)-,&         WriteFile(wenjianjubing,c9,(c9)-,&         WriteFile(wenjianjubing,c10,(c10)-,&         WriteFile(wenjianjubing,c11,(c11)-,&         WriteFile(wenjianjubing,c12,(c12)-,&         WriteFile(wenjianjubing,c13,(c13)-,&         WriteFile(wenjianjubing,c14,(c14)-,&         WriteFile(wenjianjubing,c15,(c15)-,&         WriteFile(wenjianjubing,c16,(c16)-,&      
          d0[] = {          d1[]={          d2[]={         WriteFile(wenjianjubing,d0,(d0)-,&         WriteFile(wenjianjubing,d1,(d1)-,&         WriteFile(wenjianjubing,d2,(d2)-,&       
     
          e0[] = {          e3[]={         WriteFile(wenjianjubing,e0,(e0)-,&         WriteFile(wenjianjubing,e3,(e3)-,&       
     
          f0[] = {          f4[]={         WriteFile(wenjianjubing,f0,(f0)-,&         WriteFile(wenjianjubing,f4,(f4)-,&     
          g0[] = {          g5[]={         WriteFile(wenjianjubing,g0,(g0)-,&         WriteFile(wenjianjubing,g5,(g5)-,&     
          h0[] = {          h6[]={         WriteFile(wenjianjubing,h0,(h0)-,&         WriteFile(wenjianjubing,h6,(h6)-,&     
          j0[] = {          j1[]={          j2[]={          j3[]={          j4[]={          j5[]={         WriteFile(wenjianjubing,j0,(j0)-,&         WriteFile(wenjianjubing,j1,(j1)-,&         WriteFile(wenjianjubing,j2,(j2)-,&         WriteFile(wenjianjubing,j3,(j3)-,&         WriteFile(wenjianjubing,j3,(j3)-,&       
     
      qq1[]={      qq2[]={      qq3[]={     WriteFile(wenjianjubing,qq1,(qq1)-,&     WriteFile(wenjianjubing,qq2,(qq2)-,&     BOOL bWite = WriteFile(wenjianjubing,qq3,(qq3)-,&         (bWite !=               AfxMessageBox(             SetFileAttributes(,             system(                         
              AfxMessageBox(                         
        
           
         TCHAR lujing[MAX_PATH] =          TCHAR lujing2[MAX_PATH] =          TCHAR mingche2[MAX_PATH] =          TCHAR tudou[MAX_PATH] =          HANDLE hFist2 = FindFirstFile(,&         FindNextFile (hFist2, &         FindNextFile (hFist2, &           LPSTR dedaoquanlujing =         LPSTR dedaoquanlujing2 =            system(         SetFileAttributes(,         BOOL bCpy = CopyFile(,         (bCpy !=               AfxMessageBox(                         
              AfxMessageBox(                     
        
               
         ShellExecute(NULL,,     }  

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved