试试下面的签名
public partial class NativeMethods {
/// Return Type: BOOL->int
///hInternet: void*
///dwOption: DWORD->unsigned int
///lpBuffer: LPVOID->void*
///dwBufferLength: DWORD->unsigned int
[System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint="InternetSetOption")]
[return: System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)]
public static extern bool InternetSetOption([System.Runtime.InteropServices.InAttribute()] System.IntPtr hInternet, uint dwOption, [System.Runtime.InteropServices.InAttribute()] System.IntPtr lpBuffer, uint dwBufferLength) ;
}
这个网站是真棒,谢谢。 – ryeguy 2009-10-20 20:39:50