Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Policy / IBuiltInEvidence.cs / 1 / IBuiltInEvidence.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // IBuiltInEvidence.cs // namespace System.Security.Policy { internal interface IBuiltInEvidence { int OutputToBuffer( char[] buffer, int position, bool verbose ); // Initializes a class according to data in the buffer. Returns new position within buffer int InitFromBuffer( char[] buffer, int position); int GetRequiredSize(bool verbose); } internal static class BuiltInEvidenceHelper { internal const char idApplicationDirectory = (char)0; #if !FEATURE_PAL internal const char idPublisher = (char)1; #endif //!FEATURE_PAL internal const char idStrongName = (char)2; internal const char idZone = (char)3; internal const char idUrl = (char)4; internal const char idWebPage = (char)5; internal const char idSite = (char)6; internal const char idPermissionRequestEvidence = (char)7; #if !FEATURE_PAL internal const char idHash = (char)8; #endif // !FEATURE_PAL internal const char idGac = (char)9; internal static void CopyIntToCharArray( int value, char[] buffer, int position ) { buffer[position ] = (char)((value >> 16) & 0x0000FFFF); buffer[position + 1] = (char)((value ) & 0x0000FFFF); } internal static int GetIntFromCharArray(char[] buffer, int position ) { int value = (int)buffer[position]; value = value << 16; value += (int)buffer[position + 1]; return value; } internal static void CopyLongToCharArray( long value, char[] buffer, int position ) { buffer[position ] = (char)((value >> 48) & 0x000000000000FFFF); buffer[position + 1] = (char)((value >> 32) & 0x000000000000FFFF); buffer[position + 2] = (char)((value >> 16) & 0x000000000000FFFF); buffer[position + 3] = (char)((value ) & 0x000000000000FFFF); } internal static long GetLongFromCharArray(char[] buffer, int position ) { long value = (long)buffer[position]; value = value << 16; value += (long)buffer[position + 1]; value = value << 16; value += (long)buffer[position + 2]; value = value << 16; value += (long)buffer[position + 3]; return value; } } } // 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
- EventLogPermission.cs
- BaseCodePageEncoding.cs
- WebPart.cs
- QueryContinueDragEventArgs.cs
- RegionInfo.cs
- ConnectionsZoneAutoFormat.cs
- PartialCachingAttribute.cs
- UnSafeCharBuffer.cs
- XmlFormatMapping.cs
- StretchValidation.cs
- ToolStripItemImageRenderEventArgs.cs
- AddIn.cs
- XmlCodeExporter.cs
- DockingAttribute.cs
- TileBrush.cs
- SemanticAnalyzer.cs
- MultilineStringConverter.cs
- Dictionary.cs
- ReadContentAsBinaryHelper.cs
- peersecurityelement.cs
- QilParameter.cs
- PeerChannelListener.cs
- FontWeights.cs
- FacetValues.cs
- NextPreviousPagerField.cs
- UseLicense.cs
- DbConnectionHelper.cs
- XsdCachingReader.cs
- DrawingVisualDrawingContext.cs
- HotCommands.cs
- PositiveTimeSpanValidator.cs
- Timer.cs
- ValueOfAction.cs
- AttributeCollection.cs
- metadatamappinghashervisitor.cs
- ObjectCache.cs
- _RequestCacheProtocol.cs
- coordinator.cs
- UpdateTracker.cs
- PageEventArgs.cs
- Point3DCollectionConverter.cs
- UIHelper.cs
- TemplatedMailWebEventProvider.cs
- _SpnDictionary.cs
- AxDesigner.cs
- ResourceBinder.cs
- CustomErrorsSection.cs
- MSHTMLHostUtil.cs
- TextAdaptor.cs
- Triplet.cs
- CodePageEncoding.cs
- HtmlProps.cs
- UpdatePanelTrigger.cs
- StyleConverter.cs
- PathData.cs
- PropertyAccessVisitor.cs
- NumberFormatInfo.cs
- RectangleHotSpot.cs
- RedirectionProxy.cs
- DbSourceParameterCollection.cs
- PageRouteHandler.cs
- BindingEditor.xaml.cs
- RefreshPropertiesAttribute.cs
- ExceptionHandlers.cs
- TreeNode.cs
- GridViewRowPresenter.cs
- FrugalMap.cs
- ActivatedMessageQueue.cs
- HijriCalendar.cs
- TableRowCollection.cs
- PieceNameHelper.cs
- MultipartIdentifier.cs
- SafeThemeHandle.cs
- DataGridColumnStyleMappingNameEditor.cs
- EditorPartCollection.cs
- StringUtil.cs
- MessageContractAttribute.cs
- XPathEmptyIterator.cs
- ViewGenResults.cs
- ObjectQuery.cs
- FillRuleValidation.cs
- ContainerControl.cs
- handlecollector.cs
- ImportedPolicyConversionContext.cs
- PathSegmentCollection.cs
- EntitySet.cs
- BevelBitmapEffect.cs
- ListenerPerfCounters.cs
- EnumType.cs
- DataGridViewCellCancelEventArgs.cs
- ItemChangedEventArgs.cs
- MethodBody.cs
- FlagsAttribute.cs
- WebControl.cs
- CharUnicodeInfo.cs
- _ConnectOverlappedAsyncResult.cs
- RC2.cs
- ObfuscationAttribute.cs
- PassportAuthenticationEventArgs.cs
- Help.cs