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
- ButtonBase.cs
- ValidationErrorEventArgs.cs
- ManagementClass.cs
- XPathNodeIterator.cs
- NativeMethods.cs
- ActivityIdHeader.cs
- XmlName.cs
- MenuBase.cs
- serverconfig.cs
- ThemeableAttribute.cs
- Deflater.cs
- DiscoveryDocumentReference.cs
- ObservableDictionary.cs
- DispatcherOperation.cs
- RequestTimeoutManager.cs
- WinEventHandler.cs
- SettingsPropertyCollection.cs
- VectorAnimationBase.cs
- BasePattern.cs
- PackageStore.cs
- XmlWhitespace.cs
- SqlDataSourceStatusEventArgs.cs
- VisualStyleTypesAndProperties.cs
- RowUpdatedEventArgs.cs
- AdapterDictionary.cs
- DocumentPageView.cs
- _ConnectionGroup.cs
- CompositeFontInfo.cs
- BooleanFunctions.cs
- HttpFileCollectionWrapper.cs
- UserControlAutomationPeer.cs
- DesignerFrame.cs
- TableTextElementCollectionInternal.cs
- StringResourceManager.cs
- OleDbCommand.cs
- GorillaCodec.cs
- HttpTransportElement.cs
- ChannelBase.cs
- HotSpot.cs
- BasicCommandTreeVisitor.cs
- TabControlAutomationPeer.cs
- Imaging.cs
- NativeMethods.cs
- ContainerSelectorBehavior.cs
- AutomationProperties.cs
- UndoManager.cs
- Overlapped.cs
- EventPrivateKey.cs
- UnsafeNativeMethods.cs
- XmlSchemaSimpleContentExtension.cs
- CompiledXpathExpr.cs
- ActivationArguments.cs
- EpmSourceTree.cs
- xdrvalidator.cs
- SecurityMessageProperty.cs
- GroupByQueryOperator.cs
- TextBounds.cs
- TcpAppDomainProtocolHandler.cs
- TcpPortSharing.cs
- FramingEncoders.cs
- DirectoryGroupQuery.cs
- AnnotationObservableCollection.cs
- PropertyToken.cs
- PnrpPermission.cs
- DataGridGeneralPage.cs
- BamlRecordWriter.cs
- MessageQueue.cs
- CreateBookmarkScope.cs
- SymDocumentType.cs
- Wizard.cs
- FontEmbeddingManager.cs
- DataGridGeneralPage.cs
- dataSvcMapFileLoader.cs
- SmtpDateTime.cs
- WebPartCancelEventArgs.cs
- WindowsScrollBar.cs
- WebPartHelpVerb.cs
- SqlCommandSet.cs
- FloaterParaClient.cs
- StorageRoot.cs
- SystemIPGlobalProperties.cs
- ConstraintConverter.cs
- NextPreviousPagerField.cs
- ContainerParagraph.cs
- TickBar.cs
- ToolStripStatusLabel.cs
- QilUnary.cs
- LogicalTreeHelper.cs
- DataGridViewBand.cs
- BrowserCapabilitiesFactory35.cs
- FtpCachePolicyElement.cs
- ListView.cs
- ExtensionQuery.cs
- WebPartActionVerb.cs
- InfoCardCryptoHelper.cs
- FragmentQueryKB.cs
- AdornerPresentationContext.cs
- MemoryMappedViewStream.cs
- LightweightCodeGenerator.cs
- EffectiveValueEntry.cs