The WPD API is a COM API. Unfortunately it does not support IDispatch so we can't use it in scripting. You could use it in .Net with some interop magic, but that's an extended exercise :). We'll write samples in C++ to illustrate using the API and as