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
- _NegoStream.cs
- TextWriterTraceListener.cs
- Ref.cs
- xdrvalidator.cs
- BrowserCapabilitiesCodeGenerator.cs
- FindResponse.cs
- MediaScriptCommandRoutedEventArgs.cs
- ListView.cs
- WindowsSecurityTokenAuthenticator.cs
- LedgerEntry.cs
- DecoratedNameAttribute.cs
- ResourceCollectionInfo.cs
- ILGenerator.cs
- LabelEditEvent.cs
- ReadOnlyCollectionBase.cs
- WebEventTraceProvider.cs
- TypeNameConverter.cs
- BitmapData.cs
- CookieProtection.cs
- ApplicationException.cs
- TextChangedEventArgs.cs
- NumberAction.cs
- PointAnimation.cs
- DetailsViewDeleteEventArgs.cs
- LabelAutomationPeer.cs
- PhysicalOps.cs
- ExpandedProjectionNode.cs
- SqlBuilder.cs
- StringDictionary.cs
- QuaternionConverter.cs
- HostingPreferredMapPath.cs
- EventLog.cs
- XmlChildEnumerator.cs
- DoubleCollectionValueSerializer.cs
- AttachedAnnotationChangedEventArgs.cs
- BlurEffect.cs
- SaveFileDialog.cs
- LineGeometry.cs
- WebCodeGenerator.cs
- IntegerFacetDescriptionElement.cs
- DataMemberAttribute.cs
- CookielessHelper.cs
- TextElement.cs
- GeneratedContractType.cs
- ServiceDescriptionImporter.cs
- Timer.cs
- MonitoringDescriptionAttribute.cs
- ServicePoint.cs
- SimpleHandlerBuildProvider.cs
- SingleObjectCollection.cs
- columnmapkeybuilder.cs
- SchemaSetCompiler.cs
- CurrentChangingEventArgs.cs
- MetadataFile.cs
- AssemblyCollection.cs
- DbXmlEnabledProviderManifest.cs
- AnchorEditor.cs
- CustomWebEventKey.cs
- FlowDocumentReader.cs
- EdmSchemaAttribute.cs
- UiaCoreApi.cs
- ListChangedEventArgs.cs
- ShapeTypeface.cs
- Dispatcher.cs
- OleDbMetaDataFactory.cs
- Encoder.cs
- WpfMemberInvoker.cs
- coordinatorfactory.cs
- InputLangChangeEvent.cs
- InvalidPrinterException.cs
- HttpsChannelFactory.cs
- DataGridViewTextBoxEditingControl.cs
- FixUpCollection.cs
- DashStyle.cs
- FilteredAttributeCollection.cs
- ItemList.cs
- CodeSubDirectoriesCollection.cs
- PeerName.cs
- LookupBindingPropertiesAttribute.cs
- UInt32Storage.cs
- TextBox.cs
- BuildProvider.cs
- ConfigurationElementProperty.cs
- HttpApplication.cs
- XmlSchemaAnyAttribute.cs
- _emptywebproxy.cs
- ScrollItemProviderWrapper.cs
- Int32RectValueSerializer.cs
- RegexWorker.cs
- AmbientLight.cs
- MethodImplAttribute.cs
- AttributeCollection.cs
- DocumentDesigner.cs
- ToolStripKeyboardHandlingService.cs
- ZipIOExtraField.cs
- XmlIncludeAttribute.cs
- Int32Rect.cs
- ComboBox.cs
- WebPartDeleteVerb.cs
- EventProxy.cs