Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / COAUTHIDENTITY.cs / 1 / 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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcDataReader.cs
- MsmqInputSessionChannel.cs
- Baml2006ReaderSettings.cs
- PropertyEmitterBase.cs
- XmlQueryStaticData.cs
- CompilerGeneratedAttribute.cs
- MDIClient.cs
- CriticalFinalizerObject.cs
- EventMappingSettings.cs
- HashCoreRequest.cs
- AssemblyResourceLoader.cs
- AsymmetricSignatureDeformatter.cs
- PasswordBoxAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- DockProviderWrapper.cs
- DesignerUtility.cs
- CalendarBlackoutDatesCollection.cs
- CheckBoxField.cs
- SystemIPGlobalStatistics.cs
- DiscriminatorMap.cs
- AmbientEnvironment.cs
- WindowsListViewItemStartMenu.cs
- _NestedSingleAsyncResult.cs
- BinaryReader.cs
- ProjectionPruner.cs
- Comparer.cs
- SafeProcessHandle.cs
- HttpDictionary.cs
- ItemCheckEvent.cs
- NamedPermissionSet.cs
- DescendantOverDescendantQuery.cs
- documentsequencetextview.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ActiveXHelper.cs
- ProvidersHelper.cs
- OracleParameterBinding.cs
- FormViewUpdateEventArgs.cs
- PageWrapper.cs
- ResXDataNode.cs
- AutomationElement.cs
- RtfFormatStack.cs
- GenericWebPart.cs
- SelectionItemPattern.cs
- ChangeConflicts.cs
- AnnouncementInnerClient11.cs
- WebSysDisplayNameAttribute.cs
- _BaseOverlappedAsyncResult.cs
- NavigatorOutput.cs
- TypeLibConverter.cs
- BufferedWebEventProvider.cs
- EntityProviderFactory.cs
- FrameworkElement.cs
- FamilyTypeface.cs
- HandleRef.cs
- DbConnectionHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- X509ChainElement.cs
- PinnedBufferMemoryStream.cs
- AdobeCFFWrapper.cs
- GeneralTransform3DTo2DTo3D.cs
- ContentFilePart.cs
- RegisteredExpandoAttribute.cs
- ScriptingJsonSerializationSection.cs
- TypeToken.cs
- XamlReaderHelper.cs
- VariantWrapper.cs
- HttpResponse.cs
- returneventsaver.cs
- PersonalizationStateInfo.cs
- ParameterBuilder.cs
- TypeBuilder.cs
- QueryAccessibilityHelpEvent.cs
- AccessKeyManager.cs
- CellTreeNode.cs
- GenericEnumConverter.cs
- ByteStreamBufferedMessageData.cs
- StylusPointProperty.cs
- ISAPIWorkerRequest.cs
- OuterGlowBitmapEffect.cs
- TypeUtils.cs
- MailBnfHelper.cs
- TypeResolvingOptionsAttribute.cs
- Group.cs
- ConstructorNeedsTagAttribute.cs
- SpecialNameAttribute.cs
- XmlNode.cs
- Substitution.cs
- OrderedDictionaryStateHelper.cs
- MetadataWorkspace.cs
- ClientTargetSection.cs
- TextControl.cs
- OleServicesContext.cs
- ToolBarPanel.cs
- DataControlFieldCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- BufferedWebEventProvider.cs
- XamlSerializer.cs
- ElasticEase.cs
- COMException.cs
- Padding.cs