mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-11 09:01:35 +08:00
Add HTTP(S) proxy (#208)
This commit is contained in:
12
Source/GrasscutterTools/Eavesdrop/Internals/NativeMethods.cs
Normal file
12
Source/GrasscutterTools/Eavesdrop/Internals/NativeMethods.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Eavesdrop
|
||||
{
|
||||
internal static class NativeMethods
|
||||
{
|
||||
[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user