How can I get printer handle without printer name? RRS feed

  • Question

  • I want to block printing by hooking. so I hook startdoc.

    Unfortunately, If I block the specific printer, I should get printer handle

    I know how to get printer handle from printer name. but I don't know printer name
    I have known only printer hdc and document name. 

    I have tried for 3 days. but I can not find about that :(

    If anybody knows about, please answer..

    Tuesday, March 24, 2015 8:09 AM