大家可以去看看这个!
http://www.rsac.org/rsac/

解决方案 »

  1.   

    ~~~~~~~~~找这个:
    ZoneIdentityPermission
    在System.Security.Permissions中~关于权限,
    也许对你有帮助?我没研究过~
      

  2.   

    to: napsoft(乡下人) 
    我们是想开发同类的软件,可以借鉴,但是其中技术又有谁会说呢?
    呵呵!
      

  3.   

    using  System;  
    using  System.Diagnostics  ;  
    using  System.Runtime.InteropServices;  
    using  System.Collections;  
    using  System.Net  .Sockets  ;  
    namespace  fupip    
    {  
               public  class  geturl    
               {  
                           public  geturl()  
                           {  
                             
                           }  
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    GetClassName(int    hwnd,  byte[]    lpClassName,Int32[]      nMaxCount);  
     
     
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    GetWindow(int    hwnd,int    wCmd);  
     
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    SendMessage(int    hwnd,int    wMsg,int    wParam,  byte[]      lParam);  
     
     
               public  const  int  GW_CHILD  =  5;  
               public  const  int  GW_HWNDNEXT  =  2;  
               public  const  int  WM_GETTEXT  =13;  
               public  const  int  WM_GETTEXTLENGTH  =  14;  
     
                           public  static  string[]  GetIEURL(string  args)  
                           {  
                                         
                                       string[]  urls;  
                                         
                                       Process[]  ps  =Process.GetProcessesByName(args);  
                                       urls=new  string[ps.Length];  
                                       for(int  i=0;i  <ps.Length;i++)  
                                       {  
                                                   int  hwndIE=(int)ps[i].MainWindowHandle;  
     
                                                   int  hwndEdit=getkid(hwndIE);  
     
                                               
                                                   urls[i]=  gettext(hwndEdit);  
                                               
                                             
     
                                       }  
                                       return  urls;  
                           }  
     
                             
     
                 
                           static  int  getkid(int  hwnd)  
                           {                  
                               byte[]  str=new  byte[100];      
                               Int32[]  len=new  Int32[1];      
                               int  hwndkid=0;  
                               string  classname;  
                               int  handle=0;  
                               len[0]=100;      
                               ArrayList  al=new  ArrayList();  
                                 
     
                               GetClassName(hwnd,str,len);  
                               classname=System.Text.Encoding.ASCII.GetString(str);    
     
     
                           if(classname.Substring(0,4)==  "Edit  ")  
                           {  
                                 
                                 handle=    hwnd;  
                           }  
                             
                               hwndkid=GetWindow(hwnd,GW_CHILD);  
                               
                               while(hwndkid!=0)  
                 
      

  4.   

    using  System;  
    using  System.Diagnostics  ;  
    using  System.Runtime.InteropServices;  
    using  System.Collections;  
    using  System.Net  .Sockets  ;  
    namespace  fupip    
    {  
               public  class  geturl    
               {  
                           public  geturl()  
                           {  
                             
                           }  
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    GetClassName(int    hwnd,  byte[]    lpClassName,Int32[]      nMaxCount);  
     
     
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    GetWindow(int    hwnd,int    wCmd);  
     
               [DllImport(  "user32.dll  ")]  
               public    static  extern  int    SendMessage(int    hwnd,int    wMsg,int    wParam,  byte[]      lParam);  
     
     
               public  const  int  GW_CHILD  =  5;  
               public  const  int  GW_HWNDNEXT  =  2;  
               public  const  int  WM_GETTEXT  =13;  
               public  const  int  WM_GETTEXTLENGTH  =  14;  
     
                           public  static  string[]  GetIEURL(string  args)  
                           {  
                                         
                                       string[]  urls;  
                                         
                                       Process[]  ps  =Process.GetProcessesByName(args);  
                                       urls=new  string[ps.Length];  
                                       for(int  i=0;i  <ps.Length;i++)  
                                       {  
                                                   int  hwndIE=(int)ps[i].MainWindowHandle;  
     
                                                   int  hwndEdit=getkid(hwndIE);  
     
                                               
                                                   urls[i]=  gettext(hwndEdit);  
                                               
                                             
     
                                       }  
                                       return  urls;  
                           }  
     
                             
     
                 
                           static  int  getkid(int  hwnd)  
                           {                  
                               byte[]  str=new  byte[100];      
                               Int32[]  len=new  Int32[1];      
                               int  hwndkid=0;  
                               string  classname;  
                               int  handle=0;  
                               len[0]=100;      
                               ArrayList  al=new  ArrayList();  
                                 
     
                               GetClassName(hwnd,str,len);  
                               classname=System.Text.Encoding.ASCII.GetString(str);    
     
     
                           if(classname.Substring(0,4)==  "Edit  ")  
                           {  
                                 
                                 handle=    hwnd;  
                           }  
                             
                               hwndkid=GetWindow(hwnd,GW_CHILD);  
                               
                               while(hwndkid!=0)