Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Print / Reach / PrintConfig / PTUtility.cs / 1 / PTUtility.cs
/*++ Copyright (C) 2002 Microsoft Corporation All rights reserved. Module Name: PTUtility.cs Abstract: Definition and implementation of the internal PTUtility class, which contains static utility functions used internally only. Author: [....] ([....]) 11/22/2002 --*/ using System; using System.Collections.Specialized; using System.Resources; namespace MS.Internal.Printing.Configuration { ////// PTUtility class that supports static utility functions /// internal static class PTUtility { ////// Checks whether or not the HRESULT code indicates a success /// /// the HRESULT code to check ///true if the HRESULT indicates a success, false otherwise public static bool IsSuccessCode(uint hResult) { return (hResult < 0x80000000); } ////// Gets localized text from assembly embedded resource. /// public static string GetTextFromResource(string key) { return _resManager.GetString(key, System.Threading.Thread.CurrentThread.CurrentUICulture); } private static ResourceManager _resManager = new ResourceManager("System.Printing", typeof(PTUtility).Assembly); } } // 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
- SrgsRulesCollection.cs
- StrongNamePublicKeyBlob.cs
- XpsFilter.cs
- WebServicesSection.cs
- WebSysDescriptionAttribute.cs
- OdbcCommandBuilder.cs
- Stackframe.cs
- RepeatBehaviorConverter.cs
- Compiler.cs
- _UriTypeConverter.cs
- ToolStripContainerActionList.cs
- LogReservationCollection.cs
- GeneralTransformGroup.cs
- Stack.cs
- ModelItemDictionary.cs
- ConditionalAttribute.cs
- WebReferenceOptions.cs
- CommandSet.cs
- MappingItemCollection.cs
- MediaPlayerState.cs
- Byte.cs
- DbConnectionPoolGroupProviderInfo.cs
- ToolStripOverflow.cs
- Brush.cs
- IIS7WorkerRequest.cs
- UniqueConstraint.cs
- ProjectionCamera.cs
- DataSourceComponent.cs
- ImageBrush.cs
- XmlQualifiedName.cs
- WebPartExportVerb.cs
- DatePicker.cs
- XmlTextReader.cs
- RestClientProxyHandler.cs
- PopupEventArgs.cs
- ItemContainerPattern.cs
- CodeCommentStatement.cs
- EditingCoordinator.cs
- CreateRefExpr.cs
- ContentPlaceHolder.cs
- GenericTypeParameterBuilder.cs
- ScriptBehaviorDescriptor.cs
- Accessible.cs
- PartialCachingControl.cs
- HistoryEventArgs.cs
- DataKey.cs
- ScrollProviderWrapper.cs
- HtmlContainerControl.cs
- FixUp.cs
- WorkflowServiceBehavior.cs
- DataGridViewAdvancedBorderStyle.cs
- XPathChildIterator.cs
- HtmlGenericControl.cs
- CommonGetThemePartSize.cs
- OdbcReferenceCollection.cs
- DispatcherProcessingDisabled.cs
- ScriptMethodAttribute.cs
- MDIWindowDialog.cs
- CheckoutException.cs
- SimpleHandlerBuildProvider.cs
- Control.cs
- UnsafeNativeMethods.cs
- AnonymousIdentificationModule.cs
- TypeUsageBuilder.cs
- SQLInt16Storage.cs
- WorkflowMarkupSerializationException.cs
- BridgeDataRecord.cs
- ResourceDescriptionAttribute.cs
- CodeDOMProvider.cs
- ContentElement.cs
- QilInvoke.cs
- typedescriptorpermissionattribute.cs
- LassoHelper.cs
- KeyInstance.cs
- InstanceKeyView.cs
- HijriCalendar.cs
- TypeConverter.cs
- ResourceSet.cs
- ErrorRuntimeConfig.cs
- DataGridItemEventArgs.cs
- ChildDocumentBlock.cs
- LabelExpression.cs
- UpdatePanelControlTrigger.cs
- Encoding.cs
- ProbeDuplexAsyncResult.cs
- XPathAncestorIterator.cs
- TypeToStringValueConverter.cs
- TextDecoration.cs
- HtmlElementCollection.cs
- SQLChars.cs
- TextElementCollection.cs
- EventManager.cs
- HwndProxyElementProvider.cs
- UnSafeCharBuffer.cs
- SessionEndedEventArgs.cs
- PointHitTestParameters.cs
- recordstate.cs
- elementinformation.cs
- Size3D.cs
- QueryCacheEntry.cs