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.

77 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. umrdpprn.h
  5. Abstract:
  6. User-Mode Component for RDP Device Management that Handles Printing Device-
  7. Specific tasks.
  8. This is a supporting module. The main module is umrdpdr.c.
  9. Author:
  10. TadB
  11. Revision History:
  12. --*/
  13. #ifndef _UMRDPPRN_
  14. #define _UMRDPPRN_
  15. #include <rdpdr.h>
  16. #include "wtblobj.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif // __cplusplus
  20. // Initialize this module. This must be called prior to any other functions
  21. // in this module being called.
  22. BOOL UMRDPPRN_Initialize(
  23. IN PDRDEVLST deviceList,
  24. IN WTBLOBJMGR waitableObjMgr,
  25. IN HANDLE hTokenForLoggedOnUser
  26. );
  27. // Close down this module. Right now, we just need to shut down the
  28. // background thread.
  29. BOOL UMRDPPRN_Shutdown();
  30. // Handle a printing device announce event from the "dr" by doing
  31. // whatever it takes to get the device installed.
  32. BOOL UMRDPPRN_HandlePrinterAnnounceEvent(
  33. IN PRDPDR_PRINTERDEVICE_SUB pPrintAnnounce
  34. );
  35. // Handle a printer port device announce event from the "dr" by doing
  36. // whatever it takes to get the device installed.
  37. BOOL UMRDPPRN_HandlePrintPortAnnounceEvent(
  38. IN PRDPDR_PORTDEVICE_SUB pPortAnnounce
  39. );
  40. // Delete the symbolic link for the serial port and restore the original
  41. // symbolic link if it exists
  42. BOOL UMRDPPRN_DeleteSerialLink(
  43. IN UCHAR *preferredDosName,
  44. IN WCHAR *ServerDeviceName,
  45. IN WCHAR *ClientDeviceName
  46. );
  47. // Delete the named printer. This function does not remove the printer
  48. // from the comprehensive device management list.
  49. BOOL UMRDPPRN_DeleteNamedPrinterQueue(
  50. IN PWSTR printerName
  51. );
  52. #ifdef __cplusplus
  53. }
  54. #endif // __cplusplus
  55. #endif // _UMRDPPRN_