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
- AutomationPropertyInfo.cs
- BoundField.cs
- DeviceContext2.cs
- SerializationObjectManager.cs
- DynamicRouteExpression.cs
- CodeEventReferenceExpression.cs
- DesignTimeParseData.cs
- StylusPointPropertyId.cs
- WebBrowserContainer.cs
- ConfigurationElementProperty.cs
- Bits.cs
- WindowsPrincipal.cs
- FontWeight.cs
- OdbcConnection.cs
- FullTextLine.cs
- EdmProviderManifest.cs
- ObjectDataSourceMethodEventArgs.cs
- AdRotator.cs
- XamlContextStack.cs
- AppModelKnownContentFactory.cs
- MouseWheelEventArgs.cs
- SecurityManager.cs
- Timer.cs
- UInt64Storage.cs
- PathFigure.cs
- ConstructorNeedsTagAttribute.cs
- HtmlWindow.cs
- NullableFloatMinMaxAggregationOperator.cs
- EdmValidator.cs
- XmlSchemaSimpleContentExtension.cs
- EntityDataSourceUtil.cs
- SafeNativeMethods.cs
- FontFaceLayoutInfo.cs
- SoapAttributes.cs
- SingleAnimation.cs
- TileBrush.cs
- BehaviorEditorPart.cs
- VerticalAlignConverter.cs
- InternalConfigSettingsFactory.cs
- Line.cs
- TracedNativeMethods.cs
- Delegate.cs
- QuaternionRotation3D.cs
- PathTooLongException.cs
- SqlBulkCopyColumnMapping.cs
- AutomationIdentifier.cs
- RegexGroup.cs
- HandlerFactoryWrapper.cs
- WindowsEditBoxRange.cs
- BufferModeSettings.cs
- MetadataSet.cs
- FilteredAttributeCollection.cs
- Point4DConverter.cs
- WhiteSpaceTrimStringConverter.cs
- SingleObjectCollection.cs
- ComponentCollection.cs
- MetadataWorkspace.cs
- ExpressionBindings.cs
- EdmFunctionAttribute.cs
- UInt32Converter.cs
- GestureRecognizer.cs
- ResourcePool.cs
- KeyValuePair.cs
- ControlCachePolicy.cs
- XmlTextReaderImplHelpers.cs
- ToolCreatedEventArgs.cs
- Transform3DGroup.cs
- WindowsScrollBar.cs
- BitmapEffect.cs
- XmlNodeReader.cs
- TailPinnedEventArgs.cs
- X509ChainElement.cs
- SpellerStatusTable.cs
- DispatcherSynchronizationContext.cs
- SortDescriptionCollection.cs
- StringSorter.cs
- XsdBuilder.cs
- Span.cs
- Label.cs
- XmlSchemaSimpleType.cs
- TableProvider.cs
- HttpModuleCollection.cs
- Brushes.cs
- CustomCategoryAttribute.cs
- OleDbParameter.cs
- EncryptedReference.cs
- SvcFileManager.cs
- KeyInfo.cs
- AppDomainProtocolHandler.cs
- BaseAsyncResult.cs
- X509ClientCertificateAuthentication.cs
- ComponentResourceKeyConverter.cs
- AsymmetricKeyExchangeDeformatter.cs
- NavigationEventArgs.cs
- EventArgs.cs
- CommandField.cs
- TransactedReceiveData.cs
- BinarySerializer.cs
- SystemBrushes.cs
- Boolean.cs