1 /******************************************************************
\r
2 * SPOOLSS regression testing code for Samba print servers
\r
4 *****************************************************************/
\r
9 #include "printlib.h"
\r
11 /* we assume the necessary driver files are already uploaded
\r
12 on the server. We also only exercise The info level 3
\r
13 since that is the one used by the NT Add Printer Wizard */
\r
14 int main (int argc, char* argv[])
\r
20 fprintf (stderr, "useage: %s <servername> <arch> <driver name> <version>\n", argv[0]);
\r
25 if (!DeletePrinterDriverEx( argv[1], argv[2], argv[3], DPD_DELETE_SPECIFIC_VERSION|DPD_DELETE_UNUSED_FILES, atoi(argv[4]) ) )
\r
28 printf ("Printer Driver deleted successfully\n");
\r