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.

40 lines
866 B

  1. // USBPort.cpp: implementation of the CUSBPort class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "USBPort.h"
  5. //////////////////////////////////////////////////////////////////////
  6. // Construction/Destruction
  7. //////////////////////////////////////////////////////////////////////
  8. CUSBPort::CUSBPort( BOOL bActive, LPTSTR pszPortName, LPTSTR pszDevicePath )
  9. : CBasePort( bActive, pszPortName, pszDevicePath, cszUSBPortDesc )
  10. {
  11. // Basically let the default constructor do the work.
  12. m_dwMaxBufferSize = 0x1000;
  13. }
  14. CUSBPort::~CUSBPort()
  15. {
  16. }
  17. PORTTYPE CUSBPort::getPortType()
  18. {
  19. return USBPORT;
  20. }
  21. void CUSBPort::setPortDesc( LPTSTR pszPortDesc )
  22. {
  23. // Don't change the description
  24. }
  25. void CUSBPort::setMaxBuffer(DWORD dwMaxBufferSize)
  26. {
  27. m_dwMaxBufferSize = 0x1000;
  28. }