78 references to PInvoke
Microsoft.AspNetCore.Server.HttpSys (73)
AuthenticationManager.cs (2)
111
authInfo.ExFlags |= (byte)
PInvoke
.HTTP_AUTH_EX_FLAG_ENABLE_KERBEROS_CREDENTIAL_CACHING;
116
authInfo.ExFlags |= (byte)
PInvoke
.HTTP_AUTH_EX_FLAG_CAPTURE_CREDENTIAL;
HttpSysListener.cs (3)
324
header->Flags =
PInvoke
.HTTP_RESPONSE_INFO_FLAGS_PRESERVE_ORDER; // The docs say this is for www-auth only.
363
statusCode =
PInvoke
.HttpSendHttpResponse(
375
PInvoke
.HttpCancelHttpRequest(_requestQueue.Handle, requestId, default);
NativeInterop\HttpApi.cs (2)
78
var statusCode =
PInvoke
.HttpInitialize(Version, HTTP_INITIALIZE.HTTP_INITIALIZE_SERVER | HTTP_INITIALIZE.HTTP_INITIALIZE_CONFIG);
98
return
PInvoke
.HttpIsFeatureSupported(feature);
NativeInterop\HttpServerSessionHandle.cs (1)
37
return
PInvoke
.HttpCloseServerSession(serverSessionId) ==
NativeInterop\RequestQueue.cs (13)
44
flags =
PInvoke
.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING;
48
flags |=
PInvoke
.HTTP_CREATE_REQUEST_QUEUE_FLAG_DELEGATION;
72
var statusCode =
PInvoke
.HttpCreateRequestQueue(
83
flags =
PInvoke
.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING;
84
statusCode =
PInvoke
.HttpCreateRequestQueue(
92
if ((flags &
PInvoke
.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING) != 0 && statusCode == ErrorCodes.ERROR_FILE_NOT_FOUND)
107
!
PInvoke
.SetFileCompletionNotificationModes(
109
(byte)(
PInvoke
.FILE_SKIP_COMPLETION_PORT_ON_SUCCESS |
110
PInvoke
.FILE_SKIP_SET_EVENT_ON_HANDLE)))
148
var result =
PInvoke
.HttpSetRequestQueueProperty(Handle,
165
var result =
PInvoke
.HttpSetRequestQueueProperty(Handle,
187
PInvoke
.HttpCloseRequestQueue(Handle);
200
PInvoke
.HttpShutdownRequestQueue(Handle);
NativeInterop\ServerSession.cs (1)
14
var statusCode =
PInvoke
.HttpCreateServerSession(
NativeInterop\UrlGroup.cs (6)
38
var statusCode =
PInvoke
.HttpCreateUrlGroup(_serverSession.Id.DangerousGetServerSessionId(), out var urlGroupId);
105
var statusCode =
PInvoke
.HttpSetUrlGroupProperty(Id, property, info.ToPointer(), infosize);
156
var statusCode =
PInvoke
.HttpAddUrlToUrlGroup(Id, uriPrefix, (ulong)contextId);
167
var findUrlStatusCode =
PInvoke
.HttpFindUrlGroupId(uriPrefix, _requestQueue.Handle, out var _);
191
PInvoke
.HttpRemoveUrlFromUrlGroup(Id, uriPrefix, 0);
208
var statusCode =
PInvoke
.HttpCloseUrlGroup(Id);
RequestProcessing\RequestContext.cs (2)
205
var statusCode =
PInvoke
.HttpCancelHttpRequest(Server.RequestQueue.Handle, _requestId.Value, default);
409
statusCode =
PInvoke
.HttpDelegateRequestEx(source.Handle,
RequestProcessing\RequestStream.cs (1)
130
var statusCode =
PInvoke
.HttpReceiveRequestEntityBody(
RequestProcessing\Response.cs (8)
339
&& (flags &
PInvoke
.HTTP_SEND_RESPONSE_FLAG_GOAWAY) != 0)
341
flags &= ~
PInvoke
.HTTP_SEND_RESPONSE_FLAG_GOAWAY;
468
flags =
PInvoke
.HTTP_SEND_RESPONSE_FLAG_DISCONNECT;
471
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_GOAWAY;
580
header->Flags =
PInvoke
.HTTP_RESPONSE_INFO_FLAGS_PRESERVE_ORDER; // The docs say this is for www-auth only.
666
PInvoke
.HTTP_SEND_RESPONSE_FLAG_OPAQUE |
667
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA |
668
PInvoke
.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
RequestProcessing\ResponseBody.cs (6)
154
statusCode =
PInvoke
.HttpSendResponseEntityBody(RequestQueueHandle, RequestId, flags, dataChunks);
405
if ((flags &
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0)
480
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_DISCONNECT;
485
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA;
492
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA;
728
if ((flags &
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
14
internal const int SniPropertySizeInBytes = (int)((sizeof(ushort) * (
PInvoke
.HTTP_REQUEST_PROPERTY_SNI_HOST_MAX_LENGTH + 1)) + sizeof(uint));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
162
internal bool IsHttp2 => (NativeRequest->Flags &
PInvoke
.HTTP_REQUEST_FLAG_HTTP2) != 0;
164
internal bool IsHttp3 => (NativeRequest->Flags &
PInvoke
.HTTP_REQUEST_FLAG_HTTP3) != 0;
360
PInvoke
.CloseHandle(authInfo->AccessToken);
Windows.Win32.LocalFreeSafeHandle.g.cs (2)
22
/// Represents a Win32 handle that can be closed with <see cref="
PInvoke
.LocalFree(winmdroot.Foundation.HLOCAL)"/>.
40
protected override bool ReleaseHandle() =>
PInvoke
.LocalFree((winmdroot.Foundation.HLOCAL)this.handle) == default(winmdroot.Foundation.HLOCAL);
Windows.Win32.PInvoke.ADVAPI32.dll.g.cs (2)
52
winmdroot.Foundation.WIN32_ERROR __result =
PInvoke
.GetSecurityInfo(handleLocal, ObjectType, SecurityInfo, ppsidOwnerLocal, ppsidGroupLocal, ppDaclLocal, ppSaclLocal, ppSecurityDescriptorLocal);
82
winmdroot.Foundation.WIN32_ERROR __result =
PInvoke
.GetSecurityInfo(handleLocal, ObjectType, SecurityInfo, default(winmdroot.Security.PSID* ), default(winmdroot.Security.PSID* ), default(winmdroot.Security.ACL** ), default(winmdroot.Security.ACL** ), default(winmdroot.Security.PSECURITY_DESCRIPTOR* ));
Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (18)
32
uint __result =
PInvoke
.HttpAddUrlToUrlGroup(UrlGroupId, pFullyQualifiedUrlLocal, UrlContext, default);
70
uint __result =
PInvoke
.HttpCancelHttpRequest(RequestQueueHandleLocal, RequestId, Overlapped);
128
uint __result =
PInvoke
.HttpCloseRequestQueue(RequestQueueHandleLocal);
162
uint __result =
PInvoke
.HttpCreateRequestQueue(Version, NameLocal, SecurityAttributes.HasValue ? &SecurityAttributesLocal : null, Flags, &RequestQueueHandleLocal);
205
uint __result =
PInvoke
.HttpCreateServerSession(Version, ServerSessionIdLocal, default);
235
uint __result =
PInvoke
.HttpCreateUrlGroup(ServerSessionId, pUrlGroupIdLocal, default);
283
uint __result =
PInvoke
.HttpDelegateRequestEx(RequestQueueHandleLocal, DelegateQueueHandleLocal, RequestId, DelegateUrlGroupId, PropertyInfoSetSize, PropertyInfoSetLocal);
345
uint __result =
PInvoke
.HttpFindUrlGroupId(FullyQualifiedUrlLocal, RequestQueueHandleLocal, UrlGroupIdLocal);
423
uint __result =
PInvoke
.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, BytesReturnedLocal, Overlapped);
452
uint __result =
PInvoke
.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, default(uint* ), Overlapped);
508
uint __result =
PInvoke
.HttpRemoveUrlFromUrlGroup(UrlGroupId, pFullyQualifiedUrlLocal, Flags);
557
uint __result =
PInvoke
.HttpSendHttpResponse(RequestQueueHandleLocal, RequestId, Flags, HttpResponseLocal, CachePolicy.HasValue ? &CachePolicyLocal : null, BytesSentLocal, default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null);
588
uint __result =
PInvoke
.HttpSendHttpResponse(RequestQueueHandleLocal, RequestId, Flags, HttpResponseLocal, CachePolicy.HasValue ? &CachePolicyLocal : null, default(uint* ), default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null);
667
uint __result =
PInvoke
.HttpSendResponseEntityBody(RequestQueueHandleLocal, RequestId, Flags, (ushort )EntityChunks.Length, EntityChunksLocal, BytesSentLocal, default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null);
697
uint __result =
PInvoke
.HttpSendResponseEntityBody(RequestQueueHandleLocal, RequestId, Flags, (ushort )EntityChunks.Length, EntityChunksLocal, default(uint* ), default, default, Overlapped, LogData.HasValue ? &LogDataLocal : null);
770
uint __result =
PInvoke
.HttpSetRequestQueueProperty(RequestQueueHandleLocal, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, default, default);
816
uint __result =
PInvoke
.HttpSetUrlGroupProperty(UrlGroupId, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length);
859
uint __result =
PInvoke
.HttpShutdownRequestQueue(RequestQueueHandleLocal);
Windows.Win32.PInvoke.KERNEL32.dll.g.cs (2)
57
winmdroot.Foundation.BOOL __result =
PInvoke
.SetFileCompletionNotificationModes(FileHandleLocal, Flags);
92
winmdroot.Foundation.HLOCAL __result =
PInvoke
.LocalFree(hMem);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
DelegateTests.cs (3)
314
WIN32_ERROR result =
PInvoke
.GetSecurityInfo(
325
var length = (int)
PInvoke
.GetSecurityDescriptorLength(pSecurityDescriptor);
351
PInvoke
.LocalFree((HLOCAL)pSecurityDescriptor.Value);
Listener\ServerOnExistingQueueTests.cs (1)
243
var statusCode =
PInvoke
.HttpCreateRequestQueue(
ServerTests.cs (1)
47
var statusCode =
PInvoke
.HttpCreateRequestQueue(