开发者

C# equivalent of VB DLL function declaration (InternetSetOption)?

开发者 https://www.devze.com 2023-03-04 15:23 出处:网络
What is the C# equivalent of this VB co开发者_JAVA百科de? Private Declare Auto Function InternetSetOption Lib \"wininet.dll\" (ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As

What is the C# equivalent of this VB co开发者_JAVA百科de?

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


Here it is:

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool InternetSetOption(
    IntPtr hInternet, 
    int dwOption, 
    IntPtr lpBuffer, 
    int dwBufferLength
);
0

精彩评论

暂无评论...
验证码 换一张
取 消