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
- DiscriminatorMap.cs
- ToolStripSystemRenderer.cs
- wgx_sdk_version.cs
- NotifyInputEventArgs.cs
- HtmlInputSubmit.cs
- HtmlGenericControl.cs
- LostFocusEventManager.cs
- PartialTrustHelpers.cs
- UrlMappingsModule.cs
- XPathQilFactory.cs
- DependencyPropertyValueSerializer.cs
- EventItfInfo.cs
- RewritingProcessor.cs
- ComplexPropertyEntry.cs
- TextProperties.cs
- control.ime.cs
- BinaryObjectWriter.cs
- OptimisticConcurrencyException.cs
- ListItemParagraph.cs
- DescendentsWalkerBase.cs
- HuffModule.cs
- WebProxyScriptElement.cs
- FieldAccessException.cs
- NameValueConfigurationCollection.cs
- ProfileManager.cs
- XPathNode.cs
- SoapSchemaExporter.cs
- _ProxyChain.cs
- ColumnResizeUndoUnit.cs
- ZoneLinkButton.cs
- DataGridCell.cs
- LicenseException.cs
- MediaSystem.cs
- Control.cs
- ProcessStartInfo.cs
- SamlAdvice.cs
- XmlIgnoreAttribute.cs
- Renderer.cs
- JournalEntryListConverter.cs
- HwndTarget.cs
- WorkflowViewService.cs
- DbConnectionFactory.cs
- Model3DGroup.cs
- AutomationElement.cs
- ConfigurationPropertyCollection.cs
- ContentHostHelper.cs
- TabRenderer.cs
- CompiledQuery.cs
- XmlSerializationGeneratedCode.cs
- CodeIdentifiers.cs
- FieldMetadata.cs
- ScriptingSectionGroup.cs
- UpDownEvent.cs
- MainMenu.cs
- AQNBuilder.cs
- SafeRegistryHandle.cs
- GacUtil.cs
- SimpleLine.cs
- ListViewInsertEventArgs.cs
- XslAst.cs
- DocumentViewerHelper.cs
- OverloadGroupAttribute.cs
- HttpGetProtocolReflector.cs
- DataIdProcessor.cs
- MruCache.cs
- JsonSerializer.cs
- ClientSponsor.cs
- RegistrySecurity.cs
- PermissionAttributes.cs
- CancellationToken.cs
- SiteMap.cs
- SoapAttributeAttribute.cs
- AtlasWeb.Designer.cs
- DependencyPropertyHelper.cs
- ProgressBarRenderer.cs
- ViewPort3D.cs
- GeometryHitTestResult.cs
- SqlRowUpdatedEvent.cs
- DrawItemEvent.cs
- TextViewDesigner.cs
- ProfileParameter.cs
- NetworkInformationException.cs
- CompilationSection.cs
- XPathNavigatorReader.cs
- SqlOuterApplyReducer.cs
- IArgumentProvider.cs
- GiveFeedbackEventArgs.cs
- WorkflowMarkupSerializationException.cs
- __Filters.cs
- DataRelationPropertyDescriptor.cs
- ParentUndoUnit.cs
- RepeatButtonAutomationPeer.cs
- BinaryMessageEncodingElement.cs
- TransformGroup.cs
- TrustLevelCollection.cs
- ServiceBuildProvider.cs
- SocketElement.cs
- ExpressionLexer.cs
- RemoteWebConfigurationHost.cs
- XmlTextEncoder.cs