Jóhannes H. Laxdal is a specialized humanoid carbon unit whose field is computers and telling lousy jokes, it has a tendency to put "well" before every sentence it utters. In here you will find its ramblings about computer-related stuff.
// Here is an example on how you can interface with FSRM (File Server Resource Manager) to programmatically set or change a quota for a given directory.
// First you need to find and reference the srmlib.dll file from either the Windows SDK 7.1 or from Windows 2008 R2 installation.
// you need these using statements.
usingMicrosoft.Storage;
usingSystem.Runtime.InteropServices;
usingSystem.IO;// For the Directory creation if needed
// Here comes the code that goes into your main class or wherever you need it.
// Note that this is not present by default in Visual Studio, you require either an installed WMS Server on the local machine or copy and reference the Microsoft.WindowsMediaServices.dll file from either the Windows SDK or a WMS Server
usingMicrosoft.WindowsMediaServices.Interop;
// ------------------------
// This lists all publishing points present on the local Windows Media Services 9.5 instance (WMS in Windows 2008), this will probably work on older WMS Servers as well.