|
-
Aug 23rd, 2000, 02:27 AM
#1
Thread Starter
New Member
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.
-
Aug 24th, 2000, 05:41 PM
#2
Member
I may be able to help you, in what context are you using the setprinter call?
Grant French
-----------------------------------------------
E-Mail: [email protected]
ICQ: 33122184
-
Aug 25th, 2000, 04:54 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|