Go to the documentation of this file.00001 #ifndef __BTHSDPDEF_H__
00002 #define __BTHSDPDEF_H__
00003
00004 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00010 struct SDP_LARGE_INTEGER_16 {
00011 ULONGLONG LowPart;
00012 LONGLONG HighPart;
00013 };
00014
00015
00016 struct SDP_ULARGE_INTEGER_16 {
00017 ULONGLONG LowPart;
00018 ULONGLONG HighPart;
00019 };
00020
00021 typedef struct SDP_ULARGE_INTEGER_16 SDP_ULARGE_INTEGER_16, *PSDP_ULARGE_INTEGER_16, *LPSDP_ULARGE_INTEGER_16;
00022 typedef struct SDP_LARGE_INTEGER_16 SDP_LARGE_INTEGER_16, *PSDP_LARGE_INTEGER_16, *LPSDP_LARGE_INTEGER_16;
00023
00024 enum NodeContainerType {
00025 NodeContainerTypeSequence,
00026 NodeContainerTypeAlternative
00027 };
00028
00029 typedef enum NodeContainerType NodeContainerType;
00030
00031 typedef USHORT SDP_ERROR, *PSDP_ERROR;
00032
00033 enum SDP_TYPE {
00034 SDP_TYPE_NIL = 0x00,
00035 SDP_TYPE_UINT = 0x01,
00036 SDP_TYPE_INT = 0x02,
00037 SDP_TYPE_UUID = 0x03,
00038 SDP_TYPE_STRING = 0x04,
00039 SDP_TYPE_BOOLEAN = 0x05,
00040 SDP_TYPE_SEQUENCE = 0x06,
00041 SDP_TYPE_ALTERNATIVE = 0x07,
00042 SDP_TYPE_URL = 0x08,
00043 SDP_TYPE_CONTAINER = 0x20
00044 };
00045
00046 typedef enum SDP_TYPE SDP_TYPE;
00047
00048
00049
00050
00051 enum SDP_SPECIFICTYPE {
00052 SDP_ST_NONE = 0x0000,
00053
00054 SDP_ST_UINT8 = 0x0010,
00055 SDP_ST_UINT16 = 0x0110,
00056 SDP_ST_UINT32 = 0x0210,
00057 SDP_ST_UINT64 = 0x0310,
00058 SDP_ST_UINT128 = 0x0410,
00059
00060 SDP_ST_INT8 = 0x0020,
00061 SDP_ST_INT16 = 0x0120,
00062 SDP_ST_INT32 = 0x0220,
00063 SDP_ST_INT64 = 0x0320,
00064 SDP_ST_INT128 = 0x0420,
00065
00066 SDP_ST_UUID16 = 0x0130,
00067 SDP_ST_UUID32 = 0x0220,
00068 SDP_ST_UUID128 = 0x0430
00069 };
00070 typedef enum SDP_SPECIFICTYPE SDP_SPECIFICTYPE;
00071
00072 typedef struct _SdpAttributeRange {
00073 USHORT minAttribute;
00074 USHORT maxAttribute;
00075 } SdpAttributeRange;
00076
00077
00078 typedef
00079 #ifdef USE_MIDL_SYNTAX
00080 [switch_type(unsigned short)]
00081 #endif
00082 union SdpQueryUuidUnion {
00083 #ifdef USE_MIDL_SYNTAX
00084 [case(SDP_ST_UUID128)]
00085 #endif
00086 GUID uuid128;
00087
00088 #ifdef USE_MIDL_SYNTAX
00089 [case(SDP_ST_UUID32)]
00090 #endif _NTDDK_
00091 ULONG uuid32;
00092
00093 #ifdef USE_MIDL_SYNTAX
00094 [case(SDP_ST_UUID16)]
00095 #endif _NTDDK_
00096 USHORT uuid16;
00097 } SdpQueryUuidUnion;
00098
00099 typedef struct _SdpQueryUuid {
00100 #ifdef USE_MIDL_SYNTAX
00101 [switch_is(uuidType)]
00102 #endif
00103 SdpQueryUuidUnion u;
00104
00105 USHORT uuidType;
00106 } SdpQueryUuid;
00107
00108
00109 #ifdef __cplusplus
00110 };
00111 #endif
00112
00113 #endif // (NTDDI_VERSION >= NTDDI_WINXPSP2)
00114
00115
00116 #endif // __BTHSDPDEF_H__
00117