1 /******************************************************************
\r
2 * SPOOLSS regression testing code for Samba print servers
\r
4 *****************************************************************/
\r
8 #include "printlib.h"
\r
10 /* we assume the necessary driver files are already uploaded
\r
11 on the server. We also only exercise The info level 3
\r
12 since that is the one used by the NT Add Printer Wizard */
\r
13 int main (int argc, char* argv[])
\r
19 fprintf (stderr, "useage: %s <servername> <arch> <driver name>\n", argv[0]);
\r
24 if (!DeletePrinterDriver(argv[1], argv[2], argv[3]))
\r
26 FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
\r
27 FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(),
\r
28 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
\r
29 (LPTSTR) &lpMsgBuf, 0, NULL);
\r
30 printf ("ERROR : %s\n", (char*)lpMsgBuf);
\r
31 LocalFree (lpMsgBuf);
\r
35 printf ("Printer Driver deleted successfully\n");
\r