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