Archive for July, 2009

Undocumented WHS classes: MiscUtils

July 22, 2009

A new article in the series of undocumented API’s in Windows Home Server.

This new article describes the undocumented functions in the MiscUtils class which is located in HomeServerControls.dll.
This class is a handy little helper.
You can find it here.

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)

Congratulations to all the new MVP’s!

July 2, 2009

Congratulations to all the new MVP’s that help shape this wonderful WHS community! 🙂
You can find some more info here:
MSWHS
HomeServerLand
WeGotServed