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
- KeyBinding.cs
- CellParaClient.cs
- FileDialog_Vista.cs
- PageVisual.cs
- InkCanvasFeedbackAdorner.cs
- EmptyEnumerator.cs
- SHA256.cs
- OdbcConnection.cs
- BuildResultCache.cs
- InputScopeNameConverter.cs
- ServiceX509SecurityTokenProvider.cs
- TagMapInfo.cs
- XmlEncoding.cs
- UnmanagedMemoryStream.cs
- XmlUtil.cs
- BaseDataListDesigner.cs
- CodeMemberField.cs
- RichTextBox.cs
- Vector3DIndependentAnimationStorage.cs
- DesignSurfaceManager.cs
- ConnectionPool.cs
- AtomServiceDocumentSerializer.cs
- ProxyManager.cs
- MultiView.cs
- EpmAttributeNameBuilder.cs
- MemberAccessException.cs
- printdlgexmarshaler.cs
- SHA512Managed.cs
- PointLightBase.cs
- GeneralTransform3DGroup.cs
- UserControlParser.cs
- SerTrace.cs
- DataGridViewCellEventArgs.cs
- MexHttpBindingCollectionElement.cs
- XmlWriterTraceListener.cs
- SeverityFilter.cs
- PrincipalPermission.cs
- LoginView.cs
- TemplateManager.cs
- CheckoutException.cs
- OleStrCAMarshaler.cs
- CharUnicodeInfo.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- EditorZone.cs
- NotConverter.cs
- ToolStripItemClickedEventArgs.cs
- QueryStatement.cs
- Context.cs
- XmlEventCache.cs
- ExpressionEditorAttribute.cs
- HtmlInputReset.cs
- XPathDocumentNavigator.cs
- XmlSchemaSimpleContent.cs
- BinHexEncoding.cs
- SafeLocalMemHandle.cs
- RunClient.cs
- ZipIOCentralDirectoryFileHeader.cs
- ToolStripDropTargetManager.cs
- StylusPointPropertyInfo.cs
- ChangeBlockUndoRecord.cs
- ScriptHandlerFactory.cs
- PageHandlerFactory.cs
- CompensateDesigner.cs
- SizeFConverter.cs
- X509Extension.cs
- HierarchicalDataBoundControl.cs
- DesignerTextViewAdapter.cs
- SmtpNetworkElement.cs
- Clock.cs
- ExpressionConverter.cs
- BuiltInExpr.cs
- PostBackTrigger.cs
- OrderedDictionary.cs
- DataGridViewTextBoxColumn.cs
- CodeBlockBuilder.cs
- AccessDataSourceView.cs
- AsymmetricSignatureFormatter.cs
- GridPatternIdentifiers.cs
- MouseButtonEventArgs.cs
- NativeMethodsOther.cs
- NumericUpDownAccelerationCollection.cs
- ToolbarAUtomationPeer.cs
- WindowsContainer.cs
- FilterableData.cs
- Point3DCollection.cs
- DynamicControlParameter.cs
- SqlError.cs
- BamlWriter.cs
- ApplyImportsAction.cs
- SiteMapNodeItemEventArgs.cs
- ResourceExpressionBuilder.cs
- SettingsProviderCollection.cs
- EventToken.cs
- TableLayoutPanelCellPosition.cs
- Component.cs
- AuthorizationRuleCollection.cs
- PassportPrincipal.cs
- HttpListenerContext.cs
- CoreSwitches.cs
- BasicKeyConstraint.cs