Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. //
  3. // This is the public header file for apps that call MSPRINT.DLL
  4. //
  5. //////////////////////////////////////////////////////////////////////////
  6. #ifdef _WIN32
  7. // Typedef for the following function:
  8. //
  9. // BOOL WINAPI PrinterSetup32(HWND hWnd,WORD wAction,WORD wBufSize,
  10. // LPBYTE lpBuffer,LPWORD lpwRequired);
  11. typedef BOOL (WINAPI* PRINTERSETUPPROC32)(HWND,WORD,WORD,LPBYTE,LPWORD);
  12. #define MSPRINT2_PRINTERSETUP32 ("PrinterSetup32")
  13. #endif
  14. #define MSP_NEWPRINTER 1
  15. #define MSP_NETPRINTER 2
  16. #define MSP_NEWDRIVER 3
  17. #define MSP_NETADMIN 4
  18. #define MSP_TESTPAGEFULLPROMPT 5
  19. #define MSP_TESTPAGEPARTIALPROMPT 6
  20. #define MSP_TESTPAGENOPROMPT 7
  21. #define MSP_REMOVEPRINTER 8
  22. #define MSP_SPOOLERFOUNDPRINTER 9
  23. #define MSP_REMOVENETPRINTER 10
  24. #define MSP_NEWPRINTER_MODELESS 11
  25. #define MSP_FINDPRINTER 12
  26. #if 0
  27. #define MSPRINT_TESTONLY
  28. #define MSP_BATCHPRINTERS 100
  29. #define PBD_INSTALLED 1L
  30. typedef struct tagONEPRINTERBATCHDATA
  31. {
  32. char szFriendlyName[32];
  33. char szModelName[32];
  34. char szPort[60];
  35. DWORD dwFlags;
  36. } ONEPRINTERBATCHDATA, FAR * LPONEPRINTERBATCHDATA;
  37. typedef struct tagPRINTERBATCHDATA
  38. {
  39. char szFileSource[60];
  40. DWORD dwCount;
  41. ONEPRINTERBATCHDATA Printers[1];
  42. } PRINTERBATCHDATA, FAR * LPPRINTERBATCHDATA;
  43. #endif