Content-Length: 259446 | pFad | https://github.com/dotnet/runtime/pull/82411

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

Replace SafeLocalAllocHandle in System.Net.HttpListener #82411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2023

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/dotnet/runtime/pull/82411

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy