📄 reference.h
字号:
/////////////////////////////////////////////////////////////////////////////
// File Name:
// reference.h
// Abstract:
// define some macro variables.the other hand, define the variable type to
// get the convenience to transplantation.
//
// Author:
// ZHU AN
// Revision History:
// 15/12/2006 17:35:10 AM ZHU AN Created
/////////////////////////////////////////////////////////////////////////////
#ifndef _REFERENCE_H_
#define _REFERENCE_H_
#include <winsock.h>
#include <stdio.h>
#include "bt_ui.h"
#include "bt_def.h"
#define MAX_BUFLEN 256
#define MAX_PATHLEN 260
#define MAX_CONNECT_COUNT 8
#define MAX_SERVICE_COUNT 100
#define MAX_SPPEX 2
#define MAX_IO_THREAD 4
#define IP_LEN 16
#define DETECT_BY_EVENT 1
#define DETECT_BY_API 2
typedef struct _COM_IO
{
DWORD dwConnHandle;
int nComPort;
HANDLE hThread;
BOOL bStopFlag;
}COM_IO;
typedef struct _SPPEX_INFO
{
DWORD dwHanlde;
SPPEX_SERVICE_INFO svcInfo;
BOOL bIsConnected;
}SPPEX_INFO;
typedef struct _SOCKET_PORT
{
SOCKET Socket;
UCHAR ucComPort;
}SOCKET_PORT;
typedef struct _DEVICE_INFO
{
BLUETOOTH_DEVICE_INFO DeviceInfo;
UINT32 iServiceNum;
GENERAL_SERVICE_INFO* pServiceInfo;
UINT32 iConnectionNum;
GENERAL_CONNECT_INFO* pConnectionInfo;
UINT32 iSocketPortNum;
SOCKET_PORT* pSocketPort;
}DEVICE_INFO;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -