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. w32drcom
  5. Abstract:
  6. This module defines the parent for the Win32 client-side RDP
  7. COM port redirection "device" class hierarchy, W32DrCOM.
  8. Author:
  9. Tad Brockway 3/23/99
  10. Revision History:
  11. --*/
  12. #ifndef __W32DRCOM_H__
  13. #define __W32DRCOM_H__
  14. #include "w32drprt.h"
  15. ///////////////////////////////////////////////////////////////
  16. //
  17. // W32DrCOM
  18. //
  19. //
  20. class W32DrCOM : public W32DrPRT
  21. {
  22. protected:
  23. //
  24. // Returns the configurable COM port max ID.
  25. //
  26. static DWORD GetCOMPortMax(ProcObj *procObj);
  27. public:
  28. //
  29. // Constructor
  30. //
  31. W32DrCOM(ProcObj *processObject, const DRSTRING portName,
  32. ULONG deviceID, const TCHAR *devicePath);
  33. //
  34. // Enumerate devices of this type.
  35. //
  36. static DWORD Enumerate(ProcObj *procObj, DrDeviceMgr *deviceMgr);
  37. // Get the device type. See "Device Types" section of rdpdr.h
  38. virtual ULONG GetDeviceType() { return RDPDR_DTYP_SERIAL; }
  39. // Return the class name.
  40. virtual DRSTRING ClassName() { return TEXT("W32DrCOM"); }
  41. virtual DWORD InitializeDevice( IN DrFile* fileObj );
  42. };
  43. #endif