Developers: More New Undocumented Classes for Windows Home Server

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


Enjoyed this post? Share it.

If you enjoyed reading this post, then why not share it with your friends and followers?

About Terry Walsh

Terry Walsh is the founding editor and owner of We Got Served. Since February 2007, the site has provided detailed coverage and analysis of the emerging home server category, and has subsequently grown into a trusted outlet for digital home news and reviews.

Sign Up for WGS Daily News

If you don't want to miss out on the latest news from We Got Served, why not subscribe to our daily digest? You'll get the day's headlines and a short summary of each news item delivered straight to your inbox each morning.

, , , , ,