KEMBAR78
Replace `SafeLocalAllocHandle` in `System.Net.HttpListener` by xtqqczze · Pull Request #82411 · dotnet/runtime · GitHub
Skip to content

Conversation

xtqqczze
Copy link
Contributor

@xtqqczze
Copy link
Contributor Author

xtqqczze commented Feb 20, 2023

Noticeably, the pRequestBuffer and uint requestBufferLength parameters in Interop.HttpApi are named Reserved1 and Reserved2 in the public API.

[DllImport("HTTPAPI.dll", ExactSpelling = true, PreserveSig = false)]
[SupportedOSPlatform("windows6.0.6000")]
public unsafe static extern uint HttpSendResponseEntityBody([In] HANDLE RequestQueueHandle, [In] ulong RequestId, [In] uint Flags, [Optional][In] ushort EntityChunkCount, [Optional][In][NativeArrayInfo(CountParamIndex = 3)] HTTP_DATA_CHUNK* EntityChunks, [Optional][Out] uint* BytesSent, [Optional][Reserved] void* Reserved1, [Optional][Reserved] uint Reserved2, [Optional][In] OVERLAPPED* Overlapped, [Optional][In] HTTP_LOG_DATA* LogData);

[DllImport("HTTPAPI.dll", ExactSpelling = true, PreserveSig = false)]
[SupportedOSPlatform("windows6.0.6000")]
public unsafe static extern uint HttpSendHttpResponse([In] HANDLE RequestQueueHandle, [In] ulong RequestId, [In] uint Flags, [In] HTTP_RESPONSE_V2* HttpResponse, [Optional][In] HTTP_CACHE_POLICY* CachePolicy, [Optional][Out] uint* BytesSent, [In][Out][Reserved] void* Reserved1, [In][Reserved] uint Reserved2, [Optional][In] OVERLAPPED* Overlapped, [Optional][In] HTTP_LOG_DATA* LogData);

@stephentoub stephentoub merged commit 20d24fe into dotnet:main Feb 21, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants