Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

30 lines
1.3 KiB
C#

//------------------------------------------------------------------------------
// <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;
}
}