Developers: More New Undocumented Classes for Windows Home Server

Sat, Jul 25, 2009

  |  Terry Walsh

Nick Asseloos from Asoft continues his series looking at undocumented Windows Home Server Classes, releasing a new guide to the MiscUtils class.

The following functions are explained:

  • string DropSecondsFromTimeFormat(string timeFormat)
  • string FormatDescriptionToFixedWidth(string description, int maxChars)
  • uint GetPercentage(long value, long total)
  • bool IsCorrectLogonName(string name)
  • bool IsLetterOrDigit(string name)
  • bool IsValidHelpFile(string helpFileName)
  • string LastPieceOfThePathName(string name)
  • string LegibleDateTime(DateTime dateTime)
  • string LegibleDuration(TimeSpan duration)
  • string LegibleExcludedFolderName(string name)
  • string LegibleFolderNameSize(string name, long size)
  • string LegibleLocalDateTime(DateTime dateTime)
  • string LegibleSize(long lSizeInBytes)
  • string LegibleSize(long lSizeInBytes, int decimalPlaces)
  • string LegibleSize(long lSizeInBytes, int decimalPlaces, int maxLength)
  • string LegibleVolumeName(string volumeName, string mountPoint)
  • DateTime LocalTime(DateTime timeUTC)
  • string NameFromFriendlyPieces(string volumeFriendlyName, string folderName)
  • string PathNameWithoutLastPiece(string name)
  • bool SafeCharacters(string name)
  • bool SafeCharactersSafeEnding(string name)
  • bool SafeNameCharacters(string name)
  • void SetEnabled(Control control, bool enabled)
  • void SetImage(PictureBox control, System.Drawing.Image image)
  • void SetText(Control control, string text)
  • void SetValue(ProgressBar control, int value)
  • void SetVisible(Control control, bool visible)
  • void AddLineToTextbox(TextBox control, string line)
  • string StripDriveLetter(string s)
  • string StripMnemonicChar(string text)

Obviously, these kind of articles are for a specific audience, but if you’re a developer, then dive right in!

More Info: Asoft Blog

 

Similar Posts:

This post was written by:

Terry Walsh - who has written 1293 posts on We Got Served.

Hi - I'm Terry and I'm the Owner of We Got Served. The site's been covering everything to do with Windows Home Server since February 2007. I live in Silverstone, UK with my wife and work in the Consumer Electronics industry.

Contact the author

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply