Results 1 to 3 of 3

Thread: SetPrinter API

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Angry

    Please, does anyone know how the SetPrinter API is used on Win NT ? i got it to work on Win 95, but it still gives me a PRINTER_ACCESS_DENIED Error on Win NT, even when i am logged in as Admin, and the PRINTER_ALL_ACCESS Flag in the OpenPrinter API is set.

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60

    Cool

    I may be able to help you, in what context are you using the setprinter call?

    Grant French
    -----------------------------------------------
    E-Mail: [email protected]
    ICQ: 33122184

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Cool Setprinter API

    Thanks a lot for your fast willing to help, i found the solution by chance:

    I have to stop several Printers on a NT System for a user defined time. I wanted to do that with the GetPrinter/Setprinter API.

    I used openprinter with PRINTER_ALL_ACCESS
    and then Getprinter twice, but my fault was that i forgot
    to use the CopyMemory Function with the DevMode Struct and call the DocumentProperties Function. After i did this
    the program works properly on NT.





    Thanks anyway for a fast reply here


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width