Source code of Windows XP (NT5)
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.

26 lines
1004 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // Non-network I/O support.
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef __PORTIO_H__
  9. #define __PORTIO_H__
  10. HRESULT CreateOverlappedPair(LPOVERLAPPED Read, LPOVERLAPPED Write);
  11. BOOL ComPortRead(HANDLE Port, PVOID Buffer, ULONG Len, PULONG Done,
  12. LPOVERLAPPED Olap);
  13. BOOL ComPortWrite(HANDLE Port, PVOID Buffer, ULONG Len, PULONG Done,
  14. LPOVERLAPPED Olap);
  15. void SetComPortName(PCSTR Name, PSTR Buffer);
  16. ULONG SelectComPortBaud(ULONG NewRate);
  17. HRESULT SetComPortBaud(HANDLE Port, ULONG NewRate, PULONG RateSet);
  18. HRESULT OpenComPort(PSTR Port, ULONG BaudRate, ULONG Timeout,
  19. PHANDLE Handle, PULONG BaudSet);
  20. HRESULT Create1394Channel(ULONG Channel, PSTR Name, PHANDLE Handle);
  21. HRESULT Open1394Channel(ULONG Channel, PSTR Name, PHANDLE Handle);
  22. #endif // #ifndef __PORTIO_H__