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

//----------------------------------------------------------------------------
//
// Non-network I/O support.
//
// Copyright (C) Microsoft Corporation, 2000.
//
//----------------------------------------------------------------------------
#ifndef __PORTIO_H__
#define __PORTIO_H__
HRESULT CreateOverlappedPair(LPOVERLAPPED Read, LPOVERLAPPED Write);
BOOL ComPortRead(HANDLE Port, PVOID Buffer, ULONG Len, PULONG Done,
LPOVERLAPPED Olap);
BOOL ComPortWrite(HANDLE Port, PVOID Buffer, ULONG Len, PULONG Done,
LPOVERLAPPED Olap);
void SetComPortName(PCSTR Name, PSTR Buffer);
ULONG SelectComPortBaud(ULONG NewRate);
HRESULT SetComPortBaud(HANDLE Port, ULONG NewRate, PULONG RateSet);
HRESULT OpenComPort(PSTR Port, ULONG BaudRate, ULONG Timeout,
PHANDLE Handle, PULONG BaudSet);
HRESULT Create1394Channel(ULONG Channel, PSTR Name, PHANDLE Handle);
HRESULT Open1394Channel(ULONG Channel, PSTR Name, PHANDLE Handle);
#endif // #ifndef __PORTIO_H__