00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __BTHDEF_H__
00027 #define __BTHDEF_H__
00028
00029 #ifndef GUID_DEFS_ONLY
00030 #ifndef NO_BTHSDPDEF_INC
00031 #include "bthsdpdef.h"
00032 #endif // NO_BTHSDPDEF_INC
00033 #endif // GUID_DEFS_ONLY
00034
00035 #ifndef NO_GUID_DEFS
00036
00037
00038 DEFINE_GUID(GUID_BTHPORT_DEVICE_INTERFACE, 0x850302a, 0xb344, 0x4fda, 0x9b, 0xe9, 0x90, 0x57, 0x6b, 0x8d, 0x46, 0xf0);
00039
00040
00041 DEFINE_GUID(GUID_BLUETOOTH_RADIO_IN_RANGE, 0xea3b5b82, 0x26ee, 0x450e, 0xb0, 0xd8, 0xd2, 0x6f, 0xe3, 0x0a, 0x38, 0x69);
00042
00043
00044 DEFINE_GUID(GUID_BLUETOOTH_RADIO_OUT_OF_RANGE, 0xe28867c9, 0xc2aa, 0x4ced, 0xb9, 0x69, 0x45, 0x70, 0x86, 0x60, 0x37, 0xc4);
00045
00046
00047 DEFINE_GUID(GUID_BLUETOOTH_PIN_REQUEST, 0xbd198b7c, 0x24ab, 0x4b9a, 0x8c, 0x0d, 0xa8, 0xea, 0x83, 0x49, 0xaa, 0x16);
00048
00049
00050 DEFINE_GUID(GUID_BLUETOOTH_L2CAP_EVENT, 0x7eae4030, 0xb709, 0x4aa8, 0xac, 0x55, 0xe9, 0x53, 0x82, 0x9c, 0x9d, 0xaa);
00051
00052
00053 DEFINE_GUID(GUID_BLUETOOTH_HCI_EVENT, 0xfc240062, 0x1541, 0x49be, 0xb4, 0x63, 0x84, 0xc4, 0xdc, 0xd7, 0xbf, 0x7f);
00054
00055
00056
00057
00058 DEFINE_GUID(Bluetooth_Base_UUID, 0x00000000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00059
00060
00061
00062
00063
00064 DEFINE_GUID(SDP_PROTOCOL_UUID, 0x00000001, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00065 DEFINE_GUID(UDP_PROTOCOL_UUID, 0x00000002, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00066 DEFINE_GUID(RFCOMM_PROTOCOL_UUID, 0x00000003, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00067 DEFINE_GUID(TCP_PROTOCOL_UUID, 0x00000004, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00068 DEFINE_GUID(TCSBIN_PROTOCOL_UUID, 0x00000005, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00069 DEFINE_GUID(TCSAT_PROTOCOL_UUID, 0x00000006, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00070 DEFINE_GUID(OBEX_PROTOCOL_UUID, 0x00000008, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00071 DEFINE_GUID(IP_PROTOCOL_UUID, 0x00000009, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00072 DEFINE_GUID(FTP_PROTOCOL_UUID, 0x0000000A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00073 DEFINE_GUID(HTTP_PROTOCOL_UUID, 0x0000000C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00074 DEFINE_GUID(WSP_PROTOCOL_UUID, 0x0000000E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00075 DEFINE_GUID(BNEP_PROTOCOL_UUID, 0x0000000F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00076 DEFINE_GUID(UPNP_PROTOCOL_UUID, 0x00000010, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00077 DEFINE_GUID(HID_PROTOCOL_UUID, 0x00000011, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00078 DEFINE_GUID(HCCC_PROTOCOL_UUID, 0x00000012, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00079 DEFINE_GUID(HCDC_PROTOCOL_UUID, 0x00000014, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00080 DEFINE_GUID(HN_PROTOCOL_UUID, 0x00000016, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00081 DEFINE_GUID(AVCTP_PROTOCOL_UUID, 0x00000017, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00082 DEFINE_GUID(AVDTP_PROTOCOL_UUID, 0x00000019, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00083 DEFINE_GUID(CMPT_PROTOCOL_UUID, 0x0000001B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00084 DEFINE_GUID(UDI_C_PLANE_PROTOCOL_UUID, 0x0000001D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00085 DEFINE_GUID(L2CAP_PROTOCOL_UUID, 0x00000100, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00086
00087 #define SDP_PROTOCOL_UUID16 (0x0001)
00088 #define UDP_PROTOCOL_UUID16 (0x0002)
00089 #define RFCOMM_PROTOCOL_UUID16 (0x0003)
00090 #define TCP_PROTOCOL_UUID16 (0x0004)
00091 #define TCSBIN_PROTOCOL_UUID16 (0x0005)
00092 #define TCSAT_PROTOCOL_UUID16 (0x0006)
00093 #define OBEX_PROTOCOL_UUID16 (0x0008)
00094 #define IP_PROTOCOL_UUID16 (0x0009)
00095 #define FTP_PROTOCOL_UUID16 (0x000A)
00096 #define HTTP_PROTOCOL_UUID16 (0x000C)
00097 #define WSP_PROTOCOL_UUID16 (0x000E)
00098 #define BNEP_PROTOCOL_UUID16 (0x000F)
00099 #define UPNP_PROTOCOL_UUID16 (0x0010)
00100 #define HID_PROTOCOL_UUID16 (0x0011)
00101 #define HCCC_PROTOCOL_UUID16 (0x0012)
00102 #define HCDC_PROTOCOL_UUID16 (0x0014)
00103 #define HCN_PROTOCOL_UUID16 (0x0016)
00104 #define AVCTP_PROTOCOL_UUID16 (0x0017)
00105 #define AVDTP_PROTOCOL_UUID16 (0x0019)
00106 #define CMPT_PROTOCOL_UUID16 (0x001B)
00107 #define UDI_C_PLANE_PROTOCOL_UUID16 (0x001D)
00108 #define L2CAP_PROTOCOL_UUID16 (0x0100)
00109
00110 DEFINE_GUID(ServiceDiscoveryServerServiceClassID_UUID, 0x00001000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00111 DEFINE_GUID(BrowseGroupDescriptorServiceClassID_UUID, 0x00001001, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00112 DEFINE_GUID(PublicBrowseGroupServiceClass_UUID, 0x00001002, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00113
00114 DEFINE_GUID(LANAccessUsingPPPServiceClass_UUID, 0x00001102, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00115 DEFINE_GUID(DialupNetworkingServiceClass_UUID, 0x00001103, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00116 DEFINE_GUID(IrMCSyncServiceClass_UUID, 0x00001104, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00117 DEFINE_GUID(OBEXObjectPushServiceClass_UUID, 0x00001105, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00118 DEFINE_GUID(OBEXFileTransferServiceClass_UUID, 0x00001106, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00119 DEFINE_GUID(IrMCSyncCommandServiceClass_UUID, 0x00001107, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00120 DEFINE_GUID(HeadsetServiceClass_UUID, 0x00001108, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00121 DEFINE_GUID(CordlessTelephonyServiceClass_UUID, 0x00001109, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00122 DEFINE_GUID(AudioSourceServiceClass_UUID, 0x0000110A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00123 DEFINE_GUID(AudioSinkServiceClass_UUID, 0x0000110B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00124 DEFINE_GUID(AVRemoteControlTargetServiceClass_UUID, 0x0000110C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00125 DEFINE_GUID(AdvancedAudioDistributionServiceClass_UUID,0x0000110D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00126 DEFINE_GUID(AVRemoteControlServiceClass_UUID, 0x0000110E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00127 DEFINE_GUID(VideoConferencingServiceClass_UUID, 0x0000110F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00128 DEFINE_GUID(IntercomServiceClass_UUID, 0x00001110, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00129 DEFINE_GUID(FaxServiceClass_UUID, 0x00001111, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00130 DEFINE_GUID(HeadsetAudioGatewayServiceClass_UUID, 0x00001112, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00131 DEFINE_GUID(WAPServiceClass_UUID, 0x00001113, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00132 DEFINE_GUID(WAPClientServiceClass_UUID, 0x00001114, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00133 DEFINE_GUID(PANUServiceClass_UUID, 0x00001115, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00134 DEFINE_GUID(NAPServiceClass_UUID, 0x00001116, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00135 DEFINE_GUID(GNServiceClass_UUID, 0x00001117, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00136 DEFINE_GUID(DirectPrintingServiceClass_UUID, 0x00001118, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00137 DEFINE_GUID(ReferencePrintingServiceClass_UUID, 0x00001119, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00138 DEFINE_GUID(ImagingServiceClass_UUID, 0x0000111A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00139 DEFINE_GUID(ImagingResponderServiceClass_UUID, 0x0000111B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00140 DEFINE_GUID(ImagingAutomaticArchiveServiceClass_UUID, 0x0000111C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00141 DEFINE_GUID(ImagingReferenceObjectsServiceClass_UUID, 0x0000111D, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00142 DEFINE_GUID(HandsfreeServiceClass_UUID, 0x0000111E, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00143 DEFINE_GUID(HandsfreeAudioGatewayServiceClass_UUID, 0x0000111F, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00144 DEFINE_GUID(DirectPrintingReferenceObjectsServiceClass_UUID,
00145 0x00001120, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00146 DEFINE_GUID(ReflectedUIServiceClass_UUID, 0x00001121, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00147 DEFINE_GUID(BasicPringingServiceClass_UUID, 0x00001122, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00148 DEFINE_GUID(PrintingStatusServiceClass_UUID, 0x00001123, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00149 DEFINE_GUID(HumanInterfaceDeviceServiceClass_UUID, 0x00001124, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00150 DEFINE_GUID(HardcopyCableReplacementServiceClass_UUID, 0x00001125, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00151 DEFINE_GUID(HCRPrintServiceClass_UUID, 0x00001126, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00152 DEFINE_GUID(HCRScanServiceClass_UUID, 0x00001127, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00153 DEFINE_GUID(CommonISDNAccessServiceClass_UUID, 0x00001128, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00154 DEFINE_GUID(VideoConferencingGWServiceClass_UUID, 0x00001129, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00155 DEFINE_GUID(UDIMTServiceClass_UUID, 0x0000112A, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00156 DEFINE_GUID(UDITAServiceClass_UUID, 0x0000112B, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00157 DEFINE_GUID(AudioVideoServiceClass_UUID, 0x0000112C, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00158 DEFINE_GUID(PnPInformationServiceClass_UUID, 0x00001200, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00159 DEFINE_GUID(GenericNetworkingServiceClass_UUID, 0x00001201, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00160 DEFINE_GUID(GenericFileTransferServiceClass_UUID, 0x00001202, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00161 DEFINE_GUID(GenericAudioServiceClass_UUID, 0x00001203, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00162 DEFINE_GUID(GenericTelephonyServiceClass_UUID, 0x00001204, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB);
00163
00164 #define ServiceDiscoveryServerServiceClassID_UUID16 (0x1000)
00165 #define BrowseGroupDescriptorServiceClassID_UUID16 (0x1001)
00166 #define PublicBrowseGroupServiceClassID_UUID16 (0x1002)
00167 #define SerialPortServiceClassID_UUID16 (0x1101)
00168 #define LANAccessUsingPPPServiceClassID_UUID16 (0x1102)
00169 #define DialupNetworkingServiceClassID_UUID16 (0x1103)
00170 #define IrMCSyncServiceClassID_UUID16 (0x1104)
00171 #define OBEXObjectPushServiceClassID_UUID16 (0x1105)
00172 #define OBEXFileTransferServiceClassID_UUID16 (0x1106)
00173 #define IrMcSyncCommandServiceClassID_UUID16 (0x1107)
00174 #define HeadsetServiceClassID_UUID16 (0x1108)
00175 #define CordlessServiceClassID_UUID16 (0x1109)
00176 #define AudioSourceServiceClassID_UUID16 (0x110A)
00177 #define AudioSinkSourceServiceClassID_UUID16 (0x110B)
00178 #define AVRemoteControlTargetServiceClassID_UUID16 (0x110C)
00179 #define AdvancedAudioDistributionServiceClassID_UUID16 (0x110D)
00180 #define AVRemoteControlServiceClassID_UUID16 (0x110E)
00181 #define VideoConferencingServiceClassID_UUID16 (0x110F)
00182 #define IntercomServiceClassID_UUID16 (0x1110)
00183 #define FaxServiceClassID_UUID16 (0x1111)
00184 #define HeadsetAudioGatewayServiceClassID_UUID16 (0x1112)
00185 #define WAPServiceClassID_UUID16 (0x1113)
00186 #define WAPClientServiceClassID_UUID16 (0x1114)
00187 #define PANUServiceClassID_UUID16 (0x1115)
00188 #define NAPServiceClassID_UUID16 (0x1116)
00189 #define GNServiceClassID_UUID16 (0x1117)
00190 #define DirectPrintingServiceClassID_UUID16 (0x1118)
00191 #define ReferencePrintingServiceClassID_UUID16 (0x1119)
00192 #define ImagingServiceClassID_UUID16 (0x111A)
00193 #define ImagingResponderServiceClassID_UUID16 (0x111B)
00194 #define ImagingAutomaticArchiveServiceClassID_UUID16 (0x111C)
00195 #define ImagingReferenceObjectsServiceClassID_UUID16 (0x111D)
00196 #define HandsfreeServiceClassID_UUID16 (0x111E)
00197 #define HandsfreeAudioGatewayServiceClassID_UUID16 (0x111F)
00198 #define DirectPrintingReferenceObjectsServiceClassID_UUID16 \
00199 (0x1120)
00200 #define ReflectsUIServiceClassID_UUID16 (0x1121)
00201 #define BasicPrintingServiceClassID_UUID16 (0x1122)
00202 #define PrintingStatusServiceClassID_UUID16 (0x1123)
00203 #define HumanInterfaceDeviceServiceClassID_UUID16 (0x1124)
00204 #define HardcopyCableReplacementServiceClassID_UUID16 (0x1125)
00205 #define HCRPrintServiceClassID_UUID16 (0x1126)
00206 #define HCRScanServiceClassID_UUID16 (0x1127)
00207 #define CommonISDNAccessServiceClass_UUID16 (0x1128)
00208 #define VideoConferencingGWServiceClass_UUID16 (0x1129)
00209 #define UDIMTServiceClass_UUID16 (0x112A)
00210 #define UDITAServiceClass_UUID16 (0x112B)
00211 #define AudioVideoServiceClass_UUID16 (0x112C)
00212
00213 #define PnPInformationServiceClassID_UUID16 (0x1200)
00214 #define GenericNetworkingServiceClassID_UUID16 (0x1201)
00215 #define GenericFileTransferServiceClassID_UUID16 (0x1202)
00216 #define GenericAudioServiceClassID_UUID16 (0x1203)
00217 #define GenericTelephonyServiceClassID_UUID16 (0x1204)
00218
00219 #endif // NO_GUID_DEFS
00220
00221 #ifndef GUID_DEFS_ONLY
00222
00223
00224
00225
00226 #define BTH_MAX_NAME_SIZE (248)
00227
00228 #define BTH_MAX_PIN_SIZE (16)
00229 #define BTH_LINK_KEY_LENGTH (16)
00230
00231 #define BTH_MFG_ERICSSON (0)
00232 #define BTH_MFG_NOKIA (1)
00233 #define BTH_MFG_INTEL (2)
00234 #define BTH_MFG_IBM (3)
00235 #define BTH_MFG_TOSHIBA (4)
00236 #define BTH_MFG_3COM (5)
00237 #define BTH_MFG_MICROSOFT (6)
00238 #define BTH_MFG_LUCENT (7)
00239 #define BTH_MFG_MOTOROLA (8)
00240 #define BTH_MFG_INFINEON (9)
00241 #define BTH_MFG_CSR (10)
00242 #define BTH_MFG_SILICONWAVE (11)
00243 #define BTH_MFG_DIGIANSWER (12)
00244 #define BTH_MFG_TI (13)
00245 #define BTH_MFG_PARTHUS (14)
00246 #define BTH_MFG_BROADCOM (15)
00247 #define BTH_MFG_MITEL (16)
00248 #define BTH_MFG_WIDCOMM (17)
00249 #define BTH_MFG_ZEEVO (18)
00250 #define BTH_MFG_ATMEL (19)
00251 #define BTH_MFG_MITSIBUSHI (20)
00252 #define BTH_MFG_RTX_TELECOM (21)
00253 #define BTH_MFG_KC_TECHNOLOGY (22)
00254 #define BTH_MFG_NEWLOGIC (23)
00255 #define BTH_MFG_TRANSILICA (24)
00256 #define BTH_MFG_ROHDE_SCHWARZ (25)
00257 #define BTH_MFG_TTPCOM (26)
00258 #define BTH_MFG_SIGNIA (27)
00259 #define BTH_MFG_CONEXANT (28)
00260 #define BTH_MFG_QUALCOMM (29)
00261 #define BTH_MFG_INVENTEL (30)
00262 #define BTH_MFG_AVM_BERLIN (31)
00263 #define BTH_MFG_BANDSPEED (32)
00264 #define BTH_MFG_MANSELLA (33)
00265 #define BTH_MFG_NEC (34)
00266 #define BTH_MFG_WAVEPLUS_TECHNOLOGY_CO (35)
00267 #define BTH_MFG_ALCATEL (36)
00268 #define BTH_MFG_PHILIPS_SEMICONDUCTOR (37)
00269 #define BTH_MFG_C_TECHNOLOGIES (38)
00270 #define BTH_MFG_OPEN_INTERFACE (39)
00271 #define BTH_MFG_RF_MICRO_DEVICES (40)
00272 #define BTH_MFG_HITACHI (41)
00273 #define BTH_MFG_SYMBOL_TECHNOLOGIES (42)
00274 #define BTH_MFG_TENOVIS (43)
00275 #define BTH_MFG_MACRONIX_INTERNATIONAL (44)
00276 #define BTH_MFG_INTERNAL_USE (65535)
00277
00278 typedef ULONGLONG BTH_ADDR, *PBTH_ADDR;
00279 typedef ULONG BTH_COD, *PBTH_COD;
00280 typedef ULONG BTH_LAP, *PBTH_LAP;
00281
00282 #define BTH_ADDR_NULL ((ULONGLONG) 0x0000000000000000)
00283
00284 #define NAP_MASK ((ULONGLONG) 0xFFFF00000000)
00285 #define SAP_MASK ((ULONGLONG) 0x0000FFFFFFFF)
00286
00287 #define NAP_BIT_OFFSET (8 * 4)
00288 #define SAP_BIT_OFFSET (0)
00289
00290 #define GET_NAP(_bth_addr) ((USHORT) (((_bth_addr) & NAP_MASK) >> NAP_BIT_OFFSET))
00291 #define GET_SAP(_bth_addr) ((ULONG) (((_bth_addr) & SAP_MASK) >> SAP_BIT_OFFSET))
00292
00293 #define SET_NAP(_nap) (((ULONGLONG) ((USHORT) (_nap))) << NAP_BIT_OFFSET)
00294 #define SET_SAP(_sap) (((ULONGLONG) ((ULONG) (_sap))) << SAP_BIT_OFFSET)
00295
00296 #define SET_NAP_SAP(_nap, _sap) (SET_NAP(_nap) | SET_SAP(_sap))
00297
00298 #define COD_FORMAT_BIT_OFFSET (0)
00299 #define COD_MINOR_BIT_OFFSET (2)
00300 #define COD_MAJOR_BIT_OFFSET (8 * 1)
00301 #define COD_SERVICE_BIT_OFFSET (8 * 1 + 5)
00302
00303 #define COD_FORMAT_MASK (0x000003)
00304 #define COD_MINOR_MASK (0x0000FC)
00305 #define COD_MAJOR_MASK (0x001F00)
00306 #define COD_SERVICE_MASK (0xFFE000)
00307
00308
00309 #define GET_COD_FORMAT(_cod) ( (_cod) & COD_FORMAT_MASK >> COD_FORMAT_BIT_OFFSET)
00310 #define GET_COD_MINOR(_cod) (((_cod) & COD_MINOR_MASK) >> COD_MINOR_BIT_OFFSET)
00311 #define GET_COD_MAJOR(_cod) (((_cod) & COD_MAJOR_MASK) >> COD_MAJOR_BIT_OFFSET)
00312 #define GET_COD_SERVICE(_cod) (((_cod) & COD_SERVICE_MASK) >> COD_SERVICE_BIT_OFFSET)
00313
00314 #define SET_COD_MINOR(_cod, _minor) (_cod) = ((_cod) & ~COD_MINOR_MASK) | ((_minor) << COD_MINOR_BIT_OFFSET)
00315 #define SET_COD_MAJOR(_cod, _major) (_cod) = ((_cod) & ~COD_MAJOR_MASK) | ((_major) << COD_MAJOR_BIT_OFFSET)
00316 #define SET_COD_SERVICE(_cod, _service) (_cod) = ((_cod) & ~COD_SERVICE_MASK) | ((_service) << COD_SERVICE_BIT_OFFSET)
00317
00318 #define COD_VERSION (0x0)
00319
00320 #define COD_SERVICE_LIMITED (0x0001)
00321 #define COD_SERVICE_POSITIONING (0x0008)
00322 #define COD_SERVICE_NETWORKING (0x0010)
00323 #define COD_SERVICE_RENDERING (0x0020)
00324 #define COD_SERVICE_CAPTURING (0x0040)
00325 #define COD_SERVICE_OBJECT_XFER (0x0080)
00326 #define COD_SERVICE_AUDIO (0x0100)
00327 #define COD_SERVICE_TELEPHONY (0x0200)
00328 #define COD_SERVICE_INFORMATION (0x0400)
00329
00330 #define COD_SERVICE_VALID_MASK (COD_SERVICE_LIMITED | \
00331 COD_SERVICE_POSITIONING | \
00332 COD_SERVICE_NETWORKING | \
00333 COD_SERVICE_RENDERING | \
00334 COD_SERVICE_CAPTURING | \
00335 COD_SERVICE_OBJECT_XFER |\
00336 COD_SERVICE_AUDIO |\
00337 COD_SERVICE_TELEPHONY |\
00338 COD_SERVICE_INFORMATION)
00339
00340 #define COD_SERVICE_MAX_COUNT (9)
00341
00342
00343
00344
00345 #define COD_MAJOR_MISCELLANEOUS (0x00)
00346 #define COD_MAJOR_COMPUTER (0x01)
00347 #define COD_MAJOR_PHONE (0x02)
00348 #define COD_MAJOR_LAN_ACCESS (0x03)
00349 #define COD_MAJOR_AUDIO (0x04)
00350 #define COD_MAJOR_PERIPHERAL (0x05)
00351 #define COD_MAJOR_IMAGING (0x06)
00352 #define COD_MAJOR_UNCLASSIFIED (0x1F)
00353
00354
00355
00356
00357 #define COD_COMPUTER_MINOR_UNCLASSIFIED (0x00)
00358 #define COD_COMPUTER_MINOR_DESKTOP (0x01)
00359 #define COD_COMPUTER_MINOR_SERVER (0x02)
00360 #define COD_COMPUTER_MINOR_LAPTOP (0x03)
00361 #define COD_COMPUTER_MINOR_HANDHELD (0x04)
00362 #define COD_COMPUTER_MINOR_PALM (0x05)
00363 #define COD_COMPUTER_MINOR_WEARABLE (0x06)
00364
00365 #define COD_PHONE_MINOR_UNCLASSIFIED (0x00)
00366 #define COD_PHONE_MINOR_CELLULAR (0x01)
00367 #define COD_PHONE_MINOR_CORDLESS (0x02)
00368 #define COD_PHONE_MINOR_SMART (0x03)
00369 #define COD_PHONE_MINOR_WIRED_MODEM (0x04)
00370
00371 #define COD_AUDIO_MINOR_UNCLASSIFIED (0x00)
00372 #define COD_AUDIO_MINOR_HEADSET (0x01)
00373 #define COD_AUDIO_MINOR_HANDS_FREE (0x02)
00374 #define COD_AUDIO_MINOR_HEADSET_HANDS_FREE (0x03)
00375 #define COD_AUDIO_MINOR_MICROPHONE (0x04)
00376 #define COD_AUDIO_MINOR_LOUDSPEAKER (0x05)
00377 #define COD_AUDIO_MINOR_HEADPHONES (0x06)
00378 #define COD_AUDIO_MINOR_PORTABLE_AUDIO (0x07)
00379 #define COD_AUDIO_MINOR_CAR_AUDIO (0x08)
00380 #define COD_AUDIO_MINOR_SET_TOP_BOX (0x09)
00381 #define COD_AUDIO_MINOR_HIFI_AUDIO (0x0A)
00382 #define COD_AUDIO_MINOR_VCR (0x0B)
00383 #define COD_AUDIO_MINOR_VIDEO_CAMERA (0x0C)
00384 #define COD_AUDIO_MINOR_CAMCORDER (0x0D)
00385 #define COD_AUDIO_MINOR_VIDEO_MONITOR (0x0E)
00386 #define COD_AUDIO_MINOR_VIDEO_DISPLAY_LOUDSPEAKER \
00387 (0x0F)
00388 #define COD_AUDIO_MINOR_VIDEO_DISPLAY_CONFERENCING \
00389 (0x10)
00390
00391 #define COD_AUDIO_MINOR_GAMING_TOY (0x12)
00392
00393 #define COD_PERIPHERAL_MINOR_KEYBOARD_MASK (0x10)
00394 #define COD_PERIPHERAL_MINOR_POINTER_MASK (0x20)
00395
00396 #define COD_PERIPHERAL_MINOR_NO_CATEGORY (0x00)
00397 #define COD_PERIPHERAL_MINOR_JOYSTICK (0x01)
00398 #define COD_PERIPHERAL_MINOR_GAMEPAD (0x02)
00399 #define COD_PERIPHERAL_MINOR_REMOTE_CONTROL (0x03)
00400 #define COD_PERIPHERAL_MINOR_SENSING (0x04)
00401
00402 #define COD_IMAGING_MINOR_DISPLAY_MASK (0x04)
00403 #define COD_IMAGING_MINOR_CAMERA_MASK (0x08)
00404 #define COD_IMAGING_MINOR_SCANNER_MASK (0x10)
00405 #define COD_IMAGING_MINOR_PRINTER_MASK (0x20)
00406
00407
00408
00409
00410
00411
00412 #define COD_LAN_ACCESS_BIT_OFFSET (5)
00413
00414 #define COD_LAN_MINOR_MASK (0x00001C)
00415 #define COD_LAN_ACCESS_MASK (0x0000E0)
00416
00417 #define GET_COD_LAN_MINOR(_cod) (((_cod) & COD_LAN_MINOR_MASK) >> COD_MINOR_BIT_OFFSET)
00418 #define GET_COD_LAN_ACCESS(_cod) (((_cod) & COD_LAN_ACCESS_MASK) >> COD_LAN_ACCESS_BIT_OFFSET)
00419
00420
00421
00422
00423 #define COD_LAN_MINOR_UNCLASSIFIED (0x00)
00424
00425 #define COD_LAN_ACCESS_0_USED (0x00)
00426 #define COD_LAN_ACCESS_17_USED (0x01)
00427 #define COD_LAN_ACCESS_33_USED (0x02)
00428 #define COD_LAN_ACCESS_50_USED (0x03)
00429 #define COD_LAN_ACCESS_67_USED (0x04)
00430 #define COD_LAN_ACCESS_83_USED (0x05)
00431 #define COD_LAN_ACCESS_99_USED (0x06)
00432 #define COD_LAN_ACCESS_FULL (0x07)
00433
00434
00435
00436
00437 #define LAP_GIAC_INIT { 0x33, 0x8B, 0x9E }
00438 #define LAP_LIAC_INIT { 0x00, 0x8B, 0x9E }
00439
00440
00441
00442
00443 #define LAP_GIAC_VALUE (0x009E8B33)
00444
00445
00446
00447
00448 #define LAP_LIAC_VALUE (0x009E8B00)
00449
00450 #define BTH_ADDR_IAC_FIRST (0x9E8B00)
00451 #define BTH_ADDR_IAC_LAST (0x9E8B3f)
00452 #define BTH_ADDR_LIAC (0x9E8B00)
00453 #define BTH_ADDR_GIAC (0x9E8B33)
00454
00455 typedef UCHAR BTHSTATUS, *PBTHSTATUS;
00456
00457 #define BTH_ERROR(_btStatus) ((_btStatus) != BTH_ERROR_SUCCESS)
00458 #define BTH_SUCCESS(_btStatus) ((_btStatus) == BTH_ERROR_SUCCESS)
00459
00460 #define BTH_ERROR_SUCCESS (0x00)
00461 #define BTH_ERROR_UNKNOWN_HCI_COMMAND (0x01)
00462 #define BTH_ERROR_NO_CONNECTION (0x02)
00463 #define BTH_ERROR_HARDWARE_FAILURE (0x03)
00464 #define BTH_ERROR_PAGE_TIMEOUT (0x04)
00465 #define BTH_ERROR_AUTHENTICATION_FAILURE (0x05)
00466 #define BTH_ERROR_KEY_MISSING (0x06)
00467 #define BTH_ERROR_MEMORY_FULL (0x07)
00468 #define BTH_ERROR_CONNECTION_TIMEOUT (0x08)
00469 #define BTH_ERROR_MAX_NUMBER_OF_CONNECTIONS (0x09)
00470 #define BTH_ERROR_MAX_NUMBER_OF_SCO_CONNECTIONS (0x0a)
00471 #define BTH_ERROR_ACL_CONNECTION_ALREADY_EXISTS (0x0b)
00472 #define BTH_ERROR_COMMAND_DISALLOWED (0x0c)
00473 #define BTH_ERROR_HOST_REJECTED_LIMITED_RESOURCES (0x0d)
00474 #define BTH_ERROR_HOST_REJECTED_SECURITY_REASONS (0x0e)
00475 #define BTH_ERROR_HOST_REJECTED_PERSONAL_DEVICE (0x0f)
00476 #define BTH_ERROR_HOST_TIMEOUT (0x10)
00477 #define BTH_ERROR_UNSUPPORTED_FEATURE_OR_PARAMETER (0x11)
00478 #define BTH_ERROR_INVALID_HCI_PARAMETER (0x12)
00479 #define BTH_ERROR_REMOTE_USER_ENDED_CONNECTION (0x13)
00480 #define BTH_ERROR_REMOTE_LOW_RESOURCES (0x14)
00481 #define BTH_ERROR_REMOTE_POWERING_OFF (0x15)
00482 #define BTH_ERROR_LOCAL_HOST_TERMINATED_CONNECTION (0x16)
00483 #define BTH_ERROR_REPEATED_ATTEMPTS (0x17)
00484 #define BTH_ERROR_PAIRING_NOT_ALLOWED (0x18)
00485 #define BTH_ERROR_UKNOWN_LMP_PDU (0x19)
00486 #define BTH_ERROR_UNSUPPORTED_REMOTE_FEATURE (0x1a)
00487 #define BTH_ERROR_SCO_OFFSET_REJECTED (0x1b)
00488 #define BTH_ERROR_SCO_INTERVAL_REJECTED (0x1c)
00489 #define BTH_ERROR_SCO_AIRMODE_REJECTED (0x1d)
00490 #define BTH_ERROR_INVALID_LMP_PARAMETERS (0x1e)
00491 #define BTH_ERROR_UNSPECIFIED_ERROR (0x1f)
00492 #define BTH_ERROR_UNSUPPORTED_LMP_PARM_VALUE (0x20)
00493 #define BTH_ERROR_ROLE_CHANGE_NOT_ALLOWED (0x21)
00494 #define BTH_ERROR_LMP_RESPONSE_TIMEOUT (0x22)
00495 #define BTH_ERROR_LMP_TRANSACTION_COLLISION (0x23)
00496 #define BTH_ERROR_LMP_PDU_NOT_ALLOWED (0x24)
00497 #define BTH_ERROR_ENCRYPTION_MODE_NOT_ACCEPTABLE (0x25)
00498 #define BTH_ERROR_UNIT_KEY_NOT_USED (0x26)
00499 #define BTH_ERROR_QOS_IS_NOT_SUPPORTED (0x27)
00500 #define BTH_ERROR_INSTANT_PASSED (0x28)
00501 #define BTH_ERROR_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED (0x29)
00502
00503 #define BTH_ERROR_UNSPECIFIED (0xFF)
00504
00505
00506
00507
00508 #define L2CAP_MIN_MTU (48)
00509 #define L2CAP_MAX_MTU (0xFFFF)
00510 #define L2CAP_DEFAULT_MTU (672)
00511
00512
00513
00514
00515 #define MAX_L2CAP_PING_DATA_LENGTH (44)
00516 #define MAX_L2CAP_INFO_DATA_LENGTH (44)
00517
00518
00519
00520
00521
00522
00523 #define BDIF_ADDRESS (0x00000001)
00524 #define BDIF_COD (0x00000002)
00525 #define BDIF_NAME (0x00000004)
00526 #define BDIF_PAIRED (0x00000008)
00527 #define BDIF_PERSONAL (0x00000010)
00528 #define BDIF_CONNECTED (0x00000020)
00529
00530 #define BDIF_VALID_FLAGS \
00531 (BDIF_ADDRESS | BDIF_COD | BDIF_NAME | BDIF_PAIRED | BDIF_PERSONAL | \
00532 BDIF_CONNECTED)
00533
00534 typedef struct _BTH_DEVICE_INFO {
00535
00536
00537
00538 ULONG flags;
00539
00540
00541
00542
00543 BTH_ADDR address;
00544
00545
00546
00547
00548 BTH_COD classOfDevice;
00549
00550
00551
00552
00553 CHAR name[BTH_MAX_NAME_SIZE];
00554
00555 } BTH_DEVICE_INFO, *PBTH_DEVICE_INFO;
00556
00557
00558
00559
00560 typedef struct _BTH_RADIO_IN_RANGE {
00561
00562
00563
00564 BTH_DEVICE_INFO deviceInfo;
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574 ULONG previousDeviceFlags;
00575
00576 } BTH_RADIO_IN_RANGE, *PBTH_RADIO_IN_RANGE;
00577
00578
00579
00580
00581 typedef struct _BTH_L2CAP_EVENT_INFO {
00582
00583
00584
00585 BTH_ADDR bthAddress;
00586
00587
00588
00589
00590 USHORT psm;
00591
00592
00593
00594
00595
00596
00597 UCHAR connected;
00598
00599
00600
00601
00602
00603
00604 UCHAR initiated;
00605
00606 } BTH_L2CAP_EVENT_INFO, *PBTH_L2CAP_EVENT_INFO;
00607
00608 #define HCI_CONNNECTION_TYPE_ACL (1)
00609 #define HCI_CONNNECTION_TYPE_SCO (2)
00610
00611
00612
00613
00614 typedef struct _BTH_HCI_EVENT_INFO {
00615
00616
00617
00618 BTH_ADDR bthAddress;
00619
00620
00621
00622
00623 UCHAR connectionType;
00624
00625
00626
00627
00628
00629
00630 UCHAR connected;
00631
00632 } BTH_HCI_EVENT_INFO, *PBTH_HCI_EVENT_INFO;
00633
00634
00635
00636
00637 #define BTH_MAX_SERVICE_NAME_SIZE (256)
00638
00639 #define MAX_UUIDS_IN_QUERY (12)
00640
00641 #define BTH_VID_DEFAULT_VALUE (0xFFFF)
00642
00643 #define SDP_ERROR_INVALID_SDP_VERSION (0x0001)
00644 #define SDP_ERROR_INVALID_RECORD_HANDLE (0x0002)
00645 #define SDP_ERROR_INVALID_REQUEST_SYNTAX (0x0003)
00646 #define SDP_ERROR_INVALID_PDU_SIZE (0x0004)
00647 #define SDP_ERROR_INVALID_CONTINUATION_STATE (0x0005)
00648 #define SDP_ERROR_INSUFFICIENT_RESOURCES (0x0006)
00649
00650
00651
00652
00653
00654
00655
00656
00657
00658
00659 #define SDP_ERROR_SUCCESS ((SDP_ERROR) 0x0000)
00660
00661
00662
00663
00664 #define SDP_ERROR_SERVER_INVALID_RESPONSE ((SDP_ERROR) 0x0100)
00665
00666
00667
00668
00669 #define SDP_ERROR_SERVER_RESPONSE_DID_NOT_PARSE ((SDP_ERROR) 0x0200)
00670
00671
00672
00673
00674
00675 #define SDP_ERROR_SERVER_BAD_FORMAT ((SDP_ERROR) 0x0300)
00676
00677
00678
00679
00680 #define SDP_ERROR_COULD_NOT_SEND_CONTINUE ((SDP_ERROR) 0x0400)
00681
00682
00683
00684
00685 #define SDP_ERROR_RESPONSE_TOO_LARGE ((SDP_ERROR) 0x0500)
00686
00687
00688 #define SDP_ATTRIB_RECORD_HANDLE (0x0000)
00689 #define SDP_ATTRIB_CLASS_ID_LIST (0x0001)
00690 #define SDP_ATTRIB_RECORD_STATE (0x0002)
00691 #define SDP_ATTRIB_SERVICE_ID (0x0003)
00692 #define SDP_ATTRIB_PROTOCOL_DESCRIPTOR_LIST (0x0004)
00693 #define SDP_ATTRIB_BROWSE_GROUP_LIST (0x0005)
00694 #define SDP_ATTRIB_LANG_BASE_ATTRIB_ID_LIST (0x0006)
00695 #define SDP_ATTRIB_INFO_TIME_TO_LIVE (0x0007)
00696 #define SDP_ATTRIB_AVAILABILITY (0x0008)
00697 #define SDP_ATTRIB_PROFILE_DESCRIPTOR_LIST (0x0009)
00698 #define SDP_ATTRIB_DOCUMENTATION_URL (0x000A)
00699 #define SDP_ATTRIB_CLIENT_EXECUTABLE_URL (0x000B)
00700 #define SDP_ATTRIB_ICON_URL (0x000C)
00701 #define SDP_ATTRIB_ADDITIONAL_PROTOCOL_DESCRIPTOR_LIST \
00702 (0x000D)
00703
00704
00705
00706
00707 #define SDP_ATTRIB_PROFILE_SPECIFIC (0x0200)
00708
00709 #define LANG_BASE_LANGUAGE_INDEX (0x0000)
00710 #define LANG_BASE_ENCODING_INDEX (0x0001)
00711 #define LANG_BASE_OFFSET_INDEX (0x0002)
00712 #define LANG_DEFAULT_ID (0x0100)
00713
00714 #define STRING_NAME_OFFSET (0x0000)
00715 #define STRING_DESCRIPTION_OFFSET (0x0001)
00716 #define STRING_PROVIDER_NAME_OFFSET (0x0002)
00717
00718 #define SDP_ATTRIB_SDP_VERSION_NUMBER_LIST (0x0200)
00719 #define SDP_ATTRIB_SDP_DATABASE_STATE (0x0201)
00720
00721 #define SDP_ATTRIB_BROWSE_GROUP_ID (0x0200)
00722
00723 #define SDP_ATTRIB_CORDLESS_EXTERNAL_NETWORK (0x0301)
00724
00725 #define SDP_ATTRIB_FAX_CLASS_1_SUPPORT (0x0302)
00726 #define SDP_ATTRIB_FAX_CLASS_2_0_SUPPORT (0x0303)
00727 #define SDP_ATTRIB_FAX_CLASS_2_SUPPORT (0x0304)
00728 #define SDP_ATTRIB_FAX_AUDIO_FEEDBACK_SUPPORT (0x0305)
00729
00730 #define SDP_ATTRIB_HEADSET_REMOTE_AUDIO_VOLUME_CONTROL (0x0302)
00731
00732 #define SDP_ATTRIB_LAN_LPSUBNET (0x0200)
00733
00734 #define SDP_ATTRIB_OBJECT_PUSH_SUPPORTED_FORMATS_LIST (0x0303)
00735
00736 #define SDP_ATTRIB_SYNCH_SUPPORTED_DATA_STORES_LIST (0x0301)
00737
00738
00739 #define SDP_ATTRIB_SERVICE_VERSION (0x0300)
00740
00741 #define SDP_ATTRIB_PAN_NETWORK_ADDRESS (0x0306)
00742 #define SDP_ATTRIB_PAN_WAP_GATEWAY (0x0307)
00743 #define SDP_ATTRIB_PAN_HOME_PAGE_URL (0x0308)
00744 #define SDP_ATTRIB_PAN_WAP_STACK_TYPE (0x0309)
00745 #define SDP_ATTRIB_PAN_SECURITY_DESCRIPTION (0x030A)
00746 #define SDP_ATTRIB_PAN_NET_ACCESS_TYPE (0x030B)
00747 #define SDP_ATTRIB_PAN_MAX_NET_ACCESS_RATE (0x030C)
00748
00749 #define SDP_ATTRIB_IMAGING_SUPPORTED_CAPABILITIES (0x0310)
00750 #define SDP_ATTRIB_IMAGING_SUPPORTED_FEATURES (0x0311)
00751 #define SDP_ATTRIB_IMAGING_SUPPORTED_FUNCTIONS (0x0312)
00752 #define SDP_ATTRIB_IMAGING_TOTAL_DATA_CAPACITY (0x0313)
00753
00754 #define SDP_ATTRIB_DI_SPECIFICATION_ID (0x0200)
00755 #define SDP_ATTRIB_DI_VENDOR_ID (0x0201)
00756 #define SDP_ATTRIB_DI_PRODUCT_ID (0x0202)
00757 #define SDP_ATTRIB_DI_VERSION (0x0203)
00758 #define SDP_ATTRIB_DI_PRIMARY_RECORD (0x0204)
00759 #define SDP_ATTRIB_DI_VENDOR_ID_SOURCE (0x0205)
00760
00761 #define SDP_ATTRIB_HID_DEVICE_RELEASE_NUMBER (0x0200)
00762 #define SDP_ATTRIB_HID_PARSER_VERSION (0x0201)
00763 #define SDP_ATTRIB_HID_DEVICE_SUBCLASS (0x0202)
00764 #define SDP_ATTRIB_HID_COUNTRY_CODE (0x0203)
00765 #define SDP_ATTRIB_HID_VIRTUAL_CABLE (0x0204)
00766 #define SDP_ATTRIB_HID_RECONNECT_INITIATE (0x0205)
00767 #define SDP_ATTRIB_HID_DESCRIPTOR_LIST (0x0206)
00768 #define SDP_ATTRIB_HID_LANG_ID_BASE_LIST (0x0207)
00769 #define SDP_ATTRIB_HID_SDP_DISABLE (0x0208)
00770 #define SDP_ATTRIB_HID_BATTERY_POWER (0x0209)
00771 #define SDP_ATTRIB_HID_REMOTE_WAKE (0x020A)
00772 #define SDP_ATTRIB_HID_REPORT_LIST (0x020B)
00773 #define SDP_ATTRIB_HID_SUPERVISION_TIMEOUT (0x020C)
00774 #define SDP_ATTRIB_HID_NORMALLY_CONNECTABLE (0x020D)
00775 #define SDP_ATTRIB_HID_BOOT_DEVICE (0x020E)
00776
00777
00778
00779
00780 #define CORDLESS_EXTERNAL_NETWORK_PSTN (0x01)
00781 #define CORDLESS_EXTERNAL_NETWORK_ISDN (0x02)
00782 #define CORDLESS_EXTERNAL_NETWORK_GSM (0x03)
00783 #define CORDLESS_EXTERNAL_NETWORK_CDMA (0x04)
00784 #define CORDLESS_EXTERNAL_NETWORK_ANALOG_CELLULAR (0x05)
00785 #define CORDLESS_EXTERNAL_NETWORK_PACKET_SWITCHED (0x06)
00786 #define CORDLESS_EXTERNAL_NETWORK_OTHER (0x07)
00787
00788 #define OBJECT_PUSH_FORMAT_VCARD_2_1 (0x01)
00789 #define OBJECT_PUSH_FORMAT_VCARD_3_0 (0x02)
00790 #define OBJECT_PUSH_FORMAT_VCAL_1_0 (0x03)
00791 #define OBJECT_PUSH_FORMAT_ICAL_2_0 (0x04)
00792 #define OBJECT_PUSH_FORMAT_VNOTE (0x05)
00793 #define OBJECT_PUSH_FORMAT_VMESSAGE (0x06)
00794 #define OBJECT_PUSH_FORMAT_ANY (0xFF)
00795
00796 #define SYNCH_DATA_STORE_PHONEBOOK (0x01)
00797 #define SYNCH_DATA_STORE_CALENDAR (0x03)
00798 #define SYNCH_DATA_STORE_NOTES (0x05)
00799 #define SYNCH_DATA_STORE_MESSAGES (0x06)
00800
00801 #define DI_VENDOR_ID_SOURCE_BLUETOOTH_SIG (0x0001)
00802 #define DI_VENDOR_ID_SOURCE_USB_IF (0x0002)
00803
00804 #define PSM_SDP (0x0001)
00805 #define PSM_RFCOMM (0x0003)
00806 #define PSM_TCS_BIN (0x0005)
00807 #define PSM_TCS_BIN_CORDLESS (0x0007)
00808 #define PSM_BNEP (0x000F)
00809 #define PSM_HID_CONTROL (0x0011)
00810 #define PSM_HID_INTERRUPT (0x0013)
00811 #define PSM_AVCTP (0x0017)
00812 #define PSM_AVDTP (0x0019)
00813 #define PSM_UDI_C_PLANE (0x001D)
00814
00815
00816
00817
00818 #define STR_ADDR_FMTA "(%02x:%02x:%02x:%02x:%02x:%02x)"
00819 #define STR_ADDR_FMTW L"(%02x:%02x:%02x:%02x:%02x:%02x)"
00820
00821 #define STR_ADDR_SHORT_FMTA "%04x%08x"
00822 #define STR_ADDR_SHORT_FMTW L"%04x%08x"
00823
00824 #if defined(UNICODE) || defined(BTH_KERN)
00825
00826 #define STR_ADDR_FMT STR_ADDR_FMTW
00827 #define STR_ADDR_SHORT_FMT STR_ADDR_SHORT_FMTW
00828
00829 #else // UNICODE
00830
00831 #define STR_ADDR_FMT STR_ADDR_FMTA
00832 #define STR_ADDR_SHORT_FMT STR_ADDR_SHORT_FMTA
00833
00834 #endif // UNICODE
00835
00836 #define GET_BITS(field,offset,mask) ( ( (field) >> (offset) ) & (mask) )
00837 #define GET_BIT(field,offset) ( GET_BITS(field,offset,0x1) )
00838
00839 #define LMP_3_SLOT_PACKETS(x) (GET_BIT(x, 0))
00840 #define LMP_5_SLOT_PACKETS(x) (GET_BIT(x, 1))
00841 #define LMP_ENCRYPTION(x) (GET_BIT(x, 2))
00842 #define LMP_SLOT_OFFSET(x) (GET_BIT(x, 3))
00843 #define LMP_TIMING_ACCURACY(x) (GET_BIT(x, 4))
00844 #define LMP_SWITCH(x) (GET_BIT(x, 5))
00845 #define LMP_HOLD_MODE(x) (GET_BIT(x, 6))
00846 #define LMP_SNIFF_MODE(x) (GET_BIT(x, 7))
00847 #define LMP_PARK_MODE(x) (GET_BIT(x, 8))
00848 #define LMP_RSSI(x) (GET_BIT(x, 9))
00849 #define LMP_CHANNEL_QUALITY_DRIVEN_MODE(x) (GET_BIT(x,10))
00850 #define LMP_SCO_LINK(x) (GET_BIT(x,11))
00851 #define LMP_HV2_PACKETS(x) (GET_BIT(x,12))
00852 #define LMP_HV3_PACKETS(x) (GET_BIT(x,13))
00853 #define LMP_MU_LAW_LOG(x) (GET_BIT(x,14))
00854 #define LMP_A_LAW_LOG(x) (GET_BIT(x,15))
00855 #define LMP_CVSD(x) (GET_BIT(x,16))
00856 #define LMP_PAGING_SCHEME(x) (GET_BIT(x,17))
00857 #define LMP_POWER_CONTROL(x) (GET_BIT(x,18))
00858 #define LMP_TRANSPARENT_SCO_DATA(x) (GET_BIT(x,19))
00859 #define LMP_FLOW_CONTROL_LAG(x) (GET_BITS(x,20,0x3))
00860
00861 #endif // GUID_DEFS_ONLY
00862
00863 #endif // __BTHDEF_H__