Skip to content
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

Several HTTP Server API is incorrect parameter attribute (IN/OUT/OPTIONAL) #911

Closed
taufikrh opened this issue Apr 30, 2022 · 1 comment
Closed
Assignees

Comments

@taufikrh
Copy link

[DllImport("HTTPAPI", ExactSpelling = true, PreserveSig = false)]
[SupportedOSPlatform("windows6.0.6000")]
public unsafe static extern uint HttpSendHttpResponse(
    [In] HANDLE RequestQueueHandle,
    [In] ulong RequestId,
    [In] uint Flags,
    [In][Out] HTTP_RESPONSE_V2* HttpResponse,
    [In][Out] HTTP_CACHE_POLICY* CachePolicy,
    [In][Out] uint* BytesSent,
    [In][Out][Reserved] void* Reserved1,
    [In][Reserved] uint Reserved2,
    [In][Out] OVERLAPPED* Overlapped,
    [In][Out] HTTP_LOG_DATA* LogData
    );
HTTPAPI_LINKAGE
ULONG
WINAPI
HttpSendHttpResponse(
    IN HANDLE RequestQueueHandle,
    IN HTTP_REQUEST_ID RequestId,
    IN ULONG Flags,
    IN PHTTP_RESPONSE HttpResponse,
    IN PHTTP_CACHE_POLICY CachePolicy OPTIONAL,
    OUT PULONG BytesSent OPTIONAL,
    _Reserved_ PVOID Reserved1,
    _Reserved_ ULONG Reserved2,
    IN LPOVERLAPPED Overlapped OPTIONAL,
    IN PHTTP_LOG_DATA LogData OPTIONAL
    );

The following list is incorrect

HttpCreateHttpHandle
HttpCreateRequestQueue
HttpReceiveClientCertificate
HttpCreateServerSession
HttpAddUrl
HttpCreateUrlGroup
HttpPrepareUrl
HttpReceiveHttpRequest
HttpReceiveRequestEntityBody
HttpSendHttpResponse
HttpSendResponseEntityBody
HttpWaitForDisconnect
HttpWaitForDisconnectEx
HttpCancelHttpRequest
HttpWaitForDemandStart
HttpFlushResponseCache
HttpAddFragmentToCache
HttpReadFragmentFromCache
HttpSetServiceConfiguration
HttpUpdateServiceConfiguration
HttpDeleteServiceConfiguration
HttpQueryServiceConfiguration
@mikebattista
Copy link
Collaborator

Windows.Win32.Networking.HttpServer.Apis.HttpAddFragmentToCache : CachePolicy : [In,Out] => [In]
Windows.Win32.Networking.HttpServer.Apis.HttpAddFragmentToCache : DataChunk : [In,Out] => [In]
Windows.Win32.Networking.HttpServer.Apis.HttpAddFragmentToCache : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpCancelHttpRequest : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateHttpHandle : RequestQueueHandle : [In,Out] => [Out]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateRequestQueue : Flags : [In] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateRequestQueue : Name : [Const,In] => [Const,In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateRequestQueue : RequestQueueHandle : [In,Out] => [Out]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateRequestQueue : SecurityAttributes : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateServerSession : ServerSessionId : [In,Out] => [Out]
Windows.Win32.Networking.HttpServer.Apis.HttpCreateUrlGroup : pUrlGroupId : [In,Out] => [Out]
Windows.Win32.Networking.HttpServer.Apis.HttpFlushResponseCache : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpReadFragmentFromCache : ByteRange : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpReadFragmentFromCache : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpReceiveClientCertificate : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpReceiveHttpRequest : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpReceiveRequestEntityBody : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendHttpResponse : BytesSent : [In,Out] => [Optional,Out]
Windows.Win32.Networking.HttpServer.Apis.HttpSendHttpResponse : CachePolicy : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendHttpResponse : HttpResponse : [In,Out] => [In]
Windows.Win32.Networking.HttpServer.Apis.HttpSendHttpResponse : LogData : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendHttpResponse : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : BytesSent : [In,Out] => [Optional,Out]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : EntityChunkCount : [In] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : LogData : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : Reserved1 : [In,Out,Reserved] => [Optional,Reserved]
Windows.Win32.Networking.HttpServer.Apis.HttpSendResponseEntityBody : Reserved2 : [In,Reserved] => [Optional,Reserved]
Windows.Win32.Networking.HttpServer.Apis.HttpWaitForDemandStart : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpWaitForDisconnect : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpWaitForDisconnectEx : Overlapped : [In,Out] => [In,Optional]
Windows.Win32.Networking.HttpServer.Apis.HttpWaitForDisconnectEx : Reserved : [In,Reserved] => [In,Optional,Reserved]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants