mybtutil.h

来自「《Windows CE 6.0开发者参考》(《Programming Windo」· C头文件 代码 · 共 35 行

H
35
字号
//======================================================================
// Header file
//
// Written for the book Programming Windows CE
// Copyright (C) 2007 Douglas Boling
//======================================================================

#ifndef _MYBTUTIL_H_
#define _MYBTUTIL_H_

#if defined (__cplusplus)
extern "C" {
#endif

typedef struct {
    TCHAR szName[256];
    BT_ADDR btaddr;
} MYBTDEVICE, *PMYBTDEVICE;

// Finds Bluetooth devices
int FindDevices (PMYBTDEVICE pbtDev, int *pnDevs);

// Registers a BT service
int RegisterBtService (GUID *pguid, byte bChannel, 
                       ULONG *pRecord);

// Clears a BT service from the SDP database
int UnregisterBtService (HWND hWnd, ULONG hRecord);

#if defined (__cplusplus)
}
#endif

#endif // _MYBTUTIL_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?