Windows Home Server Tutorial on MSDN

Two main sections:

  1. Extending the Windows Home Server Console. This section walks through creating one sample application–a Windows Home Server Add-in, which demonstrates how to write code that adds Console and Settings tabs to the Windows Home Server Console.:

  3. Extending Windows Home Server. This section walks through several smaller code snippets, which demonstrate how to write code that retrieves information about some common Windows Home Server objects.

WHSInfoClass: After you have an instance of WHSInfoClass, you can use its methods to manipulate other objects that are exposed by the Windows Home Server API.

    • e.g. WHSInfoClass pInfo = new WHSInfoClass();


  • Name
  • Text description
  • Operating system
  • IP address
  • Online status (online or offline)
      • e.g.  pInfo.GetClientComputerInfo();

IShareInfo read-only properties:

  • Name
  • Text description
  • Folder Duplication status
  • Media Library Sharing status
  • Path
      • .e.g. pInfo.GetShareInfo();

IApplicationFolder read-only properties:

  • Name
  • Folder Duplication status
  • Path
      • GetApplicationFolder, CreateApplicationFolder


  • Used space
  • Size
  • Path


  • Size
  • Device path


  • The Windows Home Server notification infrastructure provides a way for an application to alert end users or other applications on the home server about events that are important to the application, such as a serious application error.
  • Windows Home Server also uses the notification infrastructure to alert end users and applications about important Windows Home Server events. When a significant event occurs—for example, when a hard disk fails—applications that are registered to receive notifications receive notification of the event.

    Some types of notifications also appear in the Home Network Health dialog in Windows Home Server, as well as in the system tray of each client computer that is joined to the Windows Home Server network.

    By using Windows Home Server, you can write applications that add notifications, that are registered to receive notifications, or both.


  • Create Notification: WHSInfoClass, Init, AddNotification, RemoveNotification,
  • Register For Notification: INotificationCallback, Init, WHSInfoClass, RegisterForNotification,UnRegisterForNotification

Backups: The Windows Home Server API provides ways to get important information about the state of Backup on Windows Home Server as well as some of the properties of an individual backup. e.g. GetBackupStartTime, GetBackupEstimatedCompletionTime

API Reference


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s