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.

61 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name :
  4. rdpdrprt.h
  5. Abstract:
  6. Routines for managing dynamic printer port allocation for the RDP device
  7. redirection kernel mode component, rdpdr.sys.
  8. Port number 0 is reserved and never allocated.
  9. Author:
  10. tadb
  11. Revision History:
  12. --*/
  13. #pragma once
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif // __cplusplus
  17. // This is the GUID we use to identify a dynamic printer port to
  18. // dynamon.
  19. extern const GUID DYNPRINT_GUID;
  20. // Device interface client device registry value name
  21. #define CLIENT_DEVICE_VALUE_NAME L"Client Device Name"
  22. // Initialize this module.
  23. NTSTATUS RDPDRPRT_Initialize();
  24. // Register a new client-side port with the spooler via the dynamic port
  25. // monitor.
  26. NTSTATUS RDPDRPRT_RegisterPrinterPortInterface(
  27. IN PWSTR clientMachineName,
  28. IN PCSTR clientPortName,
  29. IN PUNICODE_STRING clientDevicePath,
  30. OUT PWSTR portName,
  31. IN OUT PUNICODE_STRING symbolicLinkName,
  32. OUT ULONG *portNumber
  33. );
  34. // Unregister a port registered via call to RDPDRPRT_RegisterPrinterPortInterface.
  35. void RDPDRPRT_UnregisterPrinterPortInterface(
  36. IN ULONG portNumber,
  37. IN PUNICODE_STRING symbolicLinkName
  38. );
  39. // Shut down this module.
  40. void RDPDRPRT_Shutdown();
  41. #ifdef __cplusplus
  42. } // extern "C"
  43. #endif // __cplusplus