Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / COAUTHIDENTITY.cs / 1305376 / COAUTHIDENTITY.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Configuration {
using System.Collections;
using System.Configuration;
using System.Configuration.Internal;
using System.Web;
using System.Web.Util;
using System.Security;
using System.IO;
using System.Web.Hosting;
using System.Runtime.InteropServices;
using System.Reflection;
using System.Collections.Specialized;
using System.Xml;
using System.Security.Principal;
using System.Threading;
using System.Globalization;
[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Unicode)]
internal class COAUTHIDENTITY
{
internal COAUTHIDENTITY(string usr, string dom, string pwd) {
user = usr;
userlen = (user==null) ? 0 : user.Length;
domain = dom;
domainlen = (domain==null) ? 0 : domain.Length;
password = pwd;
passwordlen = (password==null) ? 0 : password.Length;
}
[MarshalAs(UnmanagedType.LPWStr)]
internal string user = null;
internal int userlen = 0;
[MarshalAs(UnmanagedType.LPWStr)]
internal string domain = null;
internal int domainlen = 0;
[MarshalAs(UnmanagedType.LPWStr)]
internal string password = null;
internal int passwordlen = 0;
internal int flags = 2; // SEC_WINNT_AUTH_IDENTITY_UNICODE
}
[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Unicode)]
internal class COAUTHIDENTITY_X64
{
internal COAUTHIDENTITY_X64(string usr, string dom, string pwd)
{
user = usr;
userlen = (user == null) ? 0 : user.Length;
domain = dom;
domainlen = (domain == null) ? 0 : domain.Length;
password = pwd;
passwordlen = (password == null) ? 0 : password.Length;
}
[MarshalAs(UnmanagedType.LPWStr)]
internal string user = null;
internal int userlen = 0;
#pragma warning disable 0649
internal int padding1;
#pragma warning restore 0649
[MarshalAs(UnmanagedType.LPWStr)]
internal string domain = null;
internal int domainlen = 0;
#pragma warning disable 0649
internal int padding2;
#pragma warning restore 0649
[MarshalAs(UnmanagedType.LPWStr)]
internal string password = null;
internal int passwordlen = 0;
internal int flags = 2; // SEC_WINNT_AUTH_IDENTITY_UNICODE
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExtenderControl.cs
- TrustSection.cs
- ResourceReferenceExpressionConverter.cs
- SuppressMergeCheckAttribute.cs
- ConnectionOrientedTransportChannelFactory.cs
- MainMenu.cs
- ThreadStateException.cs
- GiveFeedbackEvent.cs
- HttpServerVarsCollection.cs
- XmlToDatasetMap.cs
- TextServicesPropertyRanges.cs
- RectangleHotSpot.cs
- SqlCrossApplyToCrossJoin.cs
- CancellationHandler.cs
- XpsS0ValidatingLoader.cs
- ServiceProviders.cs
- LinqDataSourceContextData.cs
- TemplatingOptionsDialog.cs
- AttachedAnnotationChangedEventArgs.cs
- _RequestCacheProtocol.cs
- EncryptedPackage.cs
- SeekStoryboard.cs
- Viewport3DAutomationPeer.cs
- ConstNode.cs
- SmtpDateTime.cs
- TagPrefixAttribute.cs
- TimeSpanValidator.cs
- DrawingImage.cs
- XslAstAnalyzer.cs
- FileDataSourceCache.cs
- AppAction.cs
- SystemWebCachingSectionGroup.cs
- EmptyImpersonationContext.cs
- RemoteWebConfigurationHost.cs
- DataGridCell.cs
- DynamicAttribute.cs
- ProfileBuildProvider.cs
- WebPartHeaderCloseVerb.cs
- IgnoreSectionHandler.cs
- FormParameter.cs
- HeaderLabel.cs
- DetailsViewInsertEventArgs.cs
- BindingList.cs
- OrderByQueryOptionExpression.cs
- MappingSource.cs
- XmlSchemaExporter.cs
- TextTreeNode.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebSysDefaultValueAttribute.cs
- DecoderExceptionFallback.cs
- PaintValueEventArgs.cs
- ListViewInsertedEventArgs.cs
- TextTreeText.cs
- SrgsElementList.cs
- SimpleTableProvider.cs
- WebResponse.cs
- CompoundFileDeflateTransform.cs
- WindowsSolidBrush.cs
- CodeIterationStatement.cs
- AuthorizationSection.cs
- KeyPressEvent.cs
- TraceListeners.cs
- HostingEnvironment.cs
- QilXmlReader.cs
- ILGenerator.cs
- DBNull.cs
- CommandTreeTypeHelper.cs
- TypeConstant.cs
- NonVisualControlAttribute.cs
- SystemIcmpV4Statistics.cs
- WpfWebRequestHelper.cs
- WS2007HttpBindingElement.cs
- AbandonedMutexException.cs
- Propagator.ExtentPlaceholderCreator.cs
- SchemaNames.cs
- DefaultTextStore.cs
- ReadOnlyDataSource.cs
- XmlSchemaNotation.cs
- ReadOnlyDictionary.cs
- Monitor.cs
- PopupRoot.cs
- WebPartConnectionsCloseVerb.cs
- Header.cs
- DataErrorValidationRule.cs
- baseaxisquery.cs
- SqlLiftWhereClauses.cs
- DelayedRegex.cs
- MemberInitExpression.cs
- Logging.cs
- WebPartConnectionsConnectVerb.cs
- LayoutTableCell.cs
- StreamWriter.cs
- TextTreeTextElementNode.cs
- CodeNamespaceImportCollection.cs
- FieldDescriptor.cs
- DataGridPagerStyle.cs
- XmlAtomicValue.cs
- ImageCollectionEditor.cs
- SectionUpdates.cs
- RadioButton.cs