71 references to PInvoke
Microsoft.AspNetCore.Server.HttpSys (66)
AuthenticationManager.cs (2)
111authInfo.ExFlags |= (byte)PInvoke.HTTP_AUTH_EX_FLAG_ENABLE_KERBEROS_CREDENTIAL_CACHING; 116authInfo.ExFlags |= (byte)PInvoke.HTTP_AUTH_EX_FLAG_CAPTURE_CREDENTIAL;
HttpSysListener.cs (3)
324header->Flags = PInvoke.HTTP_RESPONSE_INFO_FLAGS_PRESERVE_ORDER; // The docs say this is for www-auth only. 364statusCode = PInvoke.HttpSendHttpResponse( 376PInvoke.HttpCancelHttpRequest(_requestQueue.Handle, requestId, default);
NativeInterop\HttpApi.cs (2)
78var statusCode = PInvoke.HttpInitialize(Version, HTTP_INITIALIZE.HTTP_INITIALIZE_SERVER | HTTP_INITIALIZE.HTTP_INITIALIZE_CONFIG); 98return PInvoke.HttpIsFeatureSupported(feature);
NativeInterop\HttpServerSessionHandle.cs (1)
37return PInvoke.HttpCloseServerSession(serverSessionId) ==
NativeInterop\RequestQueue.cs (12)
44flags = PInvoke.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING; 48flags |= PInvoke.HTTP_CREATE_REQUEST_QUEUE_FLAG_DELEGATION; 72var statusCode = PInvoke.HttpCreateRequestQueue( 83flags = PInvoke.HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING; 84statusCode = PInvoke.HttpCreateRequestQueue( 92if ((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 | 110PInvoke.FILE_SKIP_SET_EVENT_ON_HANDLE))) 148var result = PInvoke.HttpSetRequestQueueProperty(Handle, 164var result = PInvoke.HttpSetRequestQueueProperty(Handle, 183PInvoke.HttpCloseRequestQueue(Handle);
NativeInterop\ServerSession.cs (1)
14var statusCode = PInvoke.HttpCreateServerSession(
NativeInterop\UrlGroup.cs (6)
36var statusCode = PInvoke.HttpCreateUrlGroup(_serverSession.Id.DangerousGetServerSessionId(), out var urlGroupId); 92var statusCode = PInvoke.HttpSetUrlGroupProperty(Id, property, info.ToPointer(), infosize); 143var statusCode = PInvoke.HttpAddUrlToUrlGroup(Id, uriPrefix, (ulong)contextId); 154var findUrlStatusCode = PInvoke.HttpFindUrlGroupId(uriPrefix, _requestQueue.Handle, out var _); 178PInvoke.HttpRemoveUrlFromUrlGroup(Id, uriPrefix, 0); 195var statusCode = PInvoke.HttpCloseUrlGroup(Id);
RequestProcessing\RequestContext.cs (2)
205var statusCode = PInvoke.HttpCancelHttpRequest(Server.RequestQueue.Handle, 410statusCode = PInvoke.HttpDelegateRequestEx(source.Handle,
RequestProcessing\RequestStream.cs (1)
138statusCode = PInvoke.HttpReceiveRequestEntityBody(
RequestProcessing\Response.cs (8)
339&& (flags & PInvoke.HTTP_SEND_RESPONSE_FLAG_GOAWAY) != 0) 341flags &= ~PInvoke.HTTP_SEND_RESPONSE_FLAG_GOAWAY; 468flags = PInvoke.HTTP_SEND_RESPONSE_FLAG_DISCONNECT; 471flags |= PInvoke.HTTP_SEND_RESPONSE_FLAG_GOAWAY; 580header->Flags = PInvoke.HTTP_RESPONSE_INFO_FLAGS_PRESERVE_ORDER; // The docs say this is for www-auth only. 666PInvoke.HTTP_SEND_RESPONSE_FLAG_OPAQUE | 667PInvoke.HTTP_SEND_RESPONSE_FLAG_MORE_DATA | 668PInvoke.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
RequestProcessing\ResponseBody.cs (6)
154statusCode = PInvoke.HttpSendResponseEntityBody( 412if ((flags & PInvoke.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0) 487flags |= PInvoke.HTTP_SEND_RESPONSE_FLAG_DISCONNECT; 492flags |= PInvoke.HTTP_SEND_RESPONSE_FLAG_MORE_DATA; 499flags |= PInvoke.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA; 735if ((flags & PInvoke.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
14internal const int SniPropertySizeInBytes = (int)((sizeof(ushort) * (PInvoke.HTTP_REQUEST_PROPERTY_SNI_HOST_MAX_LENGTH + 1)) + sizeof(uint));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
162internal bool IsHttp2 => (NativeRequest->Flags & PInvoke.HTTP_REQUEST_FLAG_HTTP2) != 0; 164internal bool IsHttp3 => (NativeRequest->Flags & PInvoke.HTTP_REQUEST_FLAG_HTTP3) != 0; 360PInvoke.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)
316WIN32_ERROR result = PInvoke.GetSecurityInfo( 326var length = (int)PInvoke.GetSecurityDescriptorLength(pSecurityDescriptor); 352PInvoke.LocalFree((HLOCAL)pSecurityDescriptor.Value);
Listener\ServerOnExistingQueueTests.cs (1)
243var statusCode = PInvoke.HttpCreateRequestQueue(
ServerTests.cs (1)
47var statusCode = PInvoke.HttpCreateRequestQueue(