71 references to PInvoke
Microsoft.AspNetCore.Server.HttpSys (66)
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.
364
statusCode =
PInvoke
.HttpSendHttpResponse(
376
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 (12)
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,
164
var result =
PInvoke
.HttpSetRequestQueueProperty(Handle,
183
PInvoke
.HttpCloseRequestQueue(Handle);
NativeInterop\ServerSession.cs (1)
14
var statusCode =
PInvoke
.HttpCreateServerSession(
NativeInterop\UrlGroup.cs (6)
36
var statusCode =
PInvoke
.HttpCreateUrlGroup(_serverSession.Id.DangerousGetServerSessionId(), out var urlGroupId);
92
var statusCode =
PInvoke
.HttpSetUrlGroupProperty(Id, property, info.ToPointer(), infosize);
143
var statusCode =
PInvoke
.HttpAddUrlToUrlGroup(Id, uriPrefix, (ulong)contextId);
154
var findUrlStatusCode =
PInvoke
.HttpFindUrlGroupId(uriPrefix, _requestQueue.Handle, out var _);
178
PInvoke
.HttpRemoveUrlFromUrlGroup(Id, uriPrefix, 0);
195
var statusCode =
PInvoke
.HttpCloseUrlGroup(Id);
RequestProcessing\RequestContext.cs (2)
205
var statusCode =
PInvoke
.HttpCancelHttpRequest(Server.RequestQueue.Handle,
410
statusCode =
PInvoke
.HttpDelegateRequestEx(source.Handle,
RequestProcessing\RequestStream.cs (1)
138
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(
412
if ((flags &
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0)
487
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_DISCONNECT;
492
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_MORE_DATA;
499
flags |=
PInvoke
.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA;
735
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 (1)
41
winmdroot.Foundation.WIN32_ERROR __result =
PInvoke
.GetSecurityInfo(handleLocal, ObjectType, SecurityInfo, ppsidOwner, ppsidGroup, ppDacl, ppSacl, ppSecurityDescriptor);
Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (13)
32
uint __result =
PInvoke
.HttpAddUrlToUrlGroup(UrlGroupId, pFullyQualifiedUrlLocal, UrlContext, default);
71
uint __result =
PInvoke
.HttpCancelHttpRequest(RequestQueueHandleLocal, RequestId, Overlapped.HasValue ? &OverlappedLocal : null);
131
uint __result =
PInvoke
.HttpCloseRequestQueue(RequestQueueHandleLocal);
164
uint __result =
PInvoke
.HttpCreateRequestQueue(Version, NameLocal, SecurityAttributes.HasValue ? &SecurityAttributesLocal : null, Flags, &RequestQueueHandleLocal);
208
uint __result =
PInvoke
.HttpCreateServerSession(Version, ServerSessionIdLocal, default);
239
uint __result =
PInvoke
.HttpCreateUrlGroup(ServerSessionId, pUrlGroupIdLocal, default);
287
uint __result =
PInvoke
.HttpDelegateRequestEx(RequestQueueHandleLocal, DelegateQueueHandleLocal, RequestId, DelegateUrlGroupId, PropertyInfoSetSize, PropertyInfoSetLocal);
349
uint __result =
PInvoke
.HttpFindUrlGroupId(FullyQualifiedUrlLocal, RequestQueueHandleLocal, UrlGroupIdLocal);
427
uint __result =
PInvoke
.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, EntityBuffer, EntityBufferLength, BytesReturned, Overlapped.HasValue ? &OverlappedLocal : null);
482
uint __result =
PInvoke
.HttpRemoveUrlFromUrlGroup(UrlGroupId, pFullyQualifiedUrlLocal, Flags);
531
uint __result =
PInvoke
.HttpSendHttpResponse(RequestQueueHandleLocal, RequestId, Flags, HttpResponseLocal, CachePolicy.HasValue ? &CachePolicyLocal : null, BytesSent, default, default, Overlapped.HasValue ? &OverlappedLocal : null, LogData.HasValue ? &LogDataLocal : null);
610
uint __result =
PInvoke
.HttpSendResponseEntityBody(RequestQueueHandleLocal, RequestId, Flags, (ushort )EntityChunks.Length, EntityChunksLocal, BytesSent, default, default, Overlapped.HasValue ? &OverlappedLocal : null, LogData.HasValue ? &LogDataLocal : null);
682
uint __result =
PInvoke
.HttpSetRequestQueueProperty(RequestQueueHandleLocal, Property, PropertyInformation, PropertyInformationLength, default, default);
Windows.Win32.PInvoke.KERNEL32.dll.g.cs (2)
57
winmdroot.Foundation.BOOL __result =
PInvoke
.SetFileCompletionNotificationModes(FileHandleLocal, Flags);
91
winmdroot.Foundation.HLOCAL __result =
PInvoke
.LocalFree(hMem);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
DelegateTests.cs (3)
316
WIN32_ERROR result =
PInvoke
.GetSecurityInfo(
326
var length = (int)
PInvoke
.GetSecurityDescriptorLength(pSecurityDescriptor);
352
PInvoke
.LocalFree((HLOCAL)pSecurityDescriptor.Value);
Listener\ServerOnExistingQueueTests.cs (1)
243
var statusCode =
PInvoke
.HttpCreateRequestQueue(
ServerTests.cs (1)
47
var statusCode =
PInvoke
.HttpCreateRequestQueue(