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.

71 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. rdpprutl.h
  5. Abstract:
  6. Contains print redirection supporting routines for the TS printer
  7. redirection user-mode component.
  8. This is a supporting module. The main module is umrdpdr.c.
  9. Author:
  10. TadB
  11. Revision History:
  12. --*/
  13. #ifndef _RDPPRUTL_
  14. #define _RDPPRUTL_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif // __cplusplus
  18. // Return a new default printer security descriptor.
  19. PSECURITY_DESCRIPTOR RDPDRUTL_CreateDefaultPrinterSecuritySD(
  20. IN PSID userSid
  21. );
  22. // Initialize this module. This must be called prior to any other functions
  23. // in this module being called.
  24. BOOL RDPDRUTL_Initialize(
  25. IN HANDLE hTokenForLoggedOnUser
  26. );
  27. // Map a source printer driver name to a destination printer driver name.
  28. BOOL RDPDRUTL_MapPrintDriverName(
  29. IN PCWSTR driverName,
  30. IN PCWSTR infName,
  31. IN PCWSTR sectionName,
  32. IN ULONG sourceFieldOfs,
  33. IN ULONG dstFieldOfs,
  34. OUT PWSTR retBuf,
  35. IN DWORD retBufSize,
  36. OUT PDWORD requiredSize
  37. );
  38. // Remove all TS printers on the system.
  39. DWORD RDPDRUTL_RemoveAllTSPrinters();
  40. // Close down this module. Right now, we just need to shut down the
  41. // background thread.
  42. void RDPDRUTL_Shutdown();
  43. // Return whether an open printer is a TSRDP printer.
  44. BOOL RDPDRUTL_PrinterIsTS(
  45. IN PWSTR printerName
  46. );
  47. #ifdef __cplusplus
  48. }
  49. #endif // __cplusplus
  50. #endif //#ifndef _RDPPRUTL_