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.

74 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. w32drlpt
  5. Abstract:
  6. This module defines the parent for the Win32 client-side RDP
  7. LPT port redirection "device" class hierarchy, W32DrLPT.
  8. Author:
  9. Tad Brockway 3/23/99
  10. Revision History:
  11. --*/
  12. #ifndef __W32DRLPT_H__
  13. #define __W32DRLPT_H__
  14. #include "w32drprt.h"
  15. ///////////////////////////////////////////////////////////////
  16. //
  17. // W32DrLPT
  18. //
  19. class W32DrLPT : public W32DrPRT
  20. {
  21. private:
  22. public:
  23. //
  24. // Constructor
  25. //
  26. W32DrLPT(ProcObj *processObject, const DRSTRING portName,
  27. ULONG deviceID, const TCHAR *devicePath);
  28. //
  29. // Returns the configurable LPT port max ID.
  30. //
  31. static DWORD GetLPTPortMax(ProcObj *procObj);
  32. //
  33. // Enumerate devices of this type.
  34. //
  35. static DWORD Enumerate(ProcObj *procObj, DrDeviceMgr *deviceMgr);
  36. //
  37. // Get the device type. See "Device Types" section of rdpdr.h
  38. //
  39. virtual ULONG GetDeviceType() { return RDPDR_DTYP_PARALLEL; }
  40. //
  41. // Return the class name.
  42. //
  43. virtual DRSTRING ClassName() { return TEXT("W32DrLPT"); }
  44. };
  45. #endif