我想获得本地保存的指定Url的Cookie的内容
[System.Runtime.InteropServices.DllImport("wininet.dll",   CharSet   =   System.Runtime.InteropServices.CharSet.Auto,   SetLastError   =   true)]   
                  public   static   extern   bool   InternetGetCookie(string   lpszUrlName,   string   lpszCookieName,   StringBuilder   lpszCookieData,   ref   int   lpdwSize);   
    
    
[System.Runtime.InteropServices.DllImport("kernel32.dll")]   
internal   static   extern   Int32   GetLastError();   
    
public   static   string   GetCookie(string   url)   //Win32   API   
{   
    int   size   =   1000;   
    StringBuilder   sb   =   new   StringBuilder(size);   
    
    if   (!InternetGetCookie(url,   "",   sb,   ref   size))   
    {   
       Console.WriteLine("Error   code:{0}",   GetLastError());   
    }   
    return   sb.ToString();   
}   
    
    
      static   void   Main(string[]   args)   
      {   
          System.Console.WriteLine(GetCookie("http://www.google.com/"));   
      }   
以上代码,是CSDN的一个帖子(http://topic.csdn.net/t/20060319/05/4624003.html#)提供的,里面说"不支持xp sp2",但我用的是WIN2003 SP2,同样出现259的错误(没有可用的数据).请问大家,如果在win XP的SP2下怎么解决?  win 2003下呢?