Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <copyright file="HTTP_COOKED_URL.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Web.Hosting {
using System;
using System.Runtime.InteropServices;
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa364519.aspx
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct HTTP_COOKED_URL {
// WARNING: Lengths are specified in bytes, not wide chars!
// Length does not include a null terminator.
internal readonly ushort FullUrlLength;
internal readonly ushort HostLength;
internal readonly ushort AbsPathLength;
internal readonly ushort QueryStringLength;
// WARNING: pFullUrl is the only string guaranteed by HTTP.SYS
// to be null-terminated (though see comment above re: length).
// Other fields point within pFullUrl so may not be null-terinated.
internal readonly char* pFullUrl;
internal readonly char* pHost;
internal readonly char* pAbsPath;
internal readonly char* pQueryString;
}
}