In this example, if templateObject is indeed a template, a new object is created from it.
if( _wpQueryStyle( templateObject ) & OBJSTYLE_TEMPLATE )
{
destFolder = _wpclsQueryFolder(_WPFolder,"<WP_DESKTOP>",TRUE);
MyPrinterObject = _wpCreateFromTemplate( templateObject
, destFolder
, FALSE );
if (MyPrinterObject != NULLHANDLE) {
_wpSetTitle( dummyPrinterObject, "My Printer Object" );
} /* endif */
}