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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CapabilitiesPattern.cs
- HebrewCalendar.cs
- UIElementPropertyUndoUnit.cs
- UIElement.cs
- TreeViewItem.cs
- ToolStripSplitStackLayout.cs
- MouseGestureConverter.cs
- Double.cs
- MultiPropertyDescriptorGridEntry.cs
- DataGridViewCellLinkedList.cs
- RouteValueDictionary.cs
- OutputWindow.cs
- RoutedEventArgs.cs
- KeyMatchBuilder.cs
- CustomCategoryAttribute.cs
- XmlSchemaAnnotated.cs
- OleDbInfoMessageEvent.cs
- GridViewDeleteEventArgs.cs
- MimePart.cs
- AutomationInteropProvider.cs
- AuthenticationSection.cs
- XhtmlStyleClass.cs
- OutputCacheProfileCollection.cs
- DependencyPropertyHelper.cs
- CharacterHit.cs
- SecurityElement.cs
- ControlsConfig.cs
- Lasso.cs
- XmlSchemaInclude.cs
- WebPart.cs
- MsmqDiagnostics.cs
- TraceEventCache.cs
- HTTPNotFoundHandler.cs
- XamlSerializerUtil.cs
- DataGridView.cs
- TextUtf8RawTextWriter.cs
- SecurityContext.cs
- MarkupExtensionParser.cs
- PolicyException.cs
- StringValidatorAttribute.cs
- Attribute.cs
- MarkupCompiler.cs
- SharedConnectionListener.cs
- TextAdaptor.cs
- CodeSnippetExpression.cs
- TdsParserStaticMethods.cs
- NetSectionGroup.cs
- WindowProviderWrapper.cs
- DisplayToken.cs
- ListBoxItem.cs
- baseshape.cs
- PageAsyncTaskManager.cs
- securitymgrsite.cs
- DomainConstraint.cs
- ModelItem.cs
- ImageAttributes.cs
- ExpressionBuilderContext.cs
- KerberosSecurityTokenAuthenticator.cs
- Typography.cs
- CalendarAutoFormatDialog.cs
- WebScriptMetadataFormatter.cs
- ToolStripItemClickedEventArgs.cs
- UIntPtr.cs
- BindingContext.cs
- DataColumnCollection.cs
- ColorTranslator.cs
- AssociationTypeEmitter.cs
- CalendarDateRange.cs
- Stroke.cs
- LiteralControl.cs
- TempEnvironment.cs
- PermissionRequestEvidence.cs
- LocalClientSecuritySettingsElement.cs
- Part.cs
- Encoding.cs
- XmlSchemaValidator.cs
- SchemaElement.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CrossSiteScriptingValidation.cs
- WebZone.cs
- ReadonlyMessageFilter.cs
- WebPartZone.cs
- CompressionTransform.cs
- Point.cs
- ImageSourceConverter.cs
- JournalEntryListConverter.cs
- ComboBoxHelper.cs
- TypeDelegator.cs
- XmlIlTypeHelper.cs
- ThreadInterruptedException.cs
- UrlMappingsModule.cs
- FormatterServices.cs
- FrameworkRichTextComposition.cs
- AddInToken.cs
- SqlPersonalizationProvider.cs
- HtmlValidationSummaryAdapter.cs
- ValidationErrorInfo.cs
- xmlsaver.cs
- GeneralTransform.cs
- serverconfig.cs