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
- GridItemProviderWrapper.cs
- BrowserCapabilitiesFactory.cs
- FrameworkName.cs
- RtfNavigator.cs
- _ProxyChain.cs
- ReadOnlyCollection.cs
- DocumentXmlWriter.cs
- CodeAttributeDeclarationCollection.cs
- RegexCompilationInfo.cs
- DescendantQuery.cs
- RTLAwareMessageBox.cs
- GraphicsPathIterator.cs
- EventDescriptor.cs
- LinkButton.cs
- WindowsGraphics.cs
- TryExpression.cs
- EntityDataSource.cs
- RequestTimeoutManager.cs
- Crc32.cs
- ResolvedKeyFrameEntry.cs
- CalendarSelectionChangedEventArgs.cs
- LayoutTableCell.cs
- WindowHelperService.cs
- IndentTextWriter.cs
- StrongNamePublicKeyBlob.cs
- TreeViewAutomationPeer.cs
- brushes.cs
- BrowserDefinition.cs
- ResolveNameEventArgs.cs
- ServiceContractViewControl.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FlowDocumentView.cs
- OAVariantLib.cs
- Utility.cs
- CapacityStreamGeometryContext.cs
- ChannelListenerBase.cs
- SQLInt16Storage.cs
- PeerNameRecordCollection.cs
- MobileControl.cs
- GetBrowserTokenRequest.cs
- DataGridViewRowHeaderCell.cs
- DataServiceQueryProvider.cs
- DetailsViewDesigner.cs
- ListenerHandler.cs
- TextBoxLine.cs
- EntityCommandDefinition.cs
- ProfilePropertySettings.cs
- AttributeXamlType.cs
- StateDesigner.TransitionInfo.cs
- QuotedPrintableStream.cs
- EventTask.cs
- DBSchemaRow.cs
- VirtualPath.cs
- RC2.cs
- ConfigurationPropertyCollection.cs
- BrowserTree.cs
- TextDecorationUnitValidation.cs
- EventPrivateKey.cs
- ProxyWebPart.cs
- StopStoryboard.cs
- UnsafeNativeMethods.cs
- ConfigsHelper.cs
- DeclarativeCatalogPart.cs
- TextEndOfSegment.cs
- XsltOutput.cs
- TemplateManager.cs
- DirectionalAction.cs
- HatchBrush.cs
- IMembershipProvider.cs
- SqlParameter.cs
- LineGeometry.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CellConstant.cs
- MonthChangedEventArgs.cs
- GC.cs
- Italic.cs
- XamlNamespaceHelper.cs
- TextEffectResolver.cs
- TextElementAutomationPeer.cs
- DataGridColumnHeader.cs
- ExpressionPrefixAttribute.cs
- NullableBoolConverter.cs
- IsolatedStorageFileStream.cs
- HttpModulesSection.cs
- TypeUnloadedException.cs
- InternalPolicyElement.cs
- TextDocumentView.cs
- Hyperlink.cs
- FileStream.cs
- DtdParser.cs
- DBConnectionString.cs
- BreakRecordTable.cs
- CompressEmulationStream.cs
- BindingValueChangedEventArgs.cs
- IRCollection.cs
- WebPartConnectionsConfigureVerb.cs
- WebConfigurationHost.cs
- BasicViewGenerator.cs
- ListSortDescription.cs
- Int32RectValueSerializer.cs