Diffstat (limited to 'gammu/emb/common/device/bluetoth/blue_w32.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/device/bluetoth/blue_w32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gammu/emb/common/device/bluetoth/blue_w32.h b/gammu/emb/common/device/bluetoth/blue_w32.h index e457c92..409f4b1 100644 --- a/gammu/emb/common/device/bluetoth/blue_w32.h +++ b/gammu/emb/common/device/bluetoth/blue_w32.h | |||
@@ -74,105 +74,105 @@ typedef struct _WSAQuerySetA | |||
74 | DWORD dwNameSpace; | 74 | DWORD dwNameSpace; |
75 | LPGUID lpNSProviderId; | 75 | LPGUID lpNSProviderId; |
76 | LPSTR lpszContext; | 76 | LPSTR lpszContext; |
77 | DWORD dwNumberOfProtocols; | 77 | DWORD dwNumberOfProtocols; |
78 | LPAFPROTOCOLS lpafpProtocols; | 78 | LPAFPROTOCOLS lpafpProtocols; |
79 | LPSTR lpszQueryString; | 79 | LPSTR lpszQueryString; |
80 | DWORD dwNumberOfCsAddrs; | 80 | DWORD dwNumberOfCsAddrs; |
81 | LPCSADDR_INFO lpcsaBuffer; | 81 | LPCSADDR_INFO lpcsaBuffer; |
82 | DWORD dwOutputFlags; | 82 | DWORD dwOutputFlags; |
83 | LPBLOB lpBlob; | 83 | LPBLOB lpBlob; |
84 | } WSAQUERYSET, WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA; | 84 | } WSAQUERYSET, WSAQUERYSETA, *PWSAQUERYSETA, *LPWSAQUERYSETA; |
85 | 85 | ||
86 | DEFINE_GUID(L2CAP_PROTOCOL_UUID, 0x00000100, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB); | 86 | DEFINE_GUID(L2CAP_PROTOCOL_UUID, 0x00000100, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB); |
87 | 87 | ||
88 | #ifndef NS_BTH | 88 | #ifndef NS_BTH |
89 | # define NS_BTH 16 | 89 | # define NS_BTH 16 |
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | #define LUP_CONTAINERS 0x0002 | 92 | #define LUP_CONTAINERS 0x0002 |
93 | #define LUP_RETURN_NAME 0x0010 | 93 | #define LUP_RETURN_NAME 0x0010 |
94 | #define LUP_RETURN_TYPE 0x0020 | 94 | #define LUP_RETURN_TYPE 0x0020 |
95 | #define LUP_RETURN_COMMENT 0x0080 | 95 | #define LUP_RETURN_COMMENT 0x0080 |
96 | #define LUP_RETURN_ADDR 0x0100 | 96 | #define LUP_RETURN_ADDR 0x0100 |
97 | #define LUP_RETURN_BLOB 0x0200 | 97 | #define LUP_RETURN_BLOB 0x0200 |
98 | #define LUP_FLUSHCACHE 0x1000 | 98 | #define LUP_FLUSHCACHE 0x1000 |
99 | #define LUP_RES_SERVICE 0x8000 | 99 | #define LUP_RES_SERVICE 0x8000 |
100 | 100 | ||
101 | #define WSAAPI FAR PASCAL | 101 | #define WSAAPI FAR PASCAL |
102 | 102 | ||
103 | #ifndef WINSOCK_API_LINKAGE | 103 | #ifndef WINSOCK_API_LINKAGE |
104 | #ifdef DECLSPEC_IMPORT | 104 | #ifdef DECLSPEC_IMPORT |
105 | #define WINSOCK_API_LINKAGE DECLSPEC_IMPORT | 105 | #define WINSOCK_API_LINKAGE DECLSPEC_IMPORT |
106 | #else | 106 | #else |
107 | #define WINSOCK_API_LINKAGE | 107 | #define WINSOCK_API_LINKAGE |
108 | #endif | 108 | #endif |
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | WINSOCK_API_LINKAGE INT WSAAPI | 111 | WINSOCK_API_LINKAGE INT WSAAPI |
112 | WSALookupServiceBeginA( | 112 | WSALookupServiceBeginA( |
113 | IN LPWSAQUERYSETA lpqsRestrictions, | 113 | IN LPWSAQUERYSETA lpqsRestrictions, |
114 | IN DWORD dwControlFlags, | 114 | IN DWORD dwControlFlags, |
115 | OUT LPHANDLE lphLookup | 115 | OUT LPHANDLE lphLookup |
116 | ); | 116 | ); |
117 | 117 | ||
118 | #define WSALookupServiceBegin WSALookupServiceBeginA | 118 | #define WSALookupServiceBegin WSALookupServiceBeginA |
119 | 119 | ||
120 | WINSOCK_API_LINKAGE INT WSAAPI | 120 | WINSOCK_API_LINKAGE INT WSAAPI |
121 | WSALookupServiceNextA( | 121 | WSALookupServiceNextA( |
122 | IN HANDLE hLookup, | 122 | IN Qt::HANDLE hLookup, |
123 | IN DWORD dwControlFlags, | 123 | IN DWORD dwControlFlags, |
124 | IN OUT LPDWORD lpdwBufferLength, | 124 | IN OUT LPDWORD lpdwBufferLength, |
125 | OUT LPWSAQUERYSETA lpqsResults | 125 | OUT LPWSAQUERYSETA lpqsResults |
126 | ); | 126 | ); |
127 | 127 | ||
128 | #define WSALookupServiceNext WSALookupServiceNextA | 128 | #define WSALookupServiceNext WSALookupServiceNextA |
129 | 129 | ||
130 | WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceEnd(IN HANDLE hLookup); | 130 | WINSOCK_API_LINKAGE INT WSAAPI WSALookupServiceEnd(IN Qt::HANDLE hLookup); |
131 | 131 | ||
132 | #define MAX_PROTOCOL_CHAIN 7 | 132 | #define MAX_PROTOCOL_CHAIN 7 |
133 | 133 | ||
134 | typedef struct _WSAPROTOCOLCHAIN { | 134 | typedef struct _WSAPROTOCOLCHAIN { |
135 | int ChainLen; /* the length of the chain, */ | 135 | int ChainLen; /* the length of the chain, */ |
136 | /* length = 0 means layered protocol, */ | 136 | /* length = 0 means layered protocol, */ |
137 | /* length = 1 means base protocol, */ | 137 | /* length = 1 means base protocol, */ |
138 | /* length > 1 means protocol chain */ | 138 | /* length > 1 means protocol chain */ |
139 | DWORD ChainEntries[MAX_PROTOCOL_CHAIN]; /* a list of dwCatalogEntryIds */ | 139 | DWORD ChainEntries[MAX_PROTOCOL_CHAIN]; /* a list of dwCatalogEntryIds */ |
140 | } WSAPROTOCOLCHAIN, FAR * LPWSAPROTOCOLCHAIN; | 140 | } WSAPROTOCOLCHAIN, FAR * LPWSAPROTOCOLCHAIN; |
141 | 141 | ||
142 | #define WSAPROTOCOL_LEN 255 | 142 | #define WSAPROTOCOL_LEN 255 |
143 | 143 | ||
144 | typedef struct _WSAPROTOCOL_INFOA { | 144 | typedef struct _WSAPROTOCOL_INFOA { |
145 | DWORD dwServiceFlags1; | 145 | DWORD dwServiceFlags1; |
146 | DWORD dwServiceFlags2; | 146 | DWORD dwServiceFlags2; |
147 | DWORD dwServiceFlags3; | 147 | DWORD dwServiceFlags3; |
148 | DWORD dwServiceFlags4; | 148 | DWORD dwServiceFlags4; |
149 | DWORD dwProviderFlags; | 149 | DWORD dwProviderFlags; |
150 | GUID ProviderId; | 150 | GUID ProviderId; |
151 | DWORD dwCatalogEntryId; | 151 | DWORD dwCatalogEntryId; |
152 | WSAPROTOCOLCHAIN ProtocolChain; | 152 | WSAPROTOCOLCHAIN ProtocolChain; |
153 | int iVersion; | 153 | int iVersion; |
154 | int iAddressFamily; | 154 | int iAddressFamily; |
155 | int iMaxSockAddr; | 155 | int iMaxSockAddr; |
156 | int iMinSockAddr; | 156 | int iMinSockAddr; |
157 | int iSocketType; | 157 | int iSocketType; |
158 | int iProtocol; | 158 | int iProtocol; |
159 | int iProtocolMaxOffset; | 159 | int iProtocolMaxOffset; |
160 | int iNetworkByteOrder; | 160 | int iNetworkByteOrder; |
161 | int iSecurityScheme; | 161 | int iSecurityScheme; |
162 | DWORD dwMessageSize; | 162 | DWORD dwMessageSize; |
163 | DWORD dwProviderReserved; | 163 | DWORD dwProviderReserved; |
164 | CHAR szProtocol[WSAPROTOCOL_LEN+1]; | 164 | CHAR szProtocol[WSAPROTOCOL_LEN+1]; |
165 | } WSAPROTOCOL_INFOA, FAR * LPWSAPROTOCOL_INFOA; | 165 | } WSAPROTOCOL_INFOA, FAR * LPWSAPROTOCOL_INFOA; |
166 | 166 | ||
167 | typedef WSAPROTOCOL_INFOA WSAPROTOCOL_INFO; | 167 | typedef WSAPROTOCOL_INFOA WSAPROTOCOL_INFO; |
168 | 168 | ||
169 | #define SO_PROTOCOL_INFOA 0x2004 /* WSAPROTOCOL_INFOA structure */ | 169 | #define SO_PROTOCOL_INFOA 0x2004 /* WSAPROTOCOL_INFOA structure */ |
170 | #define SO_PROTOCOL_INFO SO_PROTOCOL_INFOA | 170 | #define SO_PROTOCOL_INFO SO_PROTOCOL_INFOA |
171 | 171 | ||
172 | WINSOCK_API_LINKAGE INT WSAAPI | 172 | WINSOCK_API_LINKAGE INT WSAAPI |
173 | WSAAddressToStringA( | 173 | WSAAddressToStringA( |
174 | IN LPSOCKADDR lpsaAddress, | 174 | IN LPSOCKADDR lpsaAddress, |
175 | IN DWORD dwAddressLength, | 175 | IN DWORD dwAddressLength, |
176 | IN LPWSAPROTOCOL_INFOA lpProtocolInfo, | 176 | IN LPWSAPROTOCOL_INFOA lpProtocolInfo, |
177 | IN OUT LPSTR lpszAddressString, | 177 | IN OUT LPSTR lpszAddressString, |
178 | IN OUT LPDWORD lpdwAddressStringLength | 178 | IN OUT LPDWORD lpdwAddressStringLength |