Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Interop / UserThread.cs / 1305376 / UserThread.cs
namespace System.Web.Services.Interop {
using System;
using System.Threading;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal class UserThread {
internal int pSidBuffer; // byte * to buffer of size dwSidLen.
internal int dwSidLen;
internal int dwTid;
internal UserThread() {
pSidBuffer = 0;
dwSidLen = 0;
dwTid = 0;
}
public override bool Equals(object obj) {
if (! (obj is UserThread)) {
return false;
}
UserThread ut = (UserThread) obj;
if (ut.dwTid == this.dwTid &&
ut.pSidBuffer == this.pSidBuffer &&
ut.dwSidLen == this.dwSidLen) {
return true;
}
return false;
}
public override int GetHashCode() {
return base.GetHashCode();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Web.Services.Interop {
using System;
using System.Threading;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
internal class UserThread {
internal int pSidBuffer; // byte * to buffer of size dwSidLen.
internal int dwSidLen;
internal int dwTid;
internal UserThread() {
pSidBuffer = 0;
dwSidLen = 0;
dwTid = 0;
}
public override bool Equals(object obj) {
if (! (obj is UserThread)) {
return false;
}
UserThread ut = (UserThread) obj;
if (ut.dwTid == this.dwTid &&
ut.pSidBuffer == this.pSidBuffer &&
ut.dwSidLen == this.dwSidLen) {
return true;
}
return false;
}
public override int GetHashCode() {
return base.GetHashCode();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClaimTypeElementCollection.cs
- ErrorWrapper.cs
- BidPrivateBase.cs
- CodeMemberField.cs
- PropertyInfoSet.cs
- mil_commands.cs
- PeerChannelListener.cs
- MaterialGroup.cs
- ExportFileRequest.cs
- XmlSchema.cs
- XmlDictionaryReaderQuotas.cs
- MsmqNonTransactedPoisonHandler.cs
- WebPartAuthorizationEventArgs.cs
- WebPartRestoreVerb.cs
- SwitchAttribute.cs
- InvalidCastException.cs
- x509utils.cs
- XmlAggregates.cs
- SqlReorderer.cs
- SqlAggregateChecker.cs
- AutomationProperty.cs
- WindowsSysHeader.cs
- BaseTemplateBuildProvider.cs
- ConsoleEntryPoint.cs
- AgileSafeNativeMemoryHandle.cs
- OwnerDrawPropertyBag.cs
- SiteMapHierarchicalDataSourceView.cs
- Vector3DKeyFrameCollection.cs
- TextShapeableCharacters.cs
- RowToParametersTransformer.cs
- ServiceNameCollection.cs
- DataListItemEventArgs.cs
- Stylesheet.cs
- WindowsTokenRoleProvider.cs
- StringComparer.cs
- DataServiceSaveChangesEventArgs.cs
- WrapperEqualityComparer.cs
- RuntimeCompatibilityAttribute.cs
- ParameterReplacerVisitor.cs
- EmbeddedObject.cs
- DictionaryGlobals.cs
- SchemaMerger.cs
- DragDeltaEventArgs.cs
- OpenTypeCommon.cs
- SoapIgnoreAttribute.cs
- CodeTypeDeclaration.cs
- Utility.cs
- X500Name.cs
- RoleBoolean.cs
- KeyboardEventArgs.cs
- RequestContext.cs
- DataGridViewSelectedCellCollection.cs
- AuditLogLocation.cs
- PagerSettings.cs
- AnnotationHighlightLayer.cs
- GridPattern.cs
- DaylightTime.cs
- ObsoleteAttribute.cs
- CompatibleIComparer.cs
- SQLChars.cs
- ContainerControl.cs
- RequestCache.cs
- UnsafeNativeMethodsPenimc.cs
- SetUserLanguageRequest.cs
- VirtualizingStackPanel.cs
- SystemGatewayIPAddressInformation.cs
- ZoneMembershipCondition.cs
- CalendarItem.cs
- HttpRawResponse.cs
- UIElementParagraph.cs
- Condition.cs
- DateTimeConverter2.cs
- ProviderCommandInfoUtils.cs
- FormsAuthenticationModule.cs
- RelationshipType.cs
- TableAdapterManagerNameHandler.cs
- ObservableDictionary.cs
- QueryResults.cs
- TrackingAnnotationCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- AssemblyInfo.cs
- LogAppendAsyncResult.cs
- ResourceProviderFactory.cs
- PersonalizationStateInfoCollection.cs
- webbrowsersite.cs
- ExternalException.cs
- XPathScanner.cs
- PageOutputColor.cs
- CursorConverter.cs
- webproxy.cs
- HostedHttpTransportManager.cs
- MessagePropertyAttribute.cs
- TextRunCacheImp.cs
- CreatingCookieEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- UriScheme.cs
- SessionState.cs
- PresentationSource.cs
- CacheDependency.cs
- CopyOnWriteList.cs