Vista at home

So, in a break from my usual technical stuff, I thought I’d talk about something else (closely related) near & dear to me.  Vista is getting very close to shipping.  It’s exciting.  People are reall in ship mode around here.  Sometimes it’s intense, sometimes it’s stressful.  On the whole, though, it’s mostly fun.  There’s buzz…

1

Handling CoInitialize (and CoUninitialize!)

I’m covering this topic because I’ve seen a couple of drivers now that are calling CoUninitialize a few too many times and causing subsequent app failures, but the topic is probably useful for anyone doing anything related to COM. CoInitialize initializes COM on a per-thread basis.  That is, for each thread on which you want…

6

Handling IPrintOemPrintTicketProvider::ValidatePrintTicket

If you’re writing a plug-in driver for Unidrv or PScript, there’s a design quirk that you should be aware of, and should code around it accordingly. UnidrvUI.DLL and PS5UI.dll implement IPrintTicketProvider.  That interface has a ValidatePrintTicket call.  In that call, the logic is a bit complicated, but the basic flow works like this: Convert PrintTicket to…


Who answers my blog (an experiment)

[Update: I’ve set the email address back to my own account.] Well, it’s summere here in Seattle, and that means its time to take some vacation.  I’ve been 100% responsive to questiosn sent via the feedback form my blog so far, but I’m going to be in and out of the office, so I’m changing…


How do I test my PrintTicket support?

If you’ve been following the blog, and adding support to your drivers for PrintTicket, then you’re probably looking for some applications to test your PrintTicket implementations with.  The best place to start is the new photo print wizard (PPW) in Vista Beta 2 (Be sure to note the breaking changes in my previous post: http://blogs.msdn.com/benkuhn/archive/2006/06/07/620980.aspx!). …

6

XPS & Adobe @ Andy’s Blog

If you’ve been following PrintTicket, you know that it’s the way to store printer settings in an XS document.  Anyway, XPS has been getting a lot of attention lately from Adobe, among others.  Andy has the full scoop here: http://blogs.msdn.com/andy_simonds/archive/2006/06/02/XPSAdobe.aspx If you’re developing XPS / PrintTicket drivers, you should probably hop over & give it…


Print Schema Breaking Changes and PrintTicket/PrintCapabilities API behavior changes

  These changes will NOT appear in Beta 2.  These changes will be included in the RC1 release of Vista.   Please email xpsinfo@microsoft.com for any questions or comments or use the feedback form on this blog.   Print Schema Keyword String Changes   We will be making changes to the following keywords in the…


PrintTicket, names, and XPath

There’s an easy mistake to make when writing XPath queries on PrintTickets, and I want to set the record straight on how to write this query correctly to save you some pain.  Here’s the set-up.  I have a PrintTicket that looks like this, and I want to find the PageMediaSizeFeature: <psf:PrintTicket xmlns:psf=”http://…/printschemaframework” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:psk=”http://…/printschemakeywords” version=”1″…


Adding PrintTicket support to a monolithic driver

I’ve been getting a number of questions lately about various aspects of adding support for PrintTicket to a monolithic driver.  In response, I’ve put together a short ‘how to article that I hope you’ll find helpful.  This walkthrough is basically geared towards getting a minimal implementation up and running, though there will be much more…

4

Using PrintTicket for print layout

The PrintTicket contains a feature PageMediaSize that describe various attributes about a piece of paper, and is intended to let users pick the paper size that they want to print on.  The PageImageableSize is what should be used for application layout.  Why the distinction?  A look at the Win32 programming model can provide the answer:…

3