Code:
/ FX-1434 / FX-1434 / 1.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
- TextDecoration.cs
- DataGridViewRowPrePaintEventArgs.cs
- DesignerForm.cs
- TabItemWrapperAutomationPeer.cs
- HuffmanTree.cs
- JournalNavigationScope.cs
- RangeExpression.cs
- PrinterResolution.cs
- NonVisualControlAttribute.cs
- TextTreePropertyUndoUnit.cs
- AuthenticationSection.cs
- SQLDecimalStorage.cs
- _HeaderInfoTable.cs
- ChtmlFormAdapter.cs
- SqlServer2KCompatibilityAnnotation.cs
- ObsoleteAttribute.cs
- WmiEventSink.cs
- TransactionContextValidator.cs
- HtmlValidatorAdapter.cs
- HeaderPanel.cs
- GACIdentityPermission.cs
- SymbolTable.cs
- AdornerDecorator.cs
- OrderedDictionary.cs
- CloudCollection.cs
- SqlClientPermission.cs
- HtmlTable.cs
- TdsRecordBufferSetter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RectValueSerializer.cs
- DataPagerFieldCommandEventArgs.cs
- SafeViewOfFileHandle.cs
- ContentAlignmentEditor.cs
- Solver.cs
- Currency.cs
- WebBrowser.cs
- MatrixKeyFrameCollection.cs
- HtmlImage.cs
- SqlDataSourceView.cs
- TypeLoadException.cs
- BitmapEffectRenderDataResource.cs
- RegistrySecurity.cs
- HtmlElementCollection.cs
- ComNativeDescriptor.cs
- PropertyChangedEventManager.cs
- GlobalEventManager.cs
- RegexWriter.cs
- FormClosedEvent.cs
- Stacktrace.cs
- RecognizedAudio.cs
- ObjectDataSource.cs
- RowsCopiedEventArgs.cs
- CodeTypeConstructor.cs
- ConfigXmlAttribute.cs
- WizardStepBase.cs
- DetailsViewInsertEventArgs.cs
- LinkConverter.cs
- MessageHeader.cs
- TcpClientCredentialType.cs
- GridPattern.cs
- BinaryMethodMessage.cs
- ContextStaticAttribute.cs
- DbBuffer.cs
- DefaultMemberAttribute.cs
- ToolstripProfessionalRenderer.cs
- SpecialTypeDataContract.cs
- GradientStopCollection.cs
- AuthenticationModulesSection.cs
- LabelAutomationPeer.cs
- MimeParameterWriter.cs
- SafeLocalAllocation.cs
- DataControlReference.cs
- Int16Converter.cs
- SecurityKeyType.cs
- ScriptingJsonSerializationSection.cs
- GeneralTransform2DTo3D.cs
- PresentationSource.cs
- TextSelection.cs
- MDIClient.cs
- ContextBase.cs
- StylusPointPropertyInfoDefaults.cs
- SerialReceived.cs
- EndpointNameMessageFilter.cs
- SqlProvider.cs
- LayoutSettings.cs
- CLSCompliantAttribute.cs
- XmlMemberMapping.cs
- TraceSource.cs
- CacheModeConverter.cs
- SafeNativeMethods.cs
- SamlDoNotCacheCondition.cs
- RestClientProxyHandler.cs
- SettingsSection.cs
- UnsafeNativeMethods.cs
- DataGridRelationshipRow.cs
- StrongNameMembershipCondition.cs
- Base64Decoder.cs
- EdmToObjectNamespaceMap.cs
- IISMapPath.cs
- DriveNotFoundException.cs