irda.h
上传用户:looem2003
上传日期:2014-07-20
资源大小:13733k
文件大小:1k
- /*++
- Copyright (c) 1997-2003 Microsoft Corporation
- All rights reserved.
- Module Name:
- irda.h
- Abstract:
- Definitions used for IRDA printing
- --*/
- #ifndef _IRDA_H_
- #define _IRDA_H_
- #define PRINTER_HINT_BIT 0x08
- #define DEVICE_LIST_LEN 5
- #define WRITE_TIMEOUT 60000 // 60 seconds
- #define BUF_SIZE sizeof(DEVICELIST) + (DEVICE_LIST_LEN - 1) * sizeof(IRDA_DEVICE_INFO)
- typedef struct _IRDA_INFO {
- DWORD dwBeginTime;
- DWORD dwSendPduLen;
- WSAOVERLAPPED WsaOverlapped;
- WSABUF WsaBuf;
- LPBYTE pBuf;
- } IRDA_INFO, *PIRDA_INFO;
- VOID
- CheckAndAddIrdaPort(
- __in PINILOCALMON pIniLocalMon
- );
- VOID
- CheckAndDeleteIrdaPort(
- __in PINILOCALMON pIniLocalMon
- );
- BOOL
- IrdaStartDocPort(
- __inout PINIPORT pIniPort
- );
- BOOL
- IrdaWritePort(
- __in HANDLE hPort,
- __in_bcount(cbBuf) LPBYTE pBuf,
- DWORD cbBuf,
- __out LPDWORD pcbWritten
- );
- VOID
- IrdaEndDocPort(
- __in PINIPORT pIniPort
- );
- #endif // _IRDA_H_