C# 等效于 VB DLL 函数声明 (InternetSetOption)
本文关键字:声明 InternetSetOption 函数 DLL VB | 更新日期: 2023-09-27 17:55:39
这个VB代码的C#等价物是什么?
Private Declare Auto Function InternetSetOption Lib "wininet.dll" (ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As IntPtr, ByVal lpdwBufferLength As Integer) As Boolean
这里是:
[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool InternetSetOption(
IntPtr hInternet,
int dwOption,
IntPtr lpBuffer,
int dwBufferLength
);