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.

44 lines
1.0 KiB

  1. // TSPort.cpp: implementation of the CTSPort class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "TSPort.h"
  5. //////////////////////////////////////////////////////////////////////
  6. // Construction/Destruction
  7. //////////////////////////////////////////////////////////////////////
  8. CTSPort::CTSPort( BOOL bActive, LPTSTR pszPortName, LPTSTR pszDevicePath )
  9. : CBasePort( bActive, pszPortName, pszDevicePath, cszTSPortDesc )
  10. {
  11. // Basically let the default constructor do the work.
  12. }
  13. CTSPort::~CTSPort()
  14. {
  15. }
  16. PORTTYPE CTSPort::getPortType()
  17. {
  18. return TSPORT;
  19. }
  20. BOOL CTSPort::getPrinterDataFromPort( DWORD dwControlID, LPTSTR pValueName, LPWSTR lpInBuffer, DWORD cbInBuffer,
  21. LPWSTR lpOutBuffer, DWORD cbOutBuffer, LPDWORD lpcbReturned )
  22. {
  23. SetLastError( ERROR_INVALID_FUNCTION );
  24. return FALSE;
  25. }
  26. BOOL CTSPort::setPortTimeOuts( LPCOMMTIMEOUTS lpCTO )
  27. {
  28. SetLastError( ERROR_INVALID_FUNCTION );
  29. return FALSE;
  30. }