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
- SimpleWebHandlerParser.cs
- BaseDataListPage.cs
- shaperfactoryquerycachekey.cs
- OletxVolatileEnlistment.cs
- RegularExpressionValidator.cs
- StringArrayEditor.cs
- GPRECTF.cs
- LayoutTable.cs
- validationstate.cs
- PrintController.cs
- SqlClientWrapperSmiStream.cs
- AVElementHelper.cs
- InternalConfigSettingsFactory.cs
- ImageMetadata.cs
- UnmanagedMemoryStreamWrapper.cs
- Queue.cs
- TypeForwardedToAttribute.cs
- SrgsRuleRef.cs
- ManagedWndProcTracker.cs
- OLEDB_Enum.cs
- EntityDataSourceState.cs
- BindingContext.cs
- FixedPageStructure.cs
- ProviderConnectionPoint.cs
- FrugalList.cs
- EntityViewGenerationAttribute.cs
- BamlVersionHeader.cs
- Debug.cs
- figurelength.cs
- ObjectPersistData.cs
- TemplateParser.cs
- Label.cs
- PageBreakRecord.cs
- ExclusiveCanonicalizationTransform.cs
- AmbientLight.cs
- CompilationLock.cs
- StylusPointProperty.cs
- Utils.cs
- CodeSnippetStatement.cs
- BypassElementCollection.cs
- Region.cs
- METAHEADER.cs
- ByteKeyFrameCollection.cs
- ListView.cs
- Transform3DGroup.cs
- SafeRegistryHandle.cs
- SocketAddress.cs
- Literal.cs
- XmlProcessingInstruction.cs
- WindowsGraphicsCacheManager.cs
- RouteItem.cs
- XmlToDatasetMap.cs
- FastEncoder.cs
- CompilationSection.cs
- RefreshResponseInfo.cs
- FrugalList.cs
- DateTimeOffsetAdapter.cs
- CompilerWrapper.cs
- WebControlsSection.cs
- SecureStringHasher.cs
- ConfigXmlWhitespace.cs
- CodeDomDesignerLoader.cs
- Metafile.cs
- DoubleLinkListEnumerator.cs
- TextBoxView.cs
- FastEncoder.cs
- AsymmetricSignatureFormatter.cs
- PolyQuadraticBezierSegment.cs
- StrongNameIdentityPermission.cs
- CodeCommentStatementCollection.cs
- ChameleonKey.cs
- RegexTree.cs
- DataServiceRequest.cs
- ComboBoxHelper.cs
- ServiceInfoCollection.cs
- GPPOINT.cs
- XmlSchemas.cs
- DocumentXPathNavigator.cs
- XmlSchemaGroup.cs
- GridViewDeleteEventArgs.cs
- StrongNameSignatureInformation.cs
- ListItemCollection.cs
- Cursors.cs
- ResourceSetExpression.cs
- ObjectStateEntryDbDataRecord.cs
- EncodingInfo.cs
- Crc32.cs
- WebPartCatalogCloseVerb.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WeakEventManager.cs
- SystemEvents.cs
- InkCanvasSelection.cs
- WorkflowOperationAsyncResult.cs
- DataGridViewCellLinkedList.cs
- InternalTransaction.cs
- GeometryCollection.cs
- AudioFileOut.cs
- controlskin.cs
- DropDownList.cs
- WindowsListViewSubItem.cs