spoolss: add spoolss_PrinterChangeFlags.
authorGünther Deschner <gd@samba.org>
Mon, 9 Feb 2009 13:53:31 +0000 (14:53 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 9 Feb 2009 14:59:03 +0000 (15:59 +0100)
Guenther

librpc/idl/spoolss.idl

index b5ac6cc7c389a9e303b4c2516108b1b0a87cc17b..551bef827dbc138fde26d33afe21fa0087687879 100644 (file)
@@ -1147,6 +1147,60 @@ import "misc.idl", "security.idl", "winreg.idl";
 
        /******************/
        /* Function: 0x3b */
+
+       typedef [bitmap32bit] bitmap {
+               PRINTER_CHANGE_ADD_PRINTER                      = 0x00000001,
+               PRINTER_CHANGE_SET_PRINTER                      = 0x00000002,
+               PRINTER_CHANGE_DELETE_PRINTER                   = 0x00000004,
+               PRINTER_CHANGE_FAILED_CONNECTION_PRINTER        = 0x00000008,
+               PRINTER_CHANGE_ADD_JOB                          = 0x00000100,
+               PRINTER_CHANGE_SET_JOB                          = 0x00000200,
+               PRINTER_CHANGE_DELETE_JOB                       = 0x00000400,
+               PRINTER_CHANGE_WRITE_JOB                        = 0x00000800,
+               PRINTER_CHANGE_ADD_FORM                         = 0x00010000,
+               PRINTER_CHANGE_SET_FORM                         = 0x00020000,
+               PRINTER_CHANGE_DELETE_FORM                      = 0x00040000,
+               PRINTER_CHANGE_ADD_PORT                         = 0x00100000,
+               PRINTER_CHANGE_CONFIGURE_PORT                   = 0x00200000,
+               PRINTER_CHANGE_DELETE_PORT                      = 0x00400000,
+               PRINTER_CHANGE_ADD_PRINT_PROCESSOR              = 0x01000000,
+               PRINTER_CHANGE_DELETE_PRINT_PROCESSOR           = 0x04000000,
+               PRINTER_CHANGE_ADD_PRINTER_DRIVER               = 0x10000000,
+               PRINTER_CHANGE_SET_PRINTER_DRIVER               = 0x20000000,
+               PRINTER_CHANGE_DELETE_PRINTER_DRIVER            = 0x40000000,
+               PRINTER_CHANGE_TIMEOUT                          = 0x80000000
+       } spoolss_PrinterChangeFlags;
+
+       const int PRINTER_CHANGE_PRINTER                        = (PRINTER_CHANGE_ADD_PRINTER |
+                                                                  PRINTER_CHANGE_SET_PRINTER |
+                                                                  PRINTER_CHANGE_DELETE_PRINTER |
+                                                                  PRINTER_CHANGE_FAILED_CONNECTION_PRINTER); /* 0x000000FF */
+
+       const int PRINTER_CHANGE_JOB                            = (PRINTER_CHANGE_ADD_JOB |
+                                                                  PRINTER_CHANGE_SET_JOB |
+                                                                  PRINTER_CHANGE_DELETE_JOB |
+                                                                  PRINTER_CHANGE_WRITE_JOB); /* 0x0000FF00 */
+
+       const int PRINTER_CHANGE_FORM                           = (PRINTER_CHANGE_ADD_FORM |
+                                                                  PRINTER_CHANGE_SET_FORM |
+                                                                  PRINTER_CHANGE_DELETE_FORM); /* 0x00070000 */
+
+       const int PRINTER_CHANGE_PORT                           = (PRINTER_CHANGE_ADD_PORT |
+                                                                  PRINTER_CHANGE_CONFIGURE_PORT |
+                                                                  PRINTER_CHANGE_DELETE_PORT); /* 0x00700000 */
+
+       const int PRINTER_CHANGE_PRINT_PROCESSOR                = (PRINTER_CHANGE_ADD_PRINT_PROCESSOR |
+                                                                  PRINTER_CHANGE_DELETE_PRINT_PROCESSOR); /* 0x07000000 */
+
+       const int PRINTER_CHANGE_PRINTER_DRIVER                 = (PRINTER_CHANGE_ADD_PRINTER_DRIVER |
+                                                                  PRINTER_CHANGE_SET_PRINTER_DRIVER |
+                                                                  PRINTER_CHANGE_DELETE_PRINTER_DRIVER); /* 0x70000000 */
+
+       const int PRINTER_CHANGE_ALL                            = (PRINTER_CHANGE_JOB |
+                                                                  PRINTER_CHANGE_FORM |
+                                                                  PRINTER_CHANGE_PORT |
+                                                                  PRINTER_CHANGE_PRINT_PROCESSOR |
+                                                                  PRINTER_CHANGE_PRINTER_DRIVER); /* 0x7777FFFF */
        [todo] WERROR spoolss_RouterReplyPrinter(
        );