Printer Device Contexts

You obtain a handle to a printer DC by calling the CreateDC function. Call the DeleteDC function to delete the printer DC when you are finished printing.

Caution You must delete, rather than release, a printer device context; the ReleaseDC function fails if you try to use it to free a printer device context.